Repository navigation
Backlog
Labels
effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus/needs-triageNot yet triaged; needs a first look
Description
What happened
The fleet-agent test a_background_cargo_build_holds_its_target_lease_until_exit (pkgs/fleet/crates/fleet-agent/src/tests.rs) does not finish when the fleet-agent suite runs in the fleet-command executor environment. It starts a real background cargo build and waits for its target lease to release; in that environment the wait never ends.
Evidence
- fleet-command run 45415294283 (developing-today/fleet workflow, target developing-today/code @ b14681f, GitHub-hosted runner): the fleet-agent test binary started 98 tests at 2026-11-24T14:39:26Z; 97 printed
okwithin ~2 seconds. libtest flaggeda_background_cargo_build_holds_its_target_lease_until_exitas "running for over 60 seconds" at 14:40:26Z, and it was still running when the job was cancelled at 15:33:00Z (~54 minutes later). - The test is unchanged on main; this was found during Bridge build-out S4 — fleet agent enroll --bootstrap + notes kind/reply_to (fleet CLI) #14370 verification (PR Bridge build-out S4: fleet agent enroll --bootstrap + notes kind/reply_to (#14370) #14416), whose fleet-agent diff is additive and does not touch the build-lock/target-lease code.
- A second run (45422775950) stalled the same way and was cancelled manually.
Impact
Any remote full-suite run of fleet-agent through the fleet-command route hangs until the job timeout (~2h), which blocks verification of unrelated fleet-agent work and burns runner time.
Suggested directions (not prescribed)
- Bound the test's wait with a deadline that fails the test instead of waiting forever, and/or
- Find why the background build never exits in the executor container (toolchain resolution? the shared target lock? a child process outliving its parent?) and fix the environment assumption, and/or
- Mark the test ignored in executor-like environments with a pointer here.
Filed from the #14370 lane; not enqueued by the lane — the finding is recorded here for the queue owners to pick up.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-24T15:35:31Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "c11f41086f57d626be7eb582763b721f8f557408"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}Acceptance criteria
- The test
a_background_cargo_build_holds_its_target_lease_until_exitno longer hangs the fleet-agent suite in the fleet-command executor environment: it passes, fails fast on a bounded deadline, or is explicitly ignored there with a pointer to this issue. - The root cause of the background build never exiting in that environment is identified and recorded on this issue.
- A full fleet-agent suite run through the fleet-command route completes without a manual cancel.
Metadata
Metadata
Assignees
Labels
effort/mMedium: expected under 1 day of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus/needs-triageNot yet triaged; needs a first look
Activity
developing-today commentedon Nov 24, 2026
CODE-5330
developing-today-fleet commentedon Nov 24, 2026
Intake review
Related issues/PRs: Related: found during #14370 verification (PR #14416); the filing lane states its diff is additive and does not touch build-lock/target-lease code, and the test is unchanged on main — treat as a live environment/test defect, not a regression from #14416.
Notes / risks: Impact is concrete: two executor runs stalled and were cancelled (~54 min burn on the first); any fleet-agent verification through this route hangs until the ~2h timeout.
Suggested approach: Suggested approach: bound the test's wait with a failing deadline first (stops the bleeding), then root-cause why the background build never exits in the executor container.
Liveness: filed 2026-11-24 with current evidence; no merged PR in the issue's own evidence already resolves it, so it stays open.
— fleet monitor (repo-fleet-monitor), intake enrichment