8000 ci: remap two-line workflows to main (3.x) and v2.x for the branch move (#937) by adityamukho · Pull Request #971 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

ci: remap two-line workflows to main (3.x) and v2.x for the branch move (#937) - #971

Merged
adityamukho merged 4 commits into
mainfrom
ci/937-branch-remap
Dec 1, 2026
Merged

adityamukho merged 4 commits into
mainfrom
ci/937-branch-remap

Conversation

@adityamukho
Copy link
Copy Markdown
Collaborator

Step 1 of the #937 branch move. Merge only right after the rename (main → v2.x, v3 → main), which retargets this PR to main. Before merging, set BRANCH_MOVED_AT in bench.yml to the actual rename time.

  • Schedules: each of the ten two-line workflows maps its old main cron to v2.x. Every other event (the 3.x cron, push, PR) uses main, and dispatch defaults are main. deterministic-schedules stays 3.x only: it runs on PRs to main and nightly on main. The original smoke suite checks out v2.x.
  • Bench: binding refs default to main, and production history, alerts and start points key on main/v2.x. Runs created before BRANCH_MOVED_AT are read under their new names ((v3) as main, (main) as v2.x; binding logs' History branch: v3), so each line's alert streak continues across the move. New tests are in .github/bench/branch-move.test.cjs; all 50 bench tests pass. The Bencher branches and branch-titled issues are renamed at the cutover (runbook).
  • Fuzz: corpus caches move to a new corpus-<branch> prefix, with a one-time restore from each line's old cache (v3 → main, main → v2.x).
  • Policy: the semver check stays a hard gate on *.x branches, with the line's latest tag from the base as baseline. On main it is advisory until v3.0.0 final: a PR is compared with its base, a push with github.event.before (fetched after a force push, or reported unavailable). The weekly cargo-deny run checks main and v2.x, and Dependabot also targets v2.x.
  • Benchmark builds: bindings.sh also patches the crates.io source, so benchmarks keep measuring the checkout once bindings pin the published crate (release: set the v3 crate version for the 3.0.0-alpha prerelease #929). Tested on minigraf-python with both a git and a registry pin.
  • Docs: the branch model in CLAUDE.md, CONTRIBUTING, ROADMAP, PHILOSOPHY and BINDING_BENCHMARKS.

Codex (gpt-6-astra) reviewed the step 1 changes and the fixes for its findings. Companion PRs: minigraf-java (bench builder patch) and minigraf-docs (preview git_ref).

Refs #937 (not closing).

…ve (#937)

Lands right after the rename of main to v2.x and v3 to main. Scheduled
workflows run from the default branch only:

- The ten two-line schedules map their old main cron to v2.x; every other
  event (the 3.x cron, push, PR) uses main. Dispatch defaults are main.
- deterministic-schedules: 3.x only, on PRs to main and nightly on main.
- smoke: the original suite checks out v2.x.
- bench: binding refs default to main; production history, alerts and
  start points key on main/v2.x. Runs created before BRANCH_MOVED_AT are
  read under their new names ((v3) as main, (main) as v2.x) so each line's
  alert streak continues; tests in .github/bench/branch-move.test.cjs.
- fuzz/fuzz-corpus: corpus caches under a new corpus-<branch> prefix, with
  a one-time restore from each line's old cache.
- policy: semver is a hard gate on *.x maintenance branches; on main it is
  advisory against the previous commit until v3.0.0 final. The weekly
  cargo-deny run checks main and v2.x. Dependabot also targets v2.x.
- bindings.sh patches the crates.io source too, so benchmarks keep
  measuring the checkout after bindings pin the published crate (#929).
- Branch-model docs (CLAUDE.md, CONTRIBUTING, ROADMAP, PHILOSOPHY,
  BINDING_BENCHMARKS).
#937)

A maintenance (*.x) baseline is the latest tag of that major reachable
from the base, so a PR whose head reaches a newer line's tag cannot pick
it. A push to a development branch is compared with github.event.before,
so every pushed commit is reported (first parent for a new branch).
)

After a force push to main the old tip is no longer reachable from any
fetched ref. Fetch it explicitly; if that fails, the advisory job says the
baseline is unavailable instead of comparing a different change.
@codecov
codecov Bot commented Dec 1, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

v3 became main at 2026-12-01T10:52:03Z (confirmed by the cutover script).
@adityamukho
adityamukho marked this pull request as ready for review December 1, 2026 11:04
@adityamukho
adityamukho merged commit b001303 into main Dec 1, 2026
28 checks passed
@adityamukho
adityamukho deleted the ci/937-branch-remap branch December 1, 2026 11:40
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

0