Repository navigation
test(agents): canonicalize macOS tmpdir fixtures - #127366
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 21, 2026 18:28
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Two tests fail on every clean
origin/maincheckout on macOS while passing on Linux CI:fs-bridge.boundary.test.ts("rejects a regular file replaced by a FIFO at descriptor open") andskill-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/varsymlink while production resolvers return the canonical/private/varpath. 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/varfixture path while reconciliation looked up its canonical equivalent. Canonicalizing the fixture roots withfs.realpathfixes 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/agentslane 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:changedgreen; autoreview clean. Production LOC +0/−0; tests +4/−2.