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
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

@github-actions github-actions Bot added the stale No activity for 3 days; closed 4 days later unless something happens label Dec 1, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head fe5fe6c

No open or merged PR changes how sweep_json splits lines; the other open coverage_gate.py PRs (#2650, #2669, #2202, #2536, #2099) touch decoding, validation or the baseline, not this.
str.splitlines() also breaks on U+0085/U+2028/U+2029, which serde_json emits unescaped inside strings, so splitting on \n and stripping keeps the report line whole; the test covers all three with CRLF output. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale No activity for 3 days; closed 4 days later unless something happens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants