Repository navigation
feat(tools): a merge train that lands queued decoder PRs one at a time - #298
Merged
Merged
Conversation
Each merge left the other open decoder PRs stale on the generated files: the corpus baseline, the coverage page and its notes, the spec-example fixtures and the ARCHITECTURE.md section letters. tools/maintainer/train merges main into each branch without a force push, renumbers its new section, merges the coverage table cell by cell, regenerates every generated file from a real corpus run, refuses any count worse than main's, and turns auto-merge on only once Corpus is green and no review thread is open. docs/maintaining.md also lists the two newly required checks.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f4372dbf3c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 26, 2026
…ling it A timeout or a failing check left auto-merge on, so the abandoned PR could merge while the train refreshed the next one (#298 review). A branch that strict up-to-date reports BEHIND now exits 8 for a real refresh instead of waiting out the deadline.
2 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 26, 2026
* fix(ci): land.sh hands a PR back when a review thread opens after auto-merge The ruleset holds a PR with an unresolved thread, and land.sh's wait loop only watched for merge, DIRTY, a moved main and failing checks, so a thread the reviewer opened after auto-merge went on (#258, 2026-10-26) stalled the train until the deadline. The loop now turns auto-merge off and exits 2 on a positive unresolved count; a failed query counts as none. * fix(ci): land.sh treats any positive thread count as open, not just 1-99 * fix(ci): land.sh turns auto-merge off on every failed exit after enabling it A timeout or a failing check left auto-merge on, so the abandoned PR could merge while the train refreshed the next one (#298 review). A branch that strict up-to-date reports BEHIND now exits 8 for a real refresh instead of waiting out the deadline.
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.
With four lanes merging, every open decoder PR went stale on the generated files after each merge:
tools/corpus/baseline.tsv,docs/spec-coverage.md, the notes indocs/data/spec-coverage.tsv, the spec-example fixtures, and the## 7x.letters of new ARCHITECTURE.md sections (the residue lane pre-assigned §7k–§7u while the spec lane took §7k and §7l). Landing them by hand cost a CI cycle each. This commits the train that has been landing them today, so it survives the session that wrote it.tools/maintainer/train/train.sh <pr>...queues PRs and lands them one at a time:refresh.shmergesmaininto the branch (no force push), moves a colliding ARCHITECTURE.md section to the next free letter along with every§7xin lines the PR added (arch.py), and resolves conflicts only in generated or tabular files (tsv3.py: cell by cell, and a coverage note both sides rewrote keeps the PR's free text, with main's dropped text posted on the PR). A conflict in a section's state or any other file refuses. It then builds, runs the pinned corpus, refuses any count worse than main's baseline, regenerates the baseline, runsspec_examples(refusing if an example losescloses), rewrites the DXF oracle notes, regenerates the coverage page and pushes.land.shwaits for the Corpus job on the pushed head and zero unresolved threads, then enables squash auto-merge. Ifmainmoves under it,DRY=1 refresh.shdecides whether the PR's generated files are still right before anything is re-pushed.State (queue, log, per-PR evidence) lives in
.git/train/;common.shlists the environment variables that move it. No absolute paths are committed.Evidence: today's landings and refreshes through these scripts' scratch versions (#247, #252, #261, #262), and an end-to-end
DRY=1 refresh.sh 262through the committed files (own state dir, worktree and target dir): build, corpus run, "vs main: 6 improved row(s), 0 regressions", "DRY: generated files unchanged on current main", exit 0.docs/maintaining.md's required-check list also gains Corpus (public DWG) and Spec coverage (required since 2026-10-26).
Source provenance: written for this repository; no external source consulted.