ci: close check log groups after partial output lines #2186

Merged
RavenCurseBurg merged 1 commit from upstream-pr/2194 into main 2026-11-25 04:51:53 +00:00
RavenCurseBurg commented 2026-11-25 03:50:42 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T03:50:42Z.


A check that exits after sys.stderr.write("worker stopped") leaves worker 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 groups

The 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

  • On a116c379, the regression failed and printed bad ran::endgroup::. On b410ba67, python -B tests/run_checks_parallel_check.py passed.
  • python -B tools/run_checks_parallel.py -j 2 tests/docs_links_check.py tests/bidi_controls_check.py passed both checks, with a separate end marker for each.
  • A failing child with partial output followed by a silent successful child produced two correctly delimited groups, an empty body for the silent child, and exit status 1 with the failed script in the summary.
  • git diff --cached --check passed before commit.
  • I also ran python -B tools/run_checks_parallel.py -j 4 with all 92 scripts from the workflow’s python-linux list. 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 on python -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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6596794971 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2194). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T03:50:42Z. --- A check that exits after `sys.stderr.write("worker stopped")` leaves `worker 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 groups](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-commands#grouping-log-lines) The 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 - On `a116c379`, the regression failed and printed `bad ran::endgroup::`. On `b410ba67`, `python -B tests/run_checks_parallel_check.py` passed. - `python -B tools/run_checks_parallel.py -j 2 tests/docs_links_check.py tests/bidi_controls_check.py` passed both checks, with a separate end marker for each. - A failing child with partial output followed by a silent successful child produced two correctly delimited groups, an empty body for the silent child, and exit status 1 with the failed script in the summary. - `git diff --cached --check` passed before commit. - I also ran `python -B tools/run_checks_parallel.py -j 4` with all 92 scripts from the workflow’s `python-linux` list. 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 on `python -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).
tedin7 commented 2026-11-25 04:04:16 +00:00 (Migrated from github.com)

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.py now 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.

  • nit: no P1/P2 issues. Empty output is correctly skipped (output and ...), so silent children get no stray blank line.
  • nit: stdout and stderr are merged in run_one, so the partial line is always in output. The check covers the right path.
  • Title is neutral, the diff is 2 files with no clean-room concerns, and the PR is MERGEABLE. No CI checks are reported on the branch.

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::.
  • Mutation: replaced the new if output and not output.endswith("\n"): guard with if False:. run_checks_parallel_check.py then failed, so the test kills the change. Reverted with git checkout -- ..

No Windows run needed: Python CI tooling only, with no shader or C++ changes.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6051630419 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2194#pullrequestreview-6051630419). Originally posted by [tedin7](https://github.com/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.py` now 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. - nit: no P1/P2 issues. Empty output is correctly skipped (`output and ...`), so silent children get no stray blank line. - nit: stdout and stderr are merged in `run_one`, so the partial line is always in `output`. The check covers the right path. - Title is neutral, the diff is 2 files with no clean-room concerns, and the PR is MERGEABLE. No CI checks are reported on the branch. **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::`. - Mutation: replaced the new `if output and not output.endswith("\n"):` guard with `if False:`. `run_checks_parallel_check.py` then failed, so the test kills the change. Reverted with `git checkout -- .`. No Windows run needed: Python CI tooling only, with no shader or C++ changes. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-25 05:04:49 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2186
No description provided.