Repository navigation
fix(ci): accept a next-minor release line in the nightly release check - #6945
Conversation
After v0.25.4 shipped and main moved to 0.26.0 with v0.26.0 RCs tagged, the nightly patch-release check filed "version.py on main doesn't match any expected version" (#6915). It only knew two valid states: main reads the last release, or the next patch. A next minor or major whose RC is tagged is now a third valid state. The check clears the issue and drafts nothing, because main is no longer patch-shaped. A bump with no RC tag, a skipped minor, or a non-final version still files the issue.
|
Verdict: Approve The nightly release check opened a false-alarm issue (#6915) whenever main had moved on to the next minor (0.26.0, with RCs tagged) after the last final release (v0.25.4). This PR treats that as a valid state: the false alarm closes, no patch release gets drafted, and every case that really is wrong still opens the issue. The classification logic is correct, it fails loudly on a tag it can't parse, and it is tested against a real git repo with tags. There are no blocking issues. One point is worth knowing: while main sits on a next-minor line, the job stays quiet and drafts no patches. That's intended, but it means no automated patch will ship for the old line until the minor's final is tagged. Real-world evidenceN/A: this changes CI and a repo script only, with no user-facing surface. I ran the classifier locally: 🔍 Technical detailsIssues found 🟢 The quiet Checked
Strengths
|
A hung git would otherwise stall the nightly check until the job times out. It now fails after 60 seconds and says to run from a checkout with its tags fetched.
Main moved 865 commits: v0.26.0 RCs, the chat agent folded into the flagship (#6139, #7035), #5197 fixed on main, and the nightly patch check taught the next-minor line (#6945). - Flagship version files follow core (0.26.0); the chat targets, held lines and chat floors go, since that package no longer exists. - The flagship's SPEC.md version header is now a stamped target, so it stops drifting from the package version. - The eval-baseline workflow keeps main's version; #5197 already landed. - v0.26.0 keeps main's curated notes, not the stub. - nightly-patch-release.yml stays retired, with release_version_state.py and the tests that read the workflow: once the bot moves main to the next minor before its rc1, the nightly would file a mismatch issue every night.
The nightly release check filed #6915 because main reads 0.26.0 while the last final release is v0.25.4. It treated only two versions on main as valid: the last release, or the next patch (0.25.5). A minor cut from main, with v0.26.0-rc1 through rc7 tagged, is a normal state. The check now accepts it, closes the issue, and drafts no patch, since main is no longer patch-shaped. A next minor or major with no RC tag, a skipped minor, or a non-final version still files the issue.
version.pyis unchanged.Closes #6915
Test plan
pytest tests/unit/test_release_version_state.py: covers 0.26.0 after v0.25.4 with RCs, the unchanged steady and staged states, and the mismatch cases. The CLI is run against a real git repo with tags.pytest tests/unit/test_auto_issue.py: each guard still records its condition before marking itself passed.actionlintandshellcheckon the scope step;util/check_workflow_triggers.pyandutil/check_ci_path_coverage.pypass.python util/release_version_state.py v0.25.4 0.26.0in a checkout of current main printsnext-line.