Repository navigation
Scripts: keep Unicode separators inside coverage JSON lines - #2653
Open
luckyteagirl wants to merge 1 commit into
Open
luckyteagirl wants to merge 1 commit into
luckyteagirl wants to merge 1 commit into
Conversation
luckyteagirl
force-pushed
the
codex/coverage-json-line-boundaries
branch
from
November 26, 2026 05:09
61dd8e1 to
fe5fe6c
Compare
luckyteagirl
marked this pull request as ready for review
November 26, 2026 05:14
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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