Repository navigation
Conversation
…driver before it releases runs alone (hw_held_) A device-wide sync in a parallel test (cuMemFree, a fresh handle's cuCtxSynchronize) holds the driver's lock while it waits for the parked stream; the parker's next driver call queues behind it, and gate-gpu-lib hung at its bound. hold::require_serial_pass owns the rule for Hold::on and the tier tests' parking_work. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Verdict: CLEAN: Both parked-stream tests enter the existing serial pass and share its refusal check without changing their assertions.
Checked
Duplicates: 4 added or renamed functions checked; no duplicate owner found. Dryer reported 0 pairs.
Complexity: Crapper flagged no changed functions.
Silent failure: 1 environment-result site followed; missing or invalid thread-count configuration causes a named panic before parking.
Tests: Static checks confirmed both renamed tests remain selected exactly once, with their original assertions and cleanup. Removing the release at tier.rs:1391 makes the reset test's success assertion fail after its bounded drain. Dropping either column update at tier.rs:1413 or tier.rs:1455 fails the column assertion. These mutation results are from code inspection.
Gates: No bands or pins moved; both tests remain ignored hardware gates.
Adversarial checks: The serial pass excludes concurrent libtests; the other remote-work caller enqueues no parked stream; both constructors check the configuration before parking.
Performance: No production hot-path code changed.
Escape catalog: No patterns matched.
Notes
CUDA tests were not run during this review. The reported GPU runs lack the nvidia-smi line, exact commit hashes and command output required for verified GPU evidence; gpu.json records false.
Card check: needs-gpu. This pull request changes crates/gpu/src/capsync.rs, crates/gpu/src/checkpoint.rs, crates/gpu/src/host/tier.rs and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
gate-gpu-libhung at its 900 s bound on main in most runs (b2-fixmap, warmres, lintchk, tixrace, q38img and others; 0 % GPU, threads in futex_wait).Cause: two host-tier tests park the tier stream on a go wait and make driver calls (
reset_remote, a capture) before they release it. Meanwhile a device-wide sync in a parallel test (anycuMemFree, or a fresh handle's first-streamcuCtxSynchronize) holds the driver's lock while it waits for that stream. The parker's next call queues behind it, and neither returns. This is the same class ascheckpoint::hold::Hold, whose tests already run in thehw_held_serial pass.Fix: the two tests are named
hw_held_…and get their work throughparking_work, which refuses by name outsideRUST_TEST_THREADS=1. The rule has one owner,checkpoint::hold::require_serial_pass, whichHold::onuses too. Test bodies are unchanged.Production: sync and free run only on the serve engine thread's load and teardown, and the release path makes no driver call before the release (
tier.rsrelease_opened before drain). The bound is stated incapsync.rs's module doc.Evidence (box, 3090):
RUST_TEST_THREADSrc 101 with the named message; serial rc 0.just gate-gpu-lib3× rc 0.🤖 Generated with Claude Code