Repository navigation
ci: check that pkgs/pinned.nix matches what the update script generates - #215
Merged
Merged
Conversation
seberm
approved these changes
Nov 6, 2026
seberm
left a comment
Contributor
There was a problem hiding this comment.
No action items.
Tested: rebased onto master (after #213), check-versions.sh passes; moving bitcoind from the stable to the unstable block by hand fails the new check while master passes it; an extra trailing newline in pinned.nix also fails it; ./test/shellcheck.sh passes.
Review performed with Claude Code (Claude Opus 5.5).
check-versions.sh regenerated versions.json and the docs table, but never pkgs/pinned.nix. versionsFile recomputes each package's channel instead of reading pinned.nix, so a package moved by hand between the stable and unstable blocks kept CI green while the node ran the other version. Regenerate pinnedFile and diff it against the committed file too. update-flake.sh now writes and compares the same raw eval output byte for byte, so the two scripts agree on what an up-to-date pinned.nix is. Assisted-by: Claude Code (Claude Opus 5.5)
seberm
force-pushed
the
versions-check-pinned
branch
from
November 6, 2026 20:25
0c9fa80 to
89e9bce
Compare
seberm
enabled auto-merge
November 6, 2026 20:26
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.
Follow-up to my review on #205, which merged before the review posted.
check-versions.shregeneratesversions.jsonand the docs table and diffs them, but it never checkspkgs/pinned.nix.versionsFilerecomputes which channel each package comes from instead of readingpinned.nix. So if someone moves a package between the stable and unstableinheritblocks by hand, CI stays green and the published table shows a different version than the node runs.check-versions.shnow also regeneratespinnedFileand diffs it againstpkgs/pinned.nix.update-flake.shnow writes and compares the same raw eval output byte for byte, using a temp file andcmp. Before, it compared through$(cat), which drops trailing newlines, so the two scripts could disagree about whetherpinned.nixis up to date.dev/README.mdsays what CI checks.The check only uses
nix evalanddiff, whichcheck_flakealready has, so the workflow doesn't change.Tested
On my KVM host: the check passes on a clean tree. It fails when I move
electrsfrom the unstable block to the stable one, and when I movecharge-lndthe other way. The old script passed both of those edits../test/shellcheck.shpasses.Opus 5.5 wrote this. Codex GPT-5.6 Sol found the trailing-newline mismatch in
update-flake.sh. Codex GPT-6 Astra and Claude Fable 5.1 reviewed it until nothing was left, the last point being an EXIT trap for the temp file. Kimi K3.1 Pro and DeepSeek V4.1 Flash ran over 0c9fa80, and Astra checked their report. Nothing came up in the files this PR touches.