Skip to content

[1.0] Build reproducible release qualification, artifacts and RC promotion #652

Closed

Description

@godofecht

Current action status — 2026-10-06 (supersedes the older checklist below)

Open: local Homebrew acceptance is NOT verified. The reusable local qualifier and RC promotion records were implemented and merged in #1353 (2026-10-05); they do not publish or tag. Duplicate PR #1379 was closed: it was unmergeable and deleted unrelated FFI and attribution work.

Verified packaging regression: The release asset for v1.0.1 is flow-v1.0.1.tar.gz with GitHub SHA-256 deb4978f97cb5643c29fcb9d73ab72a8eb121e2e31c60df73ba6870d04f5229b. Its source archive is produced by git archive v1.0.1. That tagged tree has neither VERSION nor flow-driver. As of 2026-10-06 the flow/main formula requires the former and the public tap formula requires the latter; the two live formulas are NOT synchronized despite retaining the correct URL/digest. Do not mark the formula install gate passed.

Repairs prepared: flow#1395 and homebrew-flow#1 restore the package file layout from the original v1.0.1 tag formula (with the exact published version, asset URL and SHA-256). Their proposed formula content is byte-identical; both need review/merge and a real macOS Homebrew install/test from clean checkouts.

Release-line guard: flow/main now reports VERSION=2.0.0. Do not create a 1.0.2 tag from moving main. #760 needs an explicit frozen Stable 1.x maintenance commit/branch and complete local qualification before any 1.0.2 publication. No v1.0.2 release asset exists in GitHub Releases as of this check.

Outstanding acceptance: Merge the paired formula repairs; verify brew style, brew audit --strict --offline, brew install --build-from-source, and brew test on the published asset from clean macOS checkouts, along with byte-for-byte tap synchronization. Then independently freeze, fully qualify, publish and locally validate 1.0.2 before checking the final acceptance box. Never guess or prewrite the future 1.0.2 digest. Hosted workflows are not qualification evidence.


Goal

Keep Flow release artifacts and user-facing package metadata synchronized without relying on hosted CI.

Current status

The core release machinery exists and v1.0.0 / v1.0.1 are published. The latest published release is v1.0.1 (published 2026-08-23). Its release asset flow-v1.0.1.tar.gz has the GitHub-recorded SHA-256:

deb4978f97cb5643c29fcb9d73ab72a8eb121e2e31c60df73ba6870d04f5229b

Both formula copies point to that exact published artifact and digest:

  • flow:packaging/homebrew/Formula/flow.rb
  • homebrew-flow:Formula/flow.rb

The in-repo formula was updated in bc65a479529299052b34312c3e08f4a0decfcfa0; the public tap was synchronized in d80bd9fad8788c9e863b88cdd3dd8d56f3a2ffbb.

A local synchronization check exists at packaging/homebrew/check-formula-sync.sh:

bash packaging/homebrew/check-formula-sync.sh ../homebrew-flow/Formula/flow.rb

It exits 0 only when the in-repo formula and tap formula are byte-for-byte identical, exits 1 with a unified diff on divergence, and exits 2 when either input is missing.

scripts/sync_version.py is the local version authority: --check detects mirror drift, --set changes the canonical version and mirrors, and --homebrew --sha256 <digest> updates release-only Homebrew metadata after the real artifact exists.

Release-policy cleanup

  • src/flow/version.py documents local scripts/sync_version.py --check / --set usage and no longer claims hosted CI/workflow enforcement (d65c3e59b2ee3fc1ace610b6c39f77b26179d3e5).
  • scripts/sync_version.py no longer says a release workflow performs the Homebrew update. db3e33ec1e7395499dd58fb448bfa1634f998720 now documents the local sequence: qualify/publish first, compute the real digest, then run --homebrew --sha256 <digest> and synchronize the public tap.
  • The stale hosted CI branch-protection requirement tracked in Remove hosted CI status requirement from main branch protection #816 has been removed. A direct branches/main configuration read on 2026-09-12 reports no required status contexts/checks; no hosted workflow execution or result inspection was used to verify this.

Remaining work

Validate the formula locally with Homebrew from clean checkouts. For v1.0.2, produce and qualify the exact release candidate locally, publish the artifact, compute the real digest, update the in-repo formula with that digest, synchronize the public tap, and verify both formula copies locally.

Hosted GitHub Actions/CI are not part of this work. Validation and package checks are local-only.

Acceptance criteria

  • Exact published release artifacts carry SHA-256 digests.
  • In-repo Homebrew formula points to the current published release artifact and exact digest.
  • Public homebrew-flow tap points to the same artifact and digest.
  • A local, documented synchronization/check command prevents future formula divergence.
  • Canonical version/release documentation no longer says hosted CI/workflows are the enforcement/publication mechanism.
  • The documented 1.0.2 publication sequence is executable without hosted workflow execution.
  • Local Homebrew formula validation succeeds from clean checkouts for the release being promoted.

Historical next action (superseded by the dated status above)

From the exact locally qualified 1.0.2 candidate recorded on #760, publish the release artifact, compute/record its SHA-256, run the local scripts/sync_version.py --homebrew --sha256 <digest> update, synchronize homebrew-flow, then run the local formula install/test and packaging/homebrew/check-formula-sync.sh checks. Do not guess the digest before publication.

Activity

  1. added
    1.0-stabilisation
    on Aug 21, 2026
  2. added
    rc1-blocker
    release
    P0-blocker
    and removed
    P0-blocker
    rc1-blocker
    on Aug 21, 2026
  3. google-labs-jules commented on Aug 23, 2026

    @google-labs-jules
    Contributor

    Jules has failed to create a task. You can try again later by removing and re-adding the 'jules' label.

  4. godofecht commented on Aug 23, 2026

    @godofecht
    ContributorAuthor

    Maintenance check (2026-08-24, refreshed): the distribution blocker has advanced and the release automation gap is now concrete. v1.0.1 exists, but both flow:packaging/homebrew/Formula/flow.rb and flooooooooooow/homebrew-flow:Formula/flow.rb still point to v0.10.0 with SHA-256 05dc81ee33089724977cf1e6dfac00e9bfd8bbd81da8649570ea8c21669da486. The current .github/workflows/release.yml creates and publishes flow-${TAG}.tar.gz, flow-${TAG}.zip, and SHA256SUMS.txt, then updates only the in-repo packaging/homebrew/Formula/flow.rb by pushing back to flow/main. It never updates the separate flooooooooooow/homebrew-flow tap, so even a successful release cannot keep both formula copies synchronized. Do not guess a checksum or manually point either formula at a different archive. Exact next action: verify/complete the qualified v1.0.1 GitHub Release so its canonical tarball and checksum exist; update both formula copies from that exact digest; then change the release path so the external tap is explicitly synchronized (using credentials scoped to homebrew-flow) or eliminate the duplicated formula source of truth.

  5. 5 remaining items

  6. godofecht commented on Oct 6, 2026

    @godofecht
    ContributorAuthor

    Implementation update (2026-10-06): draft PR #1400. Release qualification now derives VERSION from the archived commit, rejects a mismatched explicit version, and refuses to attribute working-tree test gates to a different revision. Test added. Partial work only: macOS Homebrew acceptance remains open. The PR is draft because full local Flow/build validation has not been performed; #1402 additionally requires regenerated bootstrap C. No issue is being closed merely because a patch exists.

  7. godofecht commented on Oct 7, 2026

    @godofecht
    ContributorAuthor

    Design decision, 2026-10-07, decided by the project owner, on the Linux release qualification policy in #1399: accepted. Qualification is local and checksum-gated. The .deb is reproducible and source-built from a pinned commit with SOURCE_DATE_EPOCH and root ownership. Hosted CI is not qualification authority. Linux arm64 is explicitly unqualified. #1399 merges once its shell scripts are Flow tools and a real qualification run on the CI VPS is recorded in the PR. Recorded in docs/project/Questions.md by #1422.

  8. godofecht commented on Oct 7, 2026

    @godofecht
    ContributorAuthor

    Local Homebrew check, 2026-10-07, macOS 26 arm64, Homebrew 7.0.8, of packaging/homebrew/Formula/flow.rb on main f43efb75 (the formula from #1395), installed from a throwaway local tap:

    • brew style: 1 file inspected, no offenses.
    • brew audit --strict: exit 0.
    • brew install --build-from-source: installed /opt/homebrew/Cellar/flow/1.0.1 from the published flow-v1.0.1.tar.gz (digest deb4978f...), exit 0.
    • brew test: exit 0 (flow version prints Flow 1.0.1).
    • flow run hello.flow with FLOW_HOST=python builds and runs (exit 0). With the default flowc host, the v1.0.1 Stage-A emit rejects a println program. That is a limit of the published 1.0.1 compiler and the formula installs it correctly.

    The test install was removed afterwards.

    Not yet met:

    1. Tap sync. homebrew-flow PR [P-C1] Parser: bare except clauses swallow all errors #1 (fix/652-homebrew-v101-archive-layout) is no longer byte-identical to the in-repo formula. It sets version "1.0.1", installs numpy into the venv, uses Formula["[email protected]"] instead of formula_opt_bin, and its test runs flow compile instead of flow version. One of the two has to be made to match the other before the sync criterion holds.
    2. The release being promoted. This check covers v1.0.1. The remaining acceptance box also asks for 1.0.2 to be frozen, qualified and published; main is now 2.0.0 and no 1.0.2 candidate is frozen (see [Flow 1.0.2] Stabilization, backend parity, self-hosting convergence and developer-experience patch #760). That needs an owner decision on whether 1.0.2 is still released.
  9. godofecht commented on Oct 8, 2026

    @godofecht
    ContributorAuthor

    Closing. Retargeted to the v2.0.0 release by the 2026-10-08 decision that 1.0.2 is superseded (#760 closed, decision in docs/project/Questions.md via #1455).

    Acceptance criterion Status Delivered by / proof
    Exact published release artifacts carry SHA-256 digests done release.yml writes SHA256SUMS.txt; v1.0.1 asset deb4978f...229b
    In-repo formula points at the current published artifact and digest done #1395
    Public tap points at the same artifact and digest done homebrew-flow#1 merged 2026-10-08, then synced with #1456; Formula/flow.rb byte-identical to packaging/homebrew/Formula/flow.rb (tap commit 7d166997, SHA-256 824e9e02...0a81, check-formula-sync.flow: "Homebrew formulas are synchronized.")
    Local command that prevents formula divergence done ./flow tool packaging/homebrew/check-formula-sync.flow, sync-tap.flow
    Release docs do not name hosted CI as the authority done earlier commits listed in the body; policy in Questions.md (#1422)
    Publication sequence runs without hosted workflows done ./flow tool qualify_release (#1353), --rev reads VERSION from that commit (#1400)
    Linux qualification done #1399 (checksum-gated tarball, reproducible .deb); #1446 makes --mode full pass on Linux (VPS run recorded on #1446)
    macOS qualification done #1462: --mode full now passes on macOS; run at 0593ad2f: all gates pass, result: pass
    RC promotion for 2.0 done qualify_release --promote-rc records v2.0.0-rc.1 with its commit, untagged (same run)
    Homebrew formula validation from clean checkouts, for the release being promoted done v1.0.1: style, audit, install, test pass (comment on homebrew-flow#1). v2.0.0: #1456 lets the formula install a 2.x archive; a git archive 2.0.0 tarball installed, brew test passed, flow run hello.flow ran

    What is left is the release itself, which this tracker's tooling deliberately never does: a human tags the qualified commit (qualify_release --print-tag-command), release.yml attaches the archive, then ./flow tool sync_version --homebrew --sha256 <digest>, license :cannot_represent for 2.x (packaging/homebrew/README.md step 4), and sync-tap.flow. Those steps are in docs/project/RELEASING.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.0-stabilisationrelease

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions