Skip to content

fix: make CI pass on Windows and Linux - #1

Merged
autoantohaki merged 1 commit into
mainfrom
fix/ci-line-endings-and-stream-order
Oct 21, 2026
Merged

autoantohaki merged 1 commit into
mainfrom
fix/ci-line-endings-and-stream-order

Conversation

@autoantohaki

Copy link
Copy Markdown
Member

Requested by mau

Before: CI on main fails in every job. On Windows, Prettier's format check flags all 72 files because the checkout converts them to CRLF. On Linux, the process test fails (expected 3 to be greater than 5) because the fixture's stdout line can arrive before its stderr stack trace.

After: All jobs pass. Six consecutive full test runs passed in a Linux container (node:24), and the full npm run check passes on Windows.

How: A .gitattributes keeps text files as LF in every checkout. The emitter fixture waits 100 ms before printing the stdout line that should flush the stderr stack trace, since the two pipes are not ordered relative to each other.

Normalize text files to LF so Prettier's format check passes on Windows
checkouts, and let the stderr stack trace reach the parent before the
stdout line that should follow it in the process test fixture.
@autoantohaki
autoantohaki merged commit f3b845c into main Oct 21, 2026
6 checks passed
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