Skip to content

test(gates): fix macOS EILSEQ in the Unicode file-name test - #363

Merged
Rome-1 merged 1 commit into
mainfrom
sable-gates-macos-eilseq
Nov 14, 2026
Merged

Rome-1 merged 1 commit into
mainfrom
sable-gates-macos-eilseq

Conversation

@Rome-1

@Rome-1 Rome-1 commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

The macOS cross-platform jobs fail on every outside-contributor PR (#341, #357, #358) at tests/gates.test.ts:75: APFS refuses the deliberately non-UTF-8 file name with EILSEQ, so the fixture write throws before rafter gates runs. The grid is skipped on internal PRs into main, which is why this wasn't seen when #291 added the test.

On such a filesystem the case cannot arise, so the test now tolerates EILSEQ on that one write and rethrows anything else. On Linux the file is still created and still asserted skipped; the expected output is the same either way.

Tested locally on Linux: the test passes. CI on this PR won't run the macOS grid (it's an internal PR), so the macOS confirmation comes from the next outside PR's run.

macOS (APFS) refuses file names that are not valid UTF-8, so the fixture
write threw before rafter ran and the macOS cross-platform jobs failed on
every outside PR. On such a filesystem the case cannot arise; skip only
that write and keep the rest of the test.
@Rome-1
Rome-1 merged commit 7b96e09 into main Nov 14, 2026
1 check passed
@Rome-1
Rome-1 deleted the sable-gates-macos-eilseq branch November 14, 2026 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant