Skip to content

test(agents): canonicalize macOS tmpdir fixtures - #127366

Merged
steipete merged 1 commit into
mainfrom
steipete/main-test-repairs
Aug 21, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/main-test-repairs

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Two tests fail on every clean origin/main checkout on macOS while passing on Linux CI: fs-bridge.boundary.test.ts ("rejects a regular file replaced by a FIFO at descriptor open") and skill-workshop-tool.collection-restore.test.ts ("restores a canonical cleanup through the configured workspace alias").

Why This Change Was Made

Both are the documented macOS tmpdir trap (docs/reference/test.md): os.tmpdir() returns the /var symlink while production resolvers return the canonical /private/var path. In the FIFO test the descriptor-open spy compared different spellings of the same path so the race injection never fired; in the workshop test the proposal ownership ledger held the /var fixture path while reconciliation looked up its canonical equivalent. Canonicalizing the fixture roots with fs.realpath fixes both while preserving every protected assertion (O_NONBLOCK, FIFO rejection, no-Docker execution; explicit symlink-alias restore scenario).

User Impact

None at runtime — test-only. macOS contributors get a green src/agents lane on clean main.

Evidence

Both failures reproduced pre-fix on clean main (M3 Ultra); post-fix both files green plus 144 focused tests; pnpm check:changed green; autoreview clean. Production LOC +0/−0; tests +4/−2.

@clawsweeper

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Aug 21, 2026
@steipete
steipete marked this pull request as ready for review August 21, 2026 18:28
@steipete
steipete requested a review from a team as a code owner August 21, 2026 18:28
@steipete
steipete merged commit 4324ba2 into main Aug 21, 2026
178 checks passed
@steipete
steipete deleted the steipete/main-test-repairs branch August 21, 2026 18:39
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant