You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
On current main b49be183, the new regression failed for all three separators (9 tests passed, 1 test failed with 3 JSON errors). On this branch, full Python script discovery passed 26/26 on Windows Python 3.11.9 and Ubuntu under WSL Python 3.14.4.
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.
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.
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
staleNo activity for 3 days; closed 4 days later unless something happens
2 participants
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 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
split("\n"); the existing trim still handles CRLF output.Tested
b49be183, the new regression failed for all three separators (9 tests passed, 1 test failed with 3 JSON errors). On this branch, full Python script discovery passed 26/26 on Windows Python 3.11.9 and Ubuntu under WSL Python 3.14.4.git diff --checkpassed. This patch applies cleanly over the separate coverage baseline and UTF-8 decoding changes in PRs Scripts: replace coverage baselines atomically #2645 and Scripts: decode coverage sweeps as UTF-8 #2650.Regression run
Not tested
AI use