8000 release: move v3 to main and main to v2.x at the 3.0.0-alpha · Issue #937 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

release: move v3 to main and main to v2.x at the 3.0.0-alpha #937

In progress

Description

@adityamukho

At the first v3 release, v3 becomes main and the current main (2.x) moves to a maintenance branch (ROADMAP.md, CLAUDE.md). This issue tracks everything that move touches.

Decided (#928, 2026-11-30): the 3.0.0-alpha is the first v3 release, so the move happens at the alpha, and the maintenance branch is v2.x. Because the core tag dispatches the bindings immediately (#938), the move and the binding release routing are done before v3.0.0-alpha is tagged (or the cascade is held until they are). The v2.x maintenance-mode announcement goes out at the move.

Naming

  • v2.x (decided). ROADMAP/CLAUDE.md say v2 and are updated with the move; the binding release workflows (minigraf-java's branch selection, and the cascade-monitoring practice for 2.x patches) look for v<major>.x, i.e. v2.x, and minigraf-java already has v2.x. v2.x everywhere avoids a special case.

Core repo (project-minigraf/minigraf)

  • Rename main → v2.x and v3 → main with GitHub's branch rename, which retargets open PRs and redirects old branch URLs. Set the default branch; check the "Copilot review for default branch" ruleset (11775901) follows it.
  • Workflows that hard-code v3 as the second scheduled branch, alternating with main: bench.yml, crash-kill.yml, kani.yml, fuzz.yml, smoke.yml, grammar-verifier.yml, soak.yml, and deterministic-schedules.yml (whose comment already says "At the v3 release cut, update the scheduled/dispatch default ref to main"). envelope.yml, bench.yml, smoke.yml and deterministic-schedules.yml also have default: v3 dispatch inputs. After the move, the pair is main (3.x) and v2.x. Scheduled workflows run from the default branch, so land this on the new main right after the rename.
  • push/pull_request filters are [main, 'v[0-9]*'], which already match v2.x. deterministic-schedules.yml triggers only on ["v3"].
  • Bench history: Bencher/branch-keyed histories (Bench: establish regression baselines and verify scheduled reporting #840, ci: preserve independent v3 benchmark history (#840) #853) are keyed by branch name; decide whether main's history continues from v3's (proposal: yes). Done: the Bencher branches were renamed with the git branches (v3 → main, old main → v2.x); BRANCH_MOVED_AT reads older run titles under the new names (ci: remap two-line workflows to main (3.x) and v2.x for the branch move (#937) #971).
  • Codecov badge (branch/main) and coverage baselines. The badge now shows 3.x main; uploads continue (95.17% at bc84412).
  • Docs that name v3 as the development branch: CLAUDE.md (branch model, "all v3 PRs target v3"), CONTRIBUTING.md (backport flow: fixes land on main first, then a v2.x backport), ROADMAP.md, docs/BINDING_BENCHMARKS.md (branch: v3), the Known issues in the current release (v2.x) #421 process text.
  • README link minigraf-wasm/tree/v3#opfs-worker (docs(readme): rewrite the v3 README for release readers #933).
  • Local clones/worktrees and maintainer notes (branch-alternating bench crons). Notes updated and stale v3 tracking branches pruned (2026-12-02).

Binding repos (python, node, wasm, c, java, swift, android, binding-template)

  • Same rename in each: main → v2.x, v3 → main. Keep minigraf-java's existing v2.x (it is the 2.x release branch today; its main is a stale 2.0.2 pin).
  • Prepare the registry conversion, then pin main to the exact published 3.x crate once it resolves. The conversion is prepared and rehearsed; the pin itself is post-alpha work (release: rehearse both binding release lines and verify all seven alpha publications #960; binding-template#6 for the template), not part of the move.
  • Release workflows: a 2.x dispatch must build from v2.x; a 3.x dispatch from main. Each binding's prepare job checks out the default branch today; see the per-repo prerelease issues.
  • Delete merged feature branches left in the binding repos: feat/316-set-values, feat/924-incoming-refs, feat/925-incoming-refs, feat/858-* (swift, android, java), claude/magical-wright-lbxulz (swift), master (android), but not swift-releases (Swift's active publication branch).

Docs site (project-minigraf/minigraf-docs)

  • site.toml git_ref = "origin/v3" breaks on rename; point released versions at their tags and the preview at origin/main (minigraf-docs#106).

Downstream

Not a closing issue for any other issue.

Additional cutover acceptance checks

Activity

  1. added this to the v3.0.0 milestone on Nov 29, 2026
  2. adityamukho commented on Nov 29, 2026

    @adityamukho
    CollaboratorAuthor
  3. adityamukho commented on Nov 29, 2026

    @adityamukho
    CollaboratorAuthor

    Also part of the move: post a Discussions → Announcements post saying v2.x is in maintenance mode (data-integrity and security fixes only, 12 months after v3.0.0, upgrade and backup note, branch change). Pin it, and link it from the README "Known issues" section and #421. A draft is ready; the timing (now, at the alpha, or at the branch move) depends on #928.

  4. adityamukho commented on Nov 29, 2026

    @adityamukho
    CollaboratorAuthor

    Cutover acceptance criteria from the independent Codex review (confirmed):

    • Sequence: the core tag dispatches bindings immediately (ci(release): dispatch the binding cascade after crates.io publication, not on the tag push #938). Finish the binding routing and branch preparation before tagging, or hold the cascade until the move is done.
    • Correction: swift-releases is the active SwiftPM publication branch (semver tags point there), so don't delete it. source-<tag> refs are tags, not branches.
    • Java: keep its existing v2.x. Don't rename its stale main (pinned to 2.0.2) over it; archive or replace it.
    • Binding CI filters: python/node/wasm ci.yml push and PR filters, and c/swift/android push filters, are [main, v3]. Add v*.x as Java does. The template's push filter is main only.
    • WASM core-ref defaults: ci.yml:33 defaults to main on main (it would build v3 after the move) and to v3 on v3 (which disappears). Fix both copies.
    • Semver gate: policy.yml:63–70 only blocks on main. After the move, v2.x PRs need a blocking check against the latest 2.x tag.
    • Dependabot and the scheduled policy check cover the default branch only (dependabot.yml:7, policy.yml:105). Add v2.x.
    • Property tests and NFS nightlies: ci: property-test and NFS lock nightlies only test the default branch, so v3's model-based suite never runs #940.
    • Bench: bench.yml:377–383, 581, 629, 680 hold the long-lived branch exemption, binding default ref, production-history classification and alert predicate. Without updates, v2.x would inherit main's history and new-main binding runs would be treated as experiments with alerts off.
    • Fuzz corpus: branch names are in cache keys, bot branch names and PR bases (fuzz-corpus.yml:114, 154, 175). Keep the two lines separate.
    • Smoke: the old suite's hard-coded ref: main (smoke.yml:70) becomes v2.x. Deterministic schedules are v3-only, so move them to main without adding a v2 suite.
    • Reusable workflows: binding releases call ci.yml by relative path from the default branch. Exercise one v2 patch release through the new default-branch workflows before relying on them.
  5. changed the title [-]release: move v3 to main and main to a v2 maintenance branch at the first v3 release[/-] [+]release: move v3 to main and main to v2.x at the 3.0.0-alpha[/+] on Nov 30, 2026
  6. adityamukho commented on Nov 30, 2026

    @adityamukho
    CollaboratorAuthor

    Correction to the announcement note above, per #928: v2.x is in maintenance mode in the sense of no new features, but it keeps getting all bug fixes until 12 months after the 3.0.0-alpha (not data-integrity and security only, and not counted from 3.0.0). The draft is being updated to match; docs follow-up in #943.

  7. adityamukho commented on Nov 30, 2026

    @adityamukho
    CollaboratorAuthor

    Correction to my last comment: the 12-month v2.x window is counted from v3.0.0 final, not the alpha (#928). Scope is all bug fixes, no features.

  8. adityamukho commented on Nov 30, 2026

    @adityamukho
    CollaboratorAuthor

    Coordinates with #960: its rehearsal covers the default-branch workflow definitions after the move (binding jobs that check out v2.x source while repository_dispatch uses the new default branch's workflows), keeping Java's existing v2.x and Swift's swift-releases. Do the rehearsal before the move is final and the alpha is tagged.

  9. adityamukho commented on Dec 1, 2026

    @adityamukho
    CollaboratorAuthor

    Handoff from the binding release routing work (#960)

    The seven publishers' v3 workflows now route by major (3.x → main, 2.x → v2.x, no fallback). The rehearsal ledger is on #960.

    State

    • Pinned and rehearsed core SHA: 38b10383d6c94c1ae39091ef34e75f68d3d8c76f, the core v3 head when this was written. All seven publishers' v3 and the template's v3 pin it, with green CI on each tip.
    • If core v3 moves: a change that can affect binding builds, dependencies or behaviour (src/, Cargo.toml, features, build scripts) needs new pins, green CI and the affected rehearsal rows again. A change that cannot (docs, core-only CI) should be listed here by commit; the existing evidence did not run on it.
    • Each publisher's current main (Java: v2.x and main) has the pre-move guard merged: 3.x is refused until the move.

    At the move

    • Do not leave a release running across the rename.
    • Java: its stale main is replaced by v3; keep its existing v2.x. Swift: keep swift-releases.
    • The release token must be able to fast-forward main and v2.x and push tags under the new branch rules.

    After the rename, before the tag: routing check on the real branches

    For each publisher (no source_alias), at the core v3/main SHA in use, and record that SHA here:

    gh workflow run release.yml -R project-minigraf/<repo> --ref main -f rehearsal=true -f version=v3.0.0-alpha -f candidate=<40-hex core SHA>
    gh workflow run release.yml -R project-minigraf/<repo> --ref main -f rehearsal=true -f version=v2.0.12
    

    The evidence must show source and write target main for 3.x and v2.x for 2.x.

    Known limit

    • Releases published before the move (up to v2.0.12) have no retained evidence. Re-dispatching one of those tags through the new default-branch workflow fails with recovery-conflict (and may open a release-broken issue). Do not re-run the cascade for them after the move.
    • The 2.x branches carry an older copy of the shared release helper; its GitHub "Latest" decision is not used there.
  10. adityamukho commented on Dec 1, 2026

    @adityamukho
    CollaboratorAuthor

    Post-move acceptance (dispatched from main, one run per line):

    Run Line Result
    Smoke Suite v2.x success
    Smoke Suite main success
    Property Tests v2.x success
    Nightly Benchmarks main success
    Nightly Benchmarks v2.x success

    Bench v2.x reported to the existing Bencher branch v2.x (the renamed 2.x history, created 2026-03-23) without a start point; no new Bencher branch was created.

    All core workflows are enabled again (crash-kill, deterministic-schedules, fuzz, fuzz-corpus, grammar-verifier, kani, nfs-lock, soak were the last eight). The first scheduled run of each daily workflow on both lines will be checked after 2026-12-02 17:50 UTC; the weekly ones (soak, fuzz-corpus, policy cargo-deny) run 2026-12-05 to 12-07.

    Binding release-routing rehearsals: 13 of 14 green and all 14 routed correctly; the Swift 2.x rehearsal is waiting on macOS arm64 runner capacity (result goes to #960).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0