Skip to content

fleet-agent test a_background_cargo_build_holds_its_target_lease_until_exit hangs in the fleet-command executor #14446

Backlog

Description

@developing-today-fleet

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

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_exit no 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.

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
  2. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    ContributorAuthor

    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

  3. added
    kind/bug
    priority/high
    effort/m
    status/needs-triage
    meta/enriched
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mkind/bugmeta/enrichedpriority/highstatus/needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions