Repository navigation
fix(ci): recover promotion of manually merged release PRs - #1992
Merged
Merged
Conversation
gerchowl
force-pushed
the
bugfix/1990-promote-merged-release-pr
branch
from
November 3, 2026 09:24
10439e3 to
305497a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Recover
promote-releasewhen an approved release PR was merged manually and its branch deleted. Both devkit gates prefer an open PR, then accept exactly one merged PR only after verifying approval and that its merge commit and release tag are ancestors of main. Recovery works when dispatched from main or dev.Type of Change
fix-- Bug fixModifiers
!) -- This change breaks backward compatibilityChanges Made
Changelog Entry
Fixed
Testing
uv run --with pytest-xdist pytest tests/test_ci_green_gate.py tests/test_workflow*.py tests/test_github_expression.py tests/test_promote*.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1990: 766 passed, exit 0, including 31 recovery cases covering the shared script and both workflow gates.Committed RED first: the initial recovery suite failed with exit 1 (four failures). The tests execute the shared gate and both workflow step bodies with isolated GitHub responses.
The first CI run exposed an isolated CI-gate fixture missing
PR_STATE; the fixture now supplies it and explicitly tests merged PR pending/failed verdicts.actionlint .github/workflows/promote-release.yml,shellcheck .github/scripts/find-release-pr.sh, and repository commit hooks pass, exit 0.Manual Testing Details
Read-only GitHub queries confirm PR #1969 is merged and approved, its merge commit is on main (
identical), and tag 1.18.1 is an ancestor of main (ahead). No workflow was dispatched.Checklist
CHANGELOG.mdin theUnreleasedsection (and pasted the entry above)Additional Notes
The changelog mirror is generated by the required sync-manifest hook. No merge or workflow dispatch is part of this PR.
Refs: #1990