Repository navigation
PR CI compiles a declared binary whose own source the PR touches (card 67bf5d81) - #5431
Conversation
…d 67bf5d81) Every crate job builds the lib or lib tests, so a PR editing core/continuum-core/src/main.rs (continuum-core-server) or a src/bin file reached canary with no compile of that binary; the first compile was the hourly core-binaries publication, after merge (found on #5430). The selector (ci-change-scope.cjs, the one owner of check selection) now reads each crate's [[bin]] targets and returns the touched ones per tested crate: the bin's file, and for src/bin/<x>.rs its module directory. The crate's existing job then runs one cargo check with those --bin flags. No new job; a PR that touches no binary runs nothing more. The CLI binary stays with the handoff job, which already compiles it; pushes keep their full lib net, and the hourly publication still compiles every bin. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…very bin it declares (Codex on #5431) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
|
Source and selected-CI PASS reverified at 7f9011b, including the amended --locked command and Cargo.toml selecting every declared bin except the CLI handled by its existing job. Reviewed the full current diff and manifest fixture. Scope remains declared name/path binaries touched directly or by their src/bin module directory; implicit bins, library-dependent bins and push/missing-workspace fallback are not newly covered. CI: selector 121299138428, core 121299188289, aggregate 121300721204, bindings 121300746315, CLI handoff 121299188091, hygiene 121298850442 succeeded. Platform binary run 40236412517 succeeded on macOS arm64 (121299793776), macOS x86_64 (121299793753), Windows x86_64 (121299793807). Native Windows lifecycle/custody were skipped. Clear for owner integration. #5430 still needs its rebased exact-head binary-check receipt; this PR's green checks do not compile that later change. |
Why (card 67bf5d81; plan line 1, the build loop; found on #5430)
Every crate job compiles only the lib or the lib tests. So a PR that edits
core/continuum-core/src/main.rs(thecontinuum-core-serverthat serves the residents) or asrc/binfile reached canary with that binary never compiled. Its first compile was the hourly core-binaries publication, after merge. Codex asked #5430 for a binary compile receipt, and no PR check could give one.Change
tools/scripts/ci-change-scope.cjs(the one owner of check selection), now reads each crate's[[bin]]targets. It returns the touched bins per tested crate: the bin's own file, and forsrc/bin/<x>.rsits module directorysrc/bin/<x>/. A change to the crate'sCargo.toml, where the bins are declared, selects every declared bin.cargo check --locked -p <crate> --profile dev-fast --features <its test features> --bin …when that list is non-empty.CI cost: there is no new job. A PR that touches no binary runs nothing more; one that does pays one
cargo checkof that binary, on top of artifacts the lib build already made.Not covered (so this is NOT "every binary change is compiled"):
src/bin/*.rsfiles that Cargo discovers on its own are not read.continuum-core-serveron every core PR, and I'd want a measured cost first.Tested
node --test tools/scripts/tests/ci-change-scope.test.cjs tools/scripts/tests/ci-cargo-freshness.test.cjs: pass 2, fail 0.src/main.rsselectscontinuum-core-server; main plusforge_custodian.rsselects both. A lib file, the CLI's module directory, docs, and a push each select none.This PR's own CI runs the full gates (it touches the workflow), so the new step is skipped here. Its first live run is #5430 rebased onto this, which is also the receipt Codex asked for there.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE