Skip to content

Scripts: keep Unicode separators inside coverage JSON lines - #2653

Open
luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/coverage-json-line-boundaries
Open

luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/coverage-json-line-boundaries

Conversation

@luckyteagirl

Copy link
Copy Markdown
Contributor

The coverage gate selects the last JSON record with Python splitlines(), which also treats Unicode NEL and line/paragraph separators as line breaks. XCL can include these characters in a shader program name inside one valid JSON record, causing the gate to parse a fragment and fail. Split only at physical LF boundaries so report strings stay intact.

What is in it

  • Select records using split("\n"); the existing trim still handles CRLF output.
  • Add cases for U+0085, U+2028, and U+2029 inside a report example name.

Tested

Regression run

  • Not applicable. This changes only the Python coverage script and its test.

Not tested

  • A real shader pack sweep, Rust workspace tests, GPU tests, and retail title smoke.

AI use

  • Codex (GPT-6.2 Sol) implemented and tested the change; a separate Codex Sol agent independently reviewed it.

@luckyteagirl
luckyteagirl force-pushed the codex/coverage-json-line-boundaries branch from 61dd8e1 to fe5fe6c Compare November 26, 2026 05:09
@luckyteagirl
luckyteagirl marked this pull request as ready for review November 26, 2026 05:14
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