Scripts: keep Unicode separators inside coverage JSON lines #2653

Open
github-bot wants to merge 1 commit from github-bot/gh-2653 into main AGit
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 05:05 UTC · original
luckyteagirl:codex/coverage-json-line-boundaries → main · +10 −1 · 2 files · 1 commits · open

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.
  • git diff --check passed. This patch applies cleanly over the separate coverage baseline and UTF-8 decoding changes in PRs #2645 and #2650.

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** on GitHub · 2026-11-26 05:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/2653) `luckyteagirl:codex/coverage-json-line-boundaries` → `main` · +10 −1 · 2 files · 1 commits · open 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. - `git diff --check` passed. This patch applies cleanly over the separate coverage baseline and UTF-8 decoding changes in PRs #2645 and #2650. **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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:14:40 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2653/head:github-bot/gh-2653'
git switch 'github-bot/gh-2653'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2653'
git switch 'github-bot/gh-2653'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2653'
git switch 'github-bot/gh-2653'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2653'
git switch 'main'
git merge --squash 'github-bot/gh-2653'
git switch 'main'
git merge --ff-only 'github-bot/gh-2653'
git switch 'main'
git merge 'github-bot/gh-2653'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.