ci: close check log groups after partial output lines #2186
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2194"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T03:50:42Z.
A check that exits after
sys.stderr.write("worker stopped")leavesworker stopped::endgroup::on one line. The Actions runner expects its group command on a separate line, so the log group for the failing check is left open. GitHub Actions log groupsThe parallel Python runner now terminates a partial output line before closing its group. This follows the existing pixel-binary job in the same workflow. The runner test covers a failing child with unterminated stderr and a passing child that already ended its output with a newline.
Verification
a116c379, the regression failed and printedbad ran::endgroup::. Onb410ba67,python -B tests/run_checks_parallel_check.pypassed.python -B tools/run_checks_parallel.py -j 2 tests/docs_links_check.py tests/bidi_controls_check.pypassed both checks, with a separate end marker for each.git diff --cached --checkpassed before commit.python -B tools/run_checks_parallel.py -j 4with all 92 scripts from the workflow’spython-linuxlist. 89 exited successfully on the first run. Two temporary-hard-link checks hit a sandbox permission error and the PowerShell process-tree fixture timed out there. All three exited successfully outside that sandbox onpython -B tools/run_checks_parallel.py -j 3 tests/resource_ranges_check.py tests/pe_package_preflight_check.py tests/startup_run_ps1_check.py. The preflight suite reported one skipped subtest.AI-assisted with Codex (GPT-6.2 Astra xhigh, as specified by the contributor).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T03:54:42Z.
Review: COMMENTED
Review of head
b410ba67b848cffaae23f5d8454045db18e99391(comment only).Summary: The fix is correct and minimal.
tools/run_checks_parallel.pynow ends a partial output line before printing::endgroup::. The test now uses a child that writes unterminated stderr, which is the real failure case.Findings: P1=0, P2=0.
output and ...), so silent children get no stray blank line.run_one, so the partial line is always inoutput. The check covers the right path.Commands executed locally (worktree at the head SHA):
git diff --stat origin/main...HEAD: 2 files, 7 insertions, 4 deletions.python3 -B tests/run_checks_parallel_check.py:run_checks_parallel_check: ok.python3 tests/docs_links_check.py: self-test passed, 18 Markdown files and 405 links.python3 tests/bidi_controls_check.py: self-test passed, 1480 files, no bidi controls.git diff --check origin/main...HEAD: clean.python3 -B tools/run_checks_parallel.py -j 2 tests/docs_links_check.py tests/bidi_controls_check.py:all 2 checks passed, each group ends with its own::endgroup::.if output and not output.endswith("\n"):guard withif False:.run_checks_parallel_check.pythen failed, so the test kills the change. Reverted withgit checkout -- ..No Windows run needed: Python CI tooling only, with no shader or C++ changes.
AI-assisted; commands listed were executed locally.