Skip to content

Bootstrap vcpkg with -disableMetrics instead of touching disable-metrics file - #363

Merged
alexreinking merged 3 commits into
masterfrom
bootstrap-vcpkg-step
Jul 30, 2026
Merged

Bootstrap vcpkg with -disableMetrics instead of touching disable-metrics file#363
alexreinking merged 3 commits into
masterfrom
bootstrap-vcpkg-step

Conversation

@alexreinking

Copy link
Copy Markdown
Member

Summary

  • Replace the "Disable vcpkg metrics" step (which just dropped a vcpkg.disable-metrics marker file) with a "Bootstrap vcpkg" step that runs bootstrap-vcpkg.bat/.sh -disableMetrics after updating vcpkg, matching the approach already used in worker/windows/install.ps1.
  • Fixes two now-stale ty: ignore comments in SafeGitHubEventHandler that a newer ty release flags as unused/incorrect. Unrelated to the vcpkg change, but was blocking the pre-commit hook on a clean checkout of master too.

Test plan

  • pre-commit run --files master/master.cfg passes locally
  • CI (Buildbot Validations) passes on the PR

…isable-metrics file

Replaces the "Disable vcpkg metrics" step (which just dropped a
vcpkg.disable-metrics marker file) with a "Bootstrap vcpkg" step that
runs bootstrap-vcpkg.bat/.sh -disableMetrics after updating vcpkg,
matching the approach already used in worker/windows/install.ps1.

Also fixes two now-stale `ty: ignore` comments in SafeGitHubEventHandler
that a newer ty release flags as unused/incorrect, unrelated to the
vcpkg change but blocking the pre-commit hook.
uv run --package master only syncs master's own dependency set, which
doesn't include ty (a root dev-dependency), so a stale ty binary left
in the shared .venv from an earlier sync was never reconciled against
the lockfile and silently diverged from the pinned version CI uses.
Running `uv sync` first forces the venv to match uv.lock every time.

Also reverts the previous commit's `ty: ignore` comment changes, which
were based on diagnostics from that stale, unpinned ty version.
ty only type-checks master/master.cfg and master/custom_steps.py, so
it belongs to the master package, not the workspace root. This makes
`uv run --package master ty check` resolve and pin ty on its own
(installing it fresh on a clean checkout), instead of silently relying
on whatever ty happens to already be sitting in the shared .venv from
an unrelated root-level sync. Simplifies the pre-commit hook and CI
workflow back to a single `uv run --package master ...` call, and
`ty` stays out of the production Docker image since it's a dev-only
dependency (`--no-dev` still excludes it).
@alexreinking
alexreinking merged commit bdc71cc into master Jul 30, 2026
9 checks passed
@alexreinking
alexreinking deleted the bootstrap-vcpkg-step branch July 30, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant