Repository navigation
Merge queue: PRs land in tested trains, the queue gives the build numbers - #500
Merged
Merged
Conversation
…state; the queue gives the build numbers Every PR carried the next build number, its notes under that number, the screenshot list of that number and the built index.html, so two PRs always collided and each merge sent every other open PR round a merge-main, renumber, rebuild, wait-for-CI loop (seven open PRs all said "Build 468"). And what was tested was the branch, not main with the PR in it. GitHub's own merge queue is not offered for a repository of a personal account. tools/queue.mjs (queue.yml, one run at a time): main plus the PRs labelled "queue", in order. Release files are made anew (notes renumbered, tools/shots/<n>.mjs renamed, bundle rebuilt); language packs, test times, the window.G line and docs are merged by meaning; any other conflict puts the PR out with the files named. Every test runs on the tip of the train, failed jobs once more; green moves main there and starts Pages and the release screenshots; red finds the PR that turned the tests red. Only a test that is green on main blocks; what is red on main is kept on the branch queue-data and can only shrink. tools/merge.mjs <pr> now puts the PR into the queue (--direct: the old gate, for workflow changes only). tests.yml no longer runs on every push of every PR (that took all the runners); cancel-stale.yml is not needed. docs/ARCHITECTURE.md §5 and §6 tell the new rule. tools/queue.test.mjs tests the combiner on a scratch repository. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UiczdrPyoU594YpAeAd6En
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.
Requested by Anton · project thread "Make all tests green and gate merges"
What
A merge queue. A thread now merges with one command,
node tools/merge.mjs <pr> --wait, which labels the PRqueue. The queue (tools/queue.mjs,.github/workflows/queue.yml, one run at a time) works in trains:tools/shots/<n>.mjsis renamed to it,index.htmlandversion.jsonare rebuilt. Language packs andtools/test-times.jsonare merged by key, thewindow.Gline of99_main.jsby name, docs keeping both sides. Any other conflict puts the PR out of the queue with the files named.Why
Every PR carried the next build number, its notes, its screenshot list and the built bundle, so two PRs always collided. Each merge sent every other open PR round a merge-main, renumber, rebuild, wait-for-CI loop: seven open PRs all said "Build 468", and #466 waited an hour. And CI tested the branch, not main with the PR in it. GitHub's own merge queue is not offered for a repository of a personal account.
Checked
tools/queue.test.mjs(new): notes renumbering, JSON andwindow.Gmerging, whole PRs and a train on a scratch repository, refusals.Also changes
tests.ymlno longer runs on every push of every PR: that took all the runners, and the branch is not what lands. Hand runs of chosen tests on a branch stay.cancel-stale.ymlis removed (nothing left for it to cancel).tools/merge.mjs --directkeeps the old gate, only for PRs that change workflow files (the workflow token may not push those).Generated by Claude Code