Repository navigation
rebless_batch.py: one command to fold PRs that carry golden snapshots into one rebless PR - #9120
Merged
Merged
Conversation
…draft PR with one re-bless The recipe done by hand for #9111 (nine PRs, #9053-#9067): apply each PR's hand-written diff to a fresh branch off main, bless the goldens once, open a draft PR that lists them. Refuses on a diff that does not apply or two PRs touching the same lines; never marks ready, merges or closes the originals. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
squid-protocol
marked this pull request as ready for review
November 23, 2026 14:24
squid-shepherd Bot
pushed a commit
that referenced
this pull request
Nov 23, 2026
…DEF01 deck runs (Part of #8886) (#9131) * IDCAMS model: DEFINE CLUSTER DATA/INDEX component takes CONTROLINTERVALSIZE/CISZ, so CardDemo's DELDEF01 deck runs (Part of #8886) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Regenerate docs_read_by_tests.txt (stale from #9120) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * cobolrt rule catalogue: isCisz belongs to RT-IDC-DEFINE (Part of #8886) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.
Why: on 2026-11-23 nine engine PRs (#9053-#9059, #9061, #9067) each committed the same golden-master snapshot files, so every merge re-conflicted the rest and all nine sat red. Doing it by hand took several rounds. This makes it one command.
What it does:
python tests/tools/rebless_batch.py --prs 9053,9054,... [--branch NAME] [--dry-run] [--push] [--no-bless]--push, opens a draft PR listing every PR it replaces.What it will not do: mark the PR ready, merge it, or close the originals. It prints the exact
gh pr closecommands for a person (or churn) to run once the batch is green. It refuses (exit 2, nothing pushed) if a PR's change no longer applies, or if two PRs edit the same lines of the same file. A PR whose change is already on main is skipped with a note.Tested: 18 unit tests with tiny temporary git repos (no network): which paths are snapshots, splitting a diff, overlap detection, binary files surviving, a diff that no longer applies, already-on-main, PR title/body text. A real
--dry-runagainst two closed PRs ran end to end and cleaned up after itself.Not tested: the bless step and
--push(they take many minutes and open a real PR). They are the same commands I ran by hand for #9111, wired in; the first real use should be watched.Ruff and mypy are clean for the new files apart from the repo-wide
assertbaseline in tests.🤖 Generated with Claude Code