Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneesstack72

Relationships

#2375 Flaky test: resolveCachePath fails when parallel tests delete HOME

Opened by stack72 · 9/22/2026· Shipped 9/22/2026

src/cli/resolve_datastore_test.ts 'resolveCachePath: undefined return routes to repoId-keyed default' failed in the verify-build workflow (run 70bda3d6-7311-425c-b0f5-873a4a7fd0fa, 2026-09-22) with 'Cannot determine home directory (HOME/USERPROFILE not set)' from getSwampDataDir in src/infrastructure/persistence/paths.ts. The same commit passes the full suite in a clean checkout, so it is a race: deno test --parallel runs test files in one process, and src/cli/load_identity_test.ts, src/cli/input_parser_test.ts and src/infrastructure/persistence/paths_test.ts delete HOME from Deno.env. AGENTS.md forbids unit tests mutating process-global env for this reason. Fix: mock the home lookup in those tests instead of deleting HOME. Found while verifying swamp-club#2347.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 7 MOREREVIEW+ 7 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/22/2026, 10:15:21 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack729/22/2026, 9:22:35 PM

Sign in to post a ripple.