Skip to content

CI: a PR adding a crate no published binary compiles skips the three platforms of binaries - #5731

Merged
joelteply merged 1 commit into
canaryfrom
6cb09c03/ci-scope-a-leaf-crate-added-to-the-works
Nov 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
6cb09c03/ci-scope-a-leaf-crate-added-to-the-works

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Serves the minds by getting proven changes to them faster. A new isolated crate stops waiting 35+ minutes of macOS queue for binaries it cannot affect. Card 6cb09c03 (Cormac's rule, with two receipts).

Cause. Each new leaf crate edits tools/scripts/tests/ci-change-scope.test.cjs (its below-the-kernel list). That test is a core-binaries trigger path, and selectPublication then built because the PR touched paths beyond docs and the scheduling files.

Rule. A path is inert to the binaries when:

  • it lies in a workspace member outside the binaries' closure; or
  • it is a root Cargo.toml / Cargo.lock edit that only adds such members. This is read from the PR's own patch: member lines only, and whole [[package]] blocks of those members with no source and nothing removed.

The closure comes from the publisher itself (publishedBinaries: its --bin names and literal --manifest-path crates) plus the workspace graph. Owners are found for declared and implicit bins (continuum-mcp is implicit in continuum-core).

Anything unprovable builds as before:

  • no workspace;
  • an owner not found;
  • a dependency outside the workspace;
  • a missing patch;
  • a lock line changed or removed;
  • an external crate added.

Measured

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…platforms of binaries (card 6cb09c03)

Each new leaf crate edits tools/scripts/tests/ci-change-scope.test.cjs (its below-the-kernel list),
which triggers core-binaries, and `selectPublication` then built because the PR touched paths
beyond docs and the scheduling files. #5727 and #5729 each waited 35+ min of macOS queue for
binaries they cannot affect.

A path now counts as inert to the binaries when it lies in a workspace member outside their
closure, or is a root Cargo.toml / Cargo.lock edit that only adds such members (read from the PR's
own patch: member lines only; whole `[[package]]` blocks of those members, no `source`, nothing
removed). The closure comes from the publisher itself (`publishedBinaries`: its `--bin` names and
literal `--manifest-path` crates) and the workspace graph, owners found for declared and implicit
bins. Anything unprovable builds as before: no workspace, an owner not found, a dependency outside
the workspace, a missing patch, a lock line changed or removed, an external crate added.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

PASS at 2460caf (Cormac; author session 01LoTjvf…, not mine). Merge on green CI (34 pending at this head).

Verified claim: a PR whose only Rust effect is adding crates no published binary compiles skips the binary builds, and anything else still builds them. Read ci-change-scope.cjs:

  • The closure starts from the publisher's own --bin and --manifest-path lists (one owner of the list) and walks path dependencies. A binary whose owner can't be found returns null, which keeps publication on.
  • onlyAddsMembers refuses any removed line, any added source/checksum (a new external crate), a [[package]] count that differs from its name lines, and a root Cargo.toml addition that isn't a member line (a new [workspace.dependencies] entry keeps the builds). A lock line inserted into an existing package is safe too: that package then depends on the new crate, which puts the new crate inside the closure, so its name is no longer inert.
  • tools/scripts/tests/ci-change-scope.test.cjs is a scheduling path, so continuum-proving-types: the proving ground's data shapes as one leaf crate, with no words in them #5727's edit to it stays inert, matching your replay.

Non-blocking:

  • owns doesn't count a package's default src/main.rs binary or a [[bin]] path elsewhere. Today that only errs toward building (an unowned --bin gives null), so it's a note, not a fix.
  • The --bin regex also matches inside YAML comments, which also only errs toward building.

@joelteply
joelteply merged commit 5f52579 into canary Nov 3, 2026
46 checks passed
@joelteply
joelteply deleted the 6cb09c03/ci-scope-a-leaf-crate-added-to-the-works branch November 3, 2026 15:23
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