Repository navigation
ci: Rust tests per affected crate, in parallel (card 44a3c460) - #5330
Conversation
c24dac3 to
7d94201
Compare
|
Review at exact head 7d94201: the required aggregate rejects a failed selector or failed selected matrix; I found no fail-open in that aggregation. One reproducible graph gap remains: readWorkspace ignores inherited workspace path dependencies. With root [workspace.dependencies] continuum-kernel = { path = "kernel" }, and continuum-core declaring continuum-kernel.workspace = true, a kernel/src/lib.rs change selects only continuum-kernel and omits continuum-core. I executed this against the exact selector in a minimal filesystem fixture, without compiling. Resolve inherited local paths (including aliases), or fail closed when graph completeness cannot be established, and add this regression. This is a supported-manifest regression scenario, not a claim that the current core/kernel edge already uses inheritance. Integration reminder: when Perception #5331 lands, preserve its own lib suite with --features test-fixtures; dependency compilation does not run those 38 tests. Apply the same rule to Genome when its crate cut lands. Current canary does not yet expose core/continuum-genome, so this is an integration condition, not a claim that Genome already merged. Trial execution/timing receipts still needed before final clearance. |
537b075 to
d253e13
Compare
The selector derives the crates to test from the workspace's Cargo.toml graph: every crate a changed path lies in plus all of its dependents. Workspace-wide inputs (Cargo.lock, root Cargo.toml, .cargo, build.rs, core/vendor) and any path outside a member select every crate; docs and installer-only changes select none. Pushes to canary/main run every crate. The CLI handoff regressions run only for the CLI and lifecycle paths or a full selection. The single serial job becomes one matrix job per selected crate; each crate's own fixtures move with it (training script with the genome, native custody interop with the engine, doc guards with the mind, CLI handoff and the warning ratchet with core). The required context "cargo test -p continuum-core --lib" is now an aggregate that passes when every selected crate job passed or none was selected. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
d253e13 to
e6e7b82
Compare
Plan line 1 (the build loop, edit-to-checked) and the rule "CI changes subtract": a crate-local PR verifies the crates it can affect, in parallel, instead of one serial 35-minute job (canary run 39957318217).
Selection (
tools/scripts/ci-change-scope.cjs)readWorkspace). No hand-kept dependents list..cargo/, anybuild.rs,core/vendor/**, and any path outside a workspace member (protocol/, tools/scripts/, workflows, docs/genome/...) select every crate.core/continuum-cli-lifecycle/**orcore/continuum-core/src/bin/continuum{.rs,/**}change, or on a full selection.Workflow
crate-testsmatrix: one job per selected crate,fail-fast: false, same shared cache key; only the core job saves, only on pushes.cuda_train_test.py-> genome; C++ lease test + fs2/native interop -> engine;--docguards -> mind; perception and genome (cut on canary during review) get their own jobs; Postgres steps dropped with Delete unused Postgres support (SQLite is the only store) #5333; script tests, warning ratchet, core lib binary, CLI handoff -> core. Each job checks ts-rs drift for what it regenerated.cargo test -p continuum-core --libis now the aggregate (required name kept);ts-rs binding drift detectorstill mirrors it.Measured
Baseline: canary push 39957318217, 36.0 min wall (one serial job); today's PR runs took 26-54 min (median ~36).
All runs below are ubuntu-latest PR runs, at 7d94201 (before the rebase onto canary, which added perception and genome).
The variance is apt, not the build. The
System depsstep normally takes 11-27 s and stalled for 425/463/1,177 s on 3 of 13 jobs. Without the stall, (b)'s core path is ~15 min: checkout+toolchain 24 s, cache restore 158 s, core lib build+run 721 s.The 8 min target is not met. The floor of any run that includes core is cache restore (2-5 min, 7.4 GB) plus core's lib test build (~12 min). Cargo fingerprints workspace crates by mtime, and a fresh checkout makes every one look dirty, so every unchanged workspace crate is recompiled from the cache's external deps on every run. Jobs that do not build core finish near the target (kernel 5.5 min), but every selection includes core, because core depends on every tested crate.
Re-run on the rebased head: 40043838338.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo