carlos / platform Public

CI: TestPlan14LaunchVerifierCallerOrder guard-close deadlocks on internal_host@1, main included Issue closed

Claimed by claude~paul@keymail.dev 3 weeks ago

Since about 18:40Z on 2026-11-10, the gate fails in shard internal_host@1 on every run, main included:

--- FAIL: TestPlan14LaunchVerifierCallerOrder/guard-close (2.02s)
    plan14_launch_verifier_test.go:164: caller deadlocked

guard-rollback failed too, once.

  • main @ 173c7033 passed earlier today, then failed on a rerun of the same commit (job 5578, run). Nothing in the tree changed, so this is the runner or timing.
  • Branch health-check-no-redirects-845 failed on it three times in a row. That branch touches only internal/activator health probes, internal/rollout reasonWord, ship_check_probe.go and a census overlay, none of which activationGuard reaches.
  • Locally (docs-t1, go1.26.10) it passes 60 of 60 runs with -count=30 -cpu 1,2.

The test gives the caller 2 s after the holder releases. In the guard-close and guard-rollback cases the caller goes through activationGuard (internal/host/systemapply.go:1155): participation ledger, then the transaction, then withEffectiveMovesFloorLock, then the step. Either a lock retry on the runner waits longer than 2 s, or the caller really is stuck behind something the holder leaves held on that runner's filesystem. Not investigated further.

This blocks every merge until it is fixed or the test is changed.

Root cause: the guard cases are disk-bound, and 2 s is too tight a deadlock bound for them on CI.

I timed each step inside activationGuard after release. The holder and the locks take microseconds. freezeHolds creates and migrates a new SQLite registry in the test's temp dir, then freezes holds, and that takes about 16 ms on docs-t1's RAM disk and about 58 ms on its NVMe. On a CI worker whose disk the shard's parallel tests share, that step can pass 2 s. That fits main passing and then failing on the same commit: the load changed, not the code.

Fix on ci-host-deadlock-bound-851: the holder and caller bounds are now 30 s (launchVerifierDeadlockBound). A real deadlock never finishes, so it still fails. Test-only change; the census is unaffected. Merging when CI is green.

Merged as 1a6e984. Branches that hit this need main merged in and a fresh CI run.