statusline tests fail on any host that has a live projection #315

Open
opened 2026-08-20 10:42:42 +00:00 by coilyco-ops · 0 comments
Member

Three tests in internal/statusline assume the machine running them has no agent-compose projection, so they fail on a developer host that does. Confirmed pre-existing: they fail identically on a clean origin/main worktree with no local changes.

--- FAIL: TestRenderSuppressesWhenNoProjectionExists
    statusline_test.go:96: statusline without projection = "  🧭 📐 ⛏️  Angie [she] // engineer@claude // frontier // 111 skills / ~114k catalog // ✓ composed"
--- FAIL: TestRenderSubagentsSkipsRowsWithoutAProjection
    subagent_test.go:114
--- FAIL: TestWhoamiSuppressesWithoutAProjection
    whoami_test.go:48: Whoami = "Angie [she] uz86", want empty without a projection

The tests read the real projection rather than a fixture root, so "without a projection" is a property of the host instead of the test. just test is therefore red on any host where the agent is itself composed, which is most of them.

Fix is to point the suppression path at a t.TempDir() root, or inject the projection lookup, so the test controls the precondition it names.

Found while landing #312. Not caused by that change.

Three tests in `internal/statusline` assume the machine running them has no agent-compose projection, so they fail on a developer host that does. Confirmed pre-existing: they fail identically on a clean `origin/main` worktree with no local changes. ``` --- FAIL: TestRenderSuppressesWhenNoProjectionExists statusline_test.go:96: statusline without projection = " 🧭 📐 ⛏️ Angie [she] // engineer@claude // frontier // 111 skills / ~114k catalog // ✓ composed" --- FAIL: TestRenderSubagentsSkipsRowsWithoutAProjection subagent_test.go:114 --- FAIL: TestWhoamiSuppressesWithoutAProjection whoami_test.go:48: Whoami = "Angie [she] uz86", want empty without a projection ``` The tests read the real projection rather than a fixture root, so "without a projection" is a property of the host instead of the test. `just test` is therefore red on any host where the agent is itself composed, which is most of them. Fix is to point the suppression path at a `t.TempDir()` root, or inject the projection lookup, so the test controls the precondition it names. Found while landing #312. Not caused by that change.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/agent-compose#315
No description provided.