Repository navigation
test(gates): fix macOS EILSEQ in the Unicode file-name test - #363
Merged
Merged
Conversation
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.
This was referenced Nov 15, 2026
Merged
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.
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 withEILSEQ, so the fixture write throws beforerafter gatesruns. 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
EILSEQon 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.