Skip to content

fix(release): read VERSION from --rev and keep gates on that commit (#652) - #1400

Merged
godofecht merged 6 commits into
mainfrom
fix/issue-652-904-release-nix
Oct 7, 2026
Merged

godofecht merged 6 commits into
mainfrom
fix/issue-652-904-release-nix

Conversation

@godofecht

@godofecht godofecht commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Part of #652. Does not close it.

Change

./flow tool qualify_release read VERSION from the working tree while it archived --rev, and --version could relabel the archive with any value. Its local gates also ran on the checkout even when --rev named another commit.

  • VERSION is read with git show COMMIT:VERSION from the archived commit.
  • --version is now a check. A value that differs from that VERSION is refused.
  • Without --artifacts-only, --rev must resolve to HEAD, so gate results are never recorded for a commit they did not run on.
  • docs/project/release-qualification.md and the --help text 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.nix for #904 (ship flow-lsp, set FLOW_BUILD_ROOT). That part is dropped from this PR. The ./flow stub builds into $root/build and $root/compiler/build, which ignores FLOW_BUILD_ROOT and 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's qualify_release, commit_version_guard and the new gates_refuse_other_rev both fail.
  • ./flow tool tests/cli/run.flow: 152 passed, 2 failed (jit_hello, test_mlir: golden drift on main).
  • Merges cleanly with release(linux): validate source artifacts and reproducible Debian packages (#652) #1399 (git merge-tree); the doc note was moved so the two do not touch the same lines.

No compiler/src change.

@godofecht
godofecht force-pushed the fix/issue-652-904-release-nix branch from 83170ec to 4381f38 Compare October 7, 2026 11:11
@godofecht godofecht changed the title fix(release): pin qualification provenance and make Nix LSP usable (#652 #904) fix(release): read VERSION from --rev and keep gates on that commit (#652) Oct 7, 2026
@godofecht
godofecht marked this pull request as ready for review October 7, 2026 11:11
@godofecht
godofecht enabled auto-merge October 7, 2026 17:03
@godofecht
godofecht force-pushed the fix/issue-652-904-release-nix branch from 4381f38 to 940d71e Compare October 7, 2026 17:03
…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.
@godofecht
godofecht added this pull request to the merge queue Oct 7, 2026
Merged via the queue into main with commit f1ffe3d Oct 7, 2026
39 checks passed
@godofecht
godofecht deleted the fix/issue-652-904-release-nix branch October 12, 2026 23:03
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