Files
ANIRUDDHA ADAK a04c7bfb0f fix(bench): normalize CRLF when checking README CSV columns in test (#596)
`npm run bench:ab:test` failed on any CRLF checkout with `README does not
document the "run_id" column`, even though bench/README.md:204 lists it first.
The repository has no `.gitattributes` forcing LF, so the file arrives with
CRLF on a Windows clone.

The test locates the end of the column list with `section.indexOf('\n\n', ...)`.
A CRLF paragraph break is `\r\n\r\n`, which contains no `\n\n` substring, so the
search returns -1, the slice matches no columns, and the assertion fails on the
first one. Linux CI checks out LF, so the drift guard only ever broke for
contributors on Windows.

Normalize CRLF to LF before slicing. This is the only place in the file that
reads a file from disk and splits on a paragraph break; `fromCSV` already
tolerates CRLF and has its own test.
2026-09-09 14:55:30 +08:00
..