Scripts: keep Unicode separators inside coverage JSON lines #2653
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2653
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2653"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@luckyteagirl on GitHub · 2026-11-26 05:05 UTC · original
luckyteagirl:codex/coverage-json-line-boundaries→main· +10 −1 · 2 files · 1 commits · openThe 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 #2645 and #2650.Regression run
Not tested
AI use
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.