Repository navigation
fix(release): read VERSION from --rev and keep gates on that commit (#652) - #1400
Merged
Merged
Conversation
This was referenced Oct 6, 2026
godofecht
force-pushed
the
fix/issue-652-904-release-nix
branch
from
October 7, 2026 11:11
83170ec to
4381f38
Compare
godofecht
marked this pull request as ready for review
October 7, 2026 11:11
godofecht
enabled auto-merge
October 7, 2026 17:03
godofecht
force-pushed
the
fix/issue-652-904-release-nix
branch
from
October 7, 2026 17:03
4381f38 to
940d71e
Compare
…out (#652) CI checks out a single commit, so --rev HEAD~1 did not resolve and the tool failed before reaching the guard (Native tools job). The test now makes a commit object that is not HEAD with git commit-tree (same tree, HEAD as parent, no ref written) and passes its SHA.
4 tasks done
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.
Part of #652. Does not close it.
Change
./flow tool qualify_releasereadVERSIONfrom the working tree while it archived--rev, and--versioncould relabel the archive with any value. Its local gates also ran on the checkout even when--revnamed another commit.VERSIONis read withgit show COMMIT:VERSIONfrom the archived commit.--versionis now a check. A value that differs from thatVERSIONis refused.--artifacts-only,--revmust resolve toHEAD, so gate results are never recorded for a commit they did not run on.docs/project/release-qualification.mdand the--helptext say so.This follows the 2026-10-07 decision on #652 (PR #1422): qualification is local, checksum-gated and built from a pinned commit.
The draft also changed
packaging/nix/default.nixfor #904 (shipflow-lsp, setFLOW_BUILD_ROOT). That part is dropped from this PR. The./flowstub builds into$root/buildand$root/compiler/build, which ignoresFLOW_BUILD_ROOTand stays read-only in the Nix store, and nothing here could run a Nix build. The dropped commits are 38d8c69c and 2212e1d8 on the old head 83170ec. #904 stays open.Evidence
Rebased onto main 9f1d6d0.
./flow tool tests/scripts/qualify_release.flow: 13 passed. With main'squalify_release,commit_version_guardand the newgates_refuse_other_revboth fail../flow tool tests/cli/run.flow: 152 passed, 2 failed (jit_hello,test_mlir: golden drift on main).git merge-tree); the doc note was moved so the two do not touch the same lines.No
compiler/srcchange.