One traffic cop for main

Pinch or Ctrl+scroll to zoom; the text is selectable. Source · TheYard

One traffic cop for main: three lanes each push a ready branch; the ready queue holds them, oldest first; the traffic cop takes one and assigns main plus one; the full gate runs build, tests, quality and CodeRabbit; a pass ships to main and the version goes live, a fail is logged and skipped and the lane sees why on its branch; either way the cop takes the next ready branch One traffic cop for main Top to bottom is one version's way to the live site. No lane picks a number: the cop assigns it, one branch at a time. 1 Three lanes finish their work code1118b ready/code1118b-395e780b pushes ready branch adminfix1118 ready/adminfix1118-352343c4 pushes ready branch zfix1118 ready/zfix1118-983f125a pushes ready branch one commit each, numbers left as placeholders 2 Ready queue: ready/* branches, oldest first Each push starts a Gate run that waits in GitHub's one gate group (queue: max). The order is GitHub's and is not promised. 1st ready/code1118b-395e780b 2nd ready/adminfix1118-352343c4 3rd ready/zfix1118-983f125a the run that holds the group 3 Traffic cop: takes one, assigns main + 1 Rebases the commit onto main, lifts the lane's changelog line over main's newest, and fills the version, the date and the record number. Two branches pushed seconds apart still land as N and N+1: the number is read inside the group. scripts/cop.sh, the Gate run's first job the filled commit, handed to every job 4 Full gate: build, tests, quality, CodeRabbit The build with no warnings, xUnit on SQLite and on the Cosmos DB emulator, the browser suite, The Shed, the quality ratchet, and CodeRabbit's review of the lane's own commit. Every job tests the filled commit and nothing else. .github/workflows/gate.yml all green a check red, or a skip 5 Pass: ship to main The version lands on main and both live sites roll. The lane's commit reads: landed as 1.0.5.N, main 1a2b3c4d The ready branch is deleted after that. Fail: log and skip Main is not touched. The lane sees why on its branch: red gate: xunit; Failed ... skipped: the rebase conflicts in ... The lane fixes it and pushes a new ready branch. 6 Either way, the cop takes the next ready branch: a red version never holds the line behind it.