Repository navigation
build: CI runs the lanes a change can affect, behind a CI gate; the release runs every lane - #123
Merged
Merged
Conversation
Each changed path selects the Linux leg, the Windows and macOS legs and the pack by its class, and a path no class names selects everything. A pull request into main, a push to main, a dispatch, the nightly run and the release run every lane. A gate job, CI, over every job becomes the required build check, and release.yml calls the build workflow before it verifies. The evidence is the 11 runs since the prober left: 15.0 min median wall clock and 33 runner-minutes, whatever changed. KB-043 records the GitHub Actions facts it turned on: a skipped job passes a required check, concurrency groups ignore case and a called workflow takes its caller's name, and the GITHUB_TOKEN can dispatch a workflow. Refs #118 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…indows or macOS A prose-only change will run the Linux leg alone, so a name Windows refuses or two names a case-insensitive file system takes for one would first fail on the release's pull request. The test reads git's index, which holds names this file system cannot, and refuses Windows' reserved characters and device names, a segment ending in a dot or a space, paths equal under case folding and NFC (directories too) and a path over 160 characters. Seeded: docs/a:b.md and Docs/seed.md staged beside docs/ both fail it. Refs #73 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…judges the run select diffs a pull request into release/** against its base and a push to one against the commit it replaced, with --no-renames, and answers the test matrix and whether to pack; every other run gets every lane, and a diff that fails fails. classify prints a path's class. gate reads the workflow's toJSON(needs) and passes only when the selection succeeded with answers it writes, every selected job succeeded and every other was skipped. Tested over a catalogue of 24 paths, one per class and the unlisted ones, the events, and the gate's failures. Seeded: without --no-renames a move out of src/ selects Linux alone, and a gate that accepts an unselected job that ran passes it; both fail the tests. Refs #118 Co-Authored-By: Claude Opus 5.5 <[email protected]>
… gate judges the run The changes job decided in a shell case: it failed open (a failed job skipped Pack and Consumer, which read as passing), listed a rename's new path only, and missed tools/Shared, .config/dotnet-tools.json and CHANGELOG.md, whose section the packages' release notes are since #107 (#113's run skipped Pack for it). Now it runs ci-lanes select. The test matrix is its legs, Pack and Consumer need only changes and start beside the test legs (#117), and a CI job under always() runs ci-lanes gate over every job. CiLaneTests classifies every file MSBuild evaluates for the packages and the smoke test, items and imports, and fails one that skips the pack. release.yml's ci job calls dotnet.yml (now also workflow_call) and verify needs it; dotnet.yml's concurrency group is prefixed, since under the call it would otherwise equal the release's. nightly.yml dispatches dotnet.yml on main and every release branch. Seeded, each failing its test: tools/Shared dropped from the smoke test class (CiLaneTests), the concurrency prefix removed and consumer dropped from the gate's needs (ReleaseWiringTests). Closes #70. Defect-Class: TOOL Found-By: RS Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 29, 2026
…ease runs, and a prose suite The lanes are now linux, windows, macos and pack. Over the 150 runs before decision 113 a Windows or macOS leg failed beside a passing Linux leg three times: twice for prober tooling and once for the analyzer's code fix, which wrote CRLF beside LF in a Windows checkout (f9f64e5); macOS never failed alone. So the analyzers, the generators, tests and tools select Windows, the other run-time packages Linux and the pack, and macOS runs only where nothing is selected: the release's pull request, main, a dispatch, the nightly run and the release. A prose-only change builds and tests test/Prose.slnf, the four test projects that read prose and the woven probes the conventions read; the first docs-only run spent 3.6 min testing EF Core, the analyzers and ASP.NET Core, which read none. ProseReaderTests fails a test project outside the filter whose sources name a prose path, with waivers for literals that read nothing. The gate refuses a suite answer the selection does not write, and the prose suite beside another leg or the pack. Seeded, each failing its test: the source-text class dropped and macOS let into unlisted paths (SelectionTests); a docs/json.md read added to an EF test (ProseReaderTests); the solution choice hard-wired to the filter (ReleaseWiringTests); the prose suite chosen when any path is prose (SelectionTests). Refs #118 Co-Authored-By: Claude Opus 5.5 <[email protected]>
CaffeinatedCoder
added a commit
that referenced
this pull request
Oct 29, 2026
CaffeinatedCoder
added a commit
that referenced
this pull request
Oct 29, 2026
CaffeinatedCoder
added a commit
that referenced
this pull request
Oct 29, 2026
CaffeinatedCoder
added a commit
that referenced
this pull request
Oct 29, 2026
Owner
Author
Before and afterThe same one-line change, in throwaway draft PRs. "Before" PRs went into
An Analyzers or Generators change adds the Windows leg (about 8.5 min). A PR into |
This was referenced Oct 29, 2026
CaffeinatedCoder
added a commit
that referenced
this pull request
Oct 29, 2026
release/2.3.0 took KB-043 for the GitHub Actions facts (#123), so this branch's three facts move up by one: SuperStrong.Types is KB-044, the compared libraries' first releases KB-045, and C# 15's union types KB-046. The knowledge index keeps both sides' rows, and the comparison's links follow the new numbers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 29, 2026
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.
Closes #118, closes #70, closes #71, closes #73, closes #74
Problem
Every PR into
release/2.3.0ran the whole matrix whatever it changed. The 11 runs since the prober left CI took 15.0 min median wall clock (12.6 to 21.4) and 33 runner-minutes. Thechangesjob skipped Pack and Consumer only when no path on its hand-written list changed, and that list was unreliable:changesjob skipped Pack and Consumer, and GitHub reads a skipped required check as passing.src/looked like a docs change.tools/Shared,.config/dotnet-tools.jsonandCHANGELOG.md. The changelog is a pack input since build: each package's release notes are its version's changelog section #107, and feat: a released version's changelog links name its tag #113's run skipped Pack on a changelog edit.Nothing told a deliberate skip from an accidental one. The release never ran the Windows and macOS legs or the smoke test's own-feed mode (#70, #71, #73, #74).
Change
Decision 113 picks which parts of CI ("lanes") a change runs:
docs/,design/, issue templates,*.mdoutsidesrc/CHANGELOG.mdsrc/CodoMetis.TypeKit.Analyzers/,src/CodoMetis.TypeKit.Generators/src/packagestest/,spikes/, the other toolstools/Shared,tools/Directory.Build.*,tools/CiLanes, build files, workflows, anything unlistedPRs into and pushes to
release/**select by diff, and never run macOS. A PR intomain, a push tomain, a dispatch, the nightly run and the release run every lane, macOS included. Over 150 runs, the onlysrc/defect a Windows leg caught alone was the code fix's CRLF (f9f64e5), and macOS caught nothing alone. The prose suite istest/Prose.slnf: the four test projects that read prose, and the woven probes that Conventions reads.tools/CiLanesis a new BCL tool (decision 92):selectdiffs with--no-renamesand writes the test matrix, the pack answer and the suite (proseorfull). A diff that fails fails the job.classifyprints a path's class.gatejudgestoJSON(needs).dotnet.yml:legs, and the Linux leg buildstest/Prose.slnfwhen the suite isprose.changes, so they start beside the tests (folds in build: Pack and Consumer start alongside the test legs #117).CIjob underalways()runs the gate.workflow_call, and its concurrency group isci-…, since under the call it would otherwise equal the release's (KB-043).release.yml: a newcijob callsdotnet.yml, andverifyneeds it.nightly.ymldispatchesdotnet.ymlonmainand everyrelease/*branch. It starts once 2.3.0 is onmain.PortableFileNameTestsrefuses names Windows or macOS cannot check out.CiLaneTestsclassifies every file MSBuild evaluates for the packages and the smoke test.ProseReaderTestsfails a test project outsidetest/Prose.slnfwhose sources name a prose path.ReleaseWiringTestsholds the new structure.After the merge, outside this PR and only on approval:
main's required checks becomeCIandLabels and issue link, and the release-branch ruleset addsCI.Tests
CodoMetis.TypeKit.CiLanes.Tests: 89 tests over a catalogue of 24 paths, the events, and the gate's failure cases: a failed or cancelled selection, a cancelled leg, a malformed answer, a selected job that was skipped, and an unselected job that ran.--no-renames, a move out ofsrc/selects Linux alone (SelectionTests);GateTests);tools/Shared/**dropped from the smoke-test class (CiLaneTests, ConsumerSmokeTest row);ci-prefix removed from the concurrency group (ReleaseWiringTests);consumerdropped from the gate'sneeds(ReleaseWiringTests);docs/a:b.mdandDocs/seed.mdstaged in the index (PortableFileNameTests);SelectionTests);docs/json.mdread added to an EF test (ProseReaderTests);ReleaseWiringTests);SelectionTests).src/: 16.5 → 7.3 min, 38.4 → 17.7.🤖 Generated with Claude Code