Repository navigation
fix(ci): make upgrade staleness observable on both axes - #1514
Merged
Merged
Conversation
The flake auto-bump is keyed on the github:vig-os/devkit URL instead of a literal input named vigos: any-name floating inputs are advanced, pinned refs (?ref=X or /X) are skipped with a printed reason, and every run emits one flake-bump: line that devkit-upgrade.yml surfaces in the adoption PR body and step summary. The #1093 pin-skew warning learns the same discovery. A new warn-only devkit-staleness job in the scaffolded ci.yml compares DEVKIT_VERSION against the latest devkit release — the question scaffold-drift cannot answer, since it resolves its comparison from the pin itself. Refs: #1497
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes both unobservable staleness axes from #1497 (found auditing the Rust pack's upgrade story — the field consumer sat two minor versions behind with a green weekly upgrade and a green drift check):
Axis 1 — flake auto-bump (
install.sh)github:vig-os/devkitURL, not a literal input namedvigos: a floating input under any name is advanced (nix flake update <name>)?ref=Xor the/Xpath-suffix form the field case used — are never auto-bumped (a pin is the consumer's explicit choice), but the skip is now reported with the reasonflake-bump:outcome line (advanced / skipped-pinned / skipped-no-nix / failed / no input recognized); the doc-comment example line still never matches ([BUG] #1093 skew warning extracts the pin from the flake.nix doc-comment — always reports <tag>, false-fires on aligned consumers #1110 anchoring preserved)init-workspace.shlearns the same name-agnostic, both-forms discovery and names the actual input in its guidancedevkit-upgrade.ymltees the install output, captures theflake-bump:line as a step output, and carries it into the adoption PR body and the step summary (env-routed, no run-block interpolation)Axis 2 — pin staleness (scaffolded
ci.yml)devkit-stalenessjob: cheap API query comparingDEVKIT_VERSIONagainst the latest stable devkit release, annotating PRs with::warning("N release(s) behind") plus a step-summary blockDEVKIT_DRIFT_CHECK(no docker/image pull — disabling the expensive drift gate must not silence the cheap report), never fails the build (every failure path degrades to a skip, including missingghon self-hosted runners), and deliberately outside the summary gatesort -Vorders-rcNafter the final, so the compare maps the dash to a tilde)Out of scope (deliberate): the mkRustProject eval-time notice (issue suggestion 4) — the acceptance criteria are met without it and it would be the codebase's first Nix eval-warn mechanism.
Acceptance criteria from the issue
Test plan
install.bats: 6 new tests (renamed floating input advanced; path-ref and?ref=pins skipped-and-reported; no-input reported; doc-comment decoy immune) — existing Consumer adoption bumps .vig-os but not the vigos flake pin — dev-shell toolchain lags a release behind #1263 suite untouched and greeninit-workspace.bats: 3 new [BUG] Bumping DEVKIT_VERSION without the matching vigos flake pin ships the #1053 JSONC banner without its check-json exclude — every commit fails, no warning #1093-extension tests (path-ref lag warns; renamed pinned input warns naming the input; aligned path-ref silent)tests/test_devkit_staleness.py: shape tests (PR-only, not drift-gated, resolved pin viaresolve-toolchain, warn-never-fail, outside the summary gate) + behavioral tests executing the real run block against a stubbedgh(behind-count, current-silent, API-failure/empty-pin tolerance, rc-behind-final)test_workflow_devkit_upgrade.py: 2 new tests (flake-bump capture; env-routed PR-body threading)prek run --all-filesgreenRefs: #1497