Skip to content

PR CI compiles a declared binary whose own source the PR touches (card 67bf5d81) - #5431

Merged
joelteply merged 2 commits into
canaryfrom
67bf5d81/ci-compiles-touched-bins
Oct 25, 2026
Merged

joelteply merged 2 commits into
canaryfrom
67bf5d81/ci-compiles-touched-bins

Conversation

@joelteply

@joelteply joelteply commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

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 (the continuum-core-server that serves the residents) or a src/bin file 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

  • The selector, 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 for src/bin/<x>.rs its module directory src/bin/<x>/. A change to the crate's Cargo.toml, where the bins are declared, selects every declared bin.
  • The crate's existing job runs one 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 check of that binary, on top of artifacts the lib build already made.

Not covered (so this is NOT "every binary change is compiled"):

  • Implicit bins. Undeclared src/bin/*.rs files that Cargo discovers on its own are not read.
  • Missing workspace evidence. When the full fallback runs, no bins are selected.
  • The CLI binary. The handoff job already compiles it.
  • Pushes to canary or main. These keep their full lib net; the hourly publication compiles every bin.
  • A lib change that breaks a bin's use of the lib. The publication still catches that, after merge. Covering it before merge would mean checking continuum-core-server on 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.
  • New test: src/main.rs selects continuum-core-server; main plus forge_custodian.rs selects both. A lib file, the CLI's module directory, docs, and a push each select none.
  • Mutation check: with the selection disabled, that file fails (pass 0, fail 1).
  • Workflow YAML parses.

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

…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
@joelteply

Copy link
Copy Markdown
Contributor Author

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.

@joelteply
joelteply merged commit a2e59ef into canary Oct 25, 2026
32 checks passed
@joelteply
joelteply deleted the 67bf5d81/ci-compiles-touched-bins branch October 25, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant