Repository navigation
Tests no longer depend on the host they run on - #5208
Conversation
|
FAILED #5208 at 87a4137, Cormac, on CI only. Source claim PASS: tests stop reading the host, and production still reads it the same way. How I checked the claim:
Blocking: source-hygiene is red (job 118362518906). Lines past 1000 is 157,492 vs 157,412, +80 in files already over 1000. The fix is the file_size message's: split or move test modules out ( Root cause, mine to fix: working_set.rs:115 builds Not compiled on IntelMac. |
…wer the file-size baseline (card c4d84be3) #5208 grew spawner_module.rs (+73) and working_set.rs (+7) past the file-size ratchet. persona/roster_draw.rs now owns the draw: OperatorRoster, draw_intents, seats_under, bounded_by_warm_slots, their tests, and the two roster-policy constants they read (moved down from modules::citizen_health, which imports them, so persona no longer names a higher ring for them). spawner_module.rs falls to 988 lines. PersonaDemand derives Default and its three hand-zeroed literals use it (working_set.rs 1,419 -> 1,399). The 5090 capacity fixture lives in capacity/profile_fixtures.rs behind the test-fixtures gate. Lines past 1000: 157,397 -> 157,146. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
87a4137 to
8009221
Compare
a2465d9 to
5d25705
Compare
|
PASS #5208 at 83a670f, Cormac. My earlier FAILED (CI only) is resolved. Exact-head CI is green, and the source claim I checked at 87a4137 stands. Delta checked:
This matters beyond #5208. Three different disk_eviction tests failed on unrelated PRs tonight, on canary 0dcd2f7 / 79c970f:
|
83a670f to
35cee44
Compare
…card c4d84be3) seats() and the boot draw read ~/.continuum/roster-hold.json and the resting seats inline, so four spawner tests seated 4 on the M5 (whose operator hold names four) instead of 6/12/8/10. OperatorRoster is now the injected source: production reads this host's (OperatorRoster::on_this_host), the tests hand an empty one, and draw_intents reads the same snapshot instead of a second global read. A module-level assertion covers the injected hold + resting seat. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ixture (card c4d84be3) serving_budget_bytes read config_env::vram_headroom() inline, so three budget tests (system_profile x2, expert_pager) asserted whichever ~/.continuum/config.env the runner carries. The fraction is now a from_parts input: detect() passes the configured value, fixtures state 0.80. The four copies of the 5090-shaped fixture (expert_pager, expert_reconcile, serving_pager, placement_planner) collapse into system_profile::discrete_fixture. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
sentinel parallel: two branches rendezvous on each other's mark file, so only concurrent execution lets both finish (the step timeout is a liveness bound). rag engine: sources load sequentially (the doc said parallel); the test now asserts each source loads once in order, the engine measures each load, and the composition window covers them: lower bounds that hold on any host. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
CargoTargetPool::new wires the disk monitor's published volume sample, the running core's citizen quiescence and the global serving pin. fixture_pool pins all three, so pressure_is_budget_relative and the ladder tests no longer read the runner's real volumes or another test's pin. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…card c4d84be3) record/record_sent persist to the real home; tests with fixed persona ids (01010101-..., 02020202-..., 03030303-...) left demand files the next boot rehydrates. Adds record_sent_in_memory beside record_in_memory and moves the working_set and serving_daemon tests onto the in-memory halves. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…() (card c4d84be3) detect() panics on a host without a GPU and sizes allocations to the runner's card. test_gpu_manager, the gpu module and the persona-allocator module fixtures now use a fixed 16 GiB simulated device. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…wer the file-size baseline (card c4d84be3) file-size ratchet. persona/roster_draw.rs now owns the draw: OperatorRoster, draw_intents, seats_under, bounded_by_warm_slots, their tests, and the two roster-policy constants they read (moved down from modules::citizen_health, which imports them, so persona no longer names a higher ring for them). spawner_module.rs falls to 988 lines. PersonaDemand derives Default and its three hand-zeroed literals use it (working_set.rs 1,419 -> 1,399). The 5090 capacity fixture lives in capacity/profile_fixtures.rs behind the test-fixtures gate. Lines past 1000: 157,397 -> 157,146. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…rd c4d84be3) ladder_frees_in_order_and_preserves_release_outputs failed once on #5200's Linux CI (run 39352761897: 'remaining ladder: decline=1', i.e. BuildHoldsRootLock on a tempdir nothing else owns) and passed on rerun. On Linux posix_spawn is clone + exec: any process the test binary starts holds a copy of the fd table until it execs, keeping a just-released .cargo-lock flock alive for that instant. macOS spawns atomically, so it never showed there. past_spawn_windows retries only a lock decline that freed nothing (1 s liveness bound) and returns any other outcome to be asserted; every eviction/relief that is expected to cut uses it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… c4d84be3) CI run 39362437168 failed profile_outputs_stand_down_while_a_process_executes_under_them with 'spawn the sleeper: Text file busy': fs::copy held the image open for write while another thread's spawn cloned the fd table, so exec saw ETXTBSY until that child exec'd. Only that error is retried, within the same 1 s liveness bound as the lock retries. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…memory halves; probe/base paths Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
35cee44 to
8ccd0df
Compare
|
PASS #5208 at 8ccd0df (delta from my PASS at 83a670f), Cormac, 2026-10-21T17:29:52Z. Claim checked: tests stop reading the host, and production reads it exactly as before. How, reading the current diff (spawner_module.rs, working_set.rs, system_profile.rs, profile_fixtures):
|
|
Rebase note (8ccd0df): canary split |
Card c4d84be3. Joel: "Need to stop hard coding to our own machines."
On the M5 on 10-19, tests read the operator's hold file and config.env, the live disk monitor and the wall clock. Each of them now takes that input from its owner as an injected value, and the fixture supplies a fixed one.
What changed
persona::spawner_moduletests (got 4 seats, not 6/12/8/10)~/.continuum/roster-hold.json(the M5's hold names four) andresting-seats.json, read inline inseats()anddraw_intentsOperatorRosteris an injected source.on_this_host()in production; tests pass an empty one.draw_intentsreads the same snapshot instead of a second global read. A new assertion covers an injected hold plus a resting seat.capacity::system_profile×2,capacity::expert_pager(budget assertions)config_env::vram_headroom()from~/.continuum/config.env, insideserving_budget_bytesSystemProfile.budget_fractionis afrom_partsinput.detect()passes the configured value and fixtures pass 0.80. Four copies of the 5090 fixture are now one,system_profile::discrete_fixture.sentinel::steps::parallel::test_branches_run_concurrently(< 180 ms)rag::engine::test_parallel_source_loading(< 250 ms)system_resources::disk_eviction(pressure_is_budget_relative, ladder/stand-down)fixture_poolsets all three host inputs. A test that is about one of them still overrides that field.Found by the same search and fixed here:
cognition::working_setand twoserving_daemontests wrote~/.continuum/personas/<id>/working-set.jsoninto the operator's real home. The stray01010101-…,02020202-…and03030303-…dirs are on this M5 now, and the next boot rehydrates them. Addedrecord_sent_in_memorynext torecord_in_memory, and these tests now use the in-memory halves.persona::allocator::test_allocate_with_anthropic_key, themodules::gpuandmodules::persona_allocatorfixtures calledGpuMemoryManager::detect(), which panics with no GPU. They now use the existing simulated 16 GiB device.Not duplicated:
config_env::read_all_on_a_missing_file_is_empty_not_a_panic, which #5194 fixes.Left for an owner
modules::serving_daemon::the_sidecar_headroom_is_planned_not_a_relaunch_window_free_readstill readsCONTINUUM_SERVING_PLACEMENTandSERVING_KV_CACHE_TYPEfrom the real config.env, viakv_cache_plan::resolve/main_lane_placement.capacity::ceiling_priorreads it too, but it only checks bounds. The fix belongs inconfig_env::config_path: acfg(test)home likepaths::continuum_home'stest_home. continuum-base: the floor crate leaves the 687k-line monolith; split crates stay under every gate #5194 moves config_env into continuum-base, so I left it to that PR's author (fable/continuum-base) to avoid a conflict.gpu::backends::metal::snapshot_matches_individual_getterscompares two live free-memory reads with a 1 GB tolerance. That is a Metal adapter test; owner: metal backend.> 0(gpu::memory_manager::test_detect_returns_nonzero,inference_capability::hw_probe,system_resources::monitor,ipc::diagnostics) are left as they are. They test the probe itself.Measured (M5, Mac17,9, 64 GB; worktree at 87a4137, 2026-10-19)
cargo test -p continuum-core --lib --features metal,accelerate: 9014 passed, 1 failed (the config_env test continuum-base: the floor crate leaves the 687k-line monolith; split crates stay under every gate #5194 fixes), 47 ignored, 407 s.HOMEset to a fixture home holdingCONTINUUM_VRAM_HEADROOM=0.92and a 4-name exclusive hold (the M5 conditions), filterscapacity:: spawner_module placement_planner: 226 passed, 0 failed.cargo check -p continuum-core --features metal,accelerate --tests: exit 0, no warnings in changed files.cargo test -p source-hygiene: 37 passed, baselines unchanged.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo