Scripts: stream smoke logs when collecting regression results #1601

Open
CallMeBrado wants to merge 1 commit from upstream-pr/1611 into main
CallMeBrado commented 2026-11-24 18:14:28 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by CallMeBrado on 2026-11-24T18:14:28Z.


A 30.5 MiB log took about 971 MiB of peak PowerShell commit just to print the smoke report. Reading it one line at a time brought that down to 80 MiB.

What is in it

scripts/smoke.ps1 scans for the lines that contribute to the report. It keeps the first frame summary, the three most recent present counts, the highest commit sample, and running totals for crashes and device removals. The regression test covers missing and zero samples, multiple errors on one line, and repeated frame summaries.

Tested

  • Windows 11 build 26200, Ryzen 9 9950X3D, RTX 5090 (driver 32.0.16.2124), Rust 1.96.0, debug workspace build.
  • scripts/smoke-log.tests.ps1 passed all three cases in Windows PowerShell 5.1 and PowerShell 7.6.9.
  • cargo build --locked --workspace --jobs 5 passed. cargo test --locked --workspace --no-fail-fast --jobs 5 -- --test-threads=4 --show-output reported 776 passed, 0 failed, 41 ignored. Four tests reported platform skips within the pass count.
    • gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask (no wave64)
    • gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware (no wave64)
    • test_title_draws_with_a_root_signature_under_the_debug_layer (no xgameruntime.dll)
    • heap_window_out_of_memory_falls_back_to_the_switch_form (no heap windows)

Regression run

Replayed three saved retail logs against the parser from 9e3831e and this change in PowerShell 7.6.9. Each version ran twice per log and produced the same smoke block. On the 3.0, 13.8 and 30.5 MiB logs, average peak PowerShell commit fell from 124 to 47 MiB, 434 to 72 MiB and 971 to 80 MiB, respectively.

Not tested

The benchmark covers report generation after the game exits. Live gameplay memory and frame rate were outside its scope.

AI use

Codex (GPT-6) wrote the change and tests, ran the comparisons and workspace suite, and drafted this description.

<!-- greyfinch-sync:ivall/xcl:issue:5477795118 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1611). Originally posted by [CallMeBrado](https://github.com/CallMeBrado) on 2026-11-24T18:14:28Z. --- A 30.5 MiB log took about 971 MiB of peak PowerShell commit just to print the smoke report. Reading it one line at a time brought that down to 80 MiB. **What is in it** `scripts/smoke.ps1` scans for the lines that contribute to the report. It keeps the first frame summary, the three most recent present counts, the highest commit sample, and running totals for crashes and device removals. The regression test covers missing and zero samples, multiple errors on one line, and repeated frame summaries. **Tested** - Windows 11 build 26200, Ryzen 9 9950X3D, RTX 5090 (driver 32.0.16.2124), Rust 1.96.0, debug workspace build. - `scripts/smoke-log.tests.ps1` passed all three cases in Windows PowerShell 5.1 and PowerShell 7.6.9. - `cargo build --locked --workspace --jobs 5` passed. `cargo test --locked --workspace --no-fail-fast --jobs 5 -- --test-threads=4 --show-output` reported 776 passed, 0 failed, 41 ignored. Four tests reported platform skips within the pass count. - `gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask` (no wave64) - `gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware` (no wave64) - `test_title_draws_with_a_root_signature_under_the_debug_layer` (no xgameruntime.dll) - `heap_window_out_of_memory_falls_back_to_the_switch_form` (no heap windows) **Regression run** Replayed three saved retail logs against the parser from `9e3831e` and this change in PowerShell 7.6.9. Each version ran twice per log and produced the same smoke block. On the 3.0, 13.8 and 30.5 MiB logs, average peak PowerShell commit fell from 124 to 47 MiB, 434 to 72 MiB and 971 to 80 MiB, respectively. **Not tested** The benchmark covers report generation after the game exits. Live gameplay memory and frame rate were outside its scope. **AI use** Codex (GPT-6) wrote the change and tests, ran the comparisons and workspace suite, and drafted this description.
gut0to commented 2026-11-24 18:19:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T18:19:58Z.

Review: COMMENTED


The workspace test result is helpful. One CONTRIBUTING.md detail: it asks for the names of skipped GPU tests on the adapter; this lists only the skip categories/counts. Could you include the exact names for the wave64 and heap-window skips? AI-assisted review; I checked the Tested section against the guide.

<!-- greyfinch-sync:ivall/xcl:review:6044932890 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1611#pullrequestreview-6044932890). Originally posted by [gut0to](https://github.com/gut0to) on 2026-11-24T18:19:58Z. **Review:** COMMENTED --- The workspace test result is helpful. One CONTRIBUTING.md detail: it asks for the names of skipped GPU tests on the adapter; this lists only the skip categories/counts. Could you include the exact names for the wave64 and heap-window skips? AI-assisted review; I checked the Tested section against the guide.
futurepro62 commented 2026-11-24 19:07:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T19:01:12Z.


Tested exact head 547967c, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • powershell.exe -NoProfile -File scripts/smoke-log.tests.ps1 at the head: exit 0, 3 smoke-log cases passed.
  • The PR's test file against current main's smoke.ps1 (9e3831e): exit 1, Missing 'peak commit: 0 MB' in smoke block (main writes peak commit: n/a MB and frames shown: none logged). So the new test catches the problem the PR fixes.

Not tested

  • PowerShell 7, a real smoke run on a game (no title here).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7141477264 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1611#issuecomment-7141477264). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T19:01:12Z. --- Tested exact head `547967c`, script tests only, since this PR has no test report yet. **Tested** - Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `powershell.exe -NoProfile -File scripts/smoke-log.tests.ps1` at the head: exit 0, `3 smoke-log cases passed`. - The PR's test file against current main's `smoke.ps1` (`9e3831e`): exit 1, `Missing 'peak commit: 0 MB' in smoke block` (main writes `peak commit: n/a MB` and `frames shown: none logged`). So the new test catches the problem the PR fixes. **Not tested** - PowerShell 7, a real smoke run on a game (no title here). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
DavidM1911 commented 2026-11-24 21:09:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:30:20Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7143648043 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1611#issuecomment-7143648043). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T20:30:20Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~22 ignored. Thanks!
JJAutoCompare commented 2026-11-25 05:08:30 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:00:31Z.


PR #1611 focused Windows verification

Tested

Head 547967c6f2181fe1f282b51d698ed84f536059e5 was fetched with git fetch origin pull/1611/head and checked out with git checkout --detach FETCH_HEAD. Verified the SHA with git rev-parse HEAD and the clean worktree with git status --short. The diff changes only scripts/smoke.ps1 and scripts/smoke-log.tests.ps1.

STOR-WINLAB ran Windows 11 Enterprise Evaluation (build 26200), Windows PowerShell 5.1.26100.9818, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Hardware was an AMD Ryzen 7 3800X and Intel Arc A770 (driver 32.0.101.9175). dxc.exe --version reported 1.9.2609.5.

Ran both cases below directly in Windows PowerShell outside the Arc mutex. Output is in pr1611-focused.log.

  • Head command C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -File L:\XclTooling\sol-slot-10\tmp\pr1611-fixture-ef86e3a421f84246a4727e222e6a3195\head\smoke-log.tests.ps1 exited 0 with 3 cases passed. The fixture checked the first frame summary, the last three present counts, maximum commit, multiple crash and device-removal markers, missing fields, and explicit zero values.
  • Parent 9e3831e1f570d3646e53ab753b19ec07eb8f1485 used the same command with \parent\ in place of \head\ and the PR's assertions. It exited 1 at the zero-commit assertion, reporting peak commit: n/a MB where the fixture expected peak commit: 0 MB. Restored the clean PR head.

Slot copies retained the original parser and assertions. They resolved PowerShell via PSHOME, retained fixtures, cleared launch variables via assignment, required the synthetic adapter report, and pointed Git metadata at the checked-out worktree.

Not tested

Verification covered only the focused PowerShell fixtures. The full GPU workspace suite, Cargo build and test compilation, a real-title smoke run, and peak PowerShell memory use were omitted.

AI use

T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1611-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7153363054 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1611#issuecomment-7153363054). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T05:00:31Z. --- ## PR #1611 focused Windows verification **Tested** Head `547967c6f2181fe1f282b51d698ed84f536059e5` was fetched with `git fetch origin pull/1611/head` and checked out with `git checkout --detach FETCH_HEAD`. Verified the SHA with `git rev-parse HEAD` and the clean worktree with `git status --short`. The diff changes only `scripts/smoke.ps1` and `scripts/smoke-log.tests.ps1`. STOR-WINLAB ran Windows 11 Enterprise Evaluation (build 26200), Windows PowerShell 5.1.26100.9818, and rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Hardware was an AMD Ryzen 7 3800X and Intel Arc A770 (driver 32.0.101.9175). `dxc.exe --version` reported 1.9.2609.5. Ran both cases below directly in Windows PowerShell outside the Arc mutex. Output is in `pr1611-focused.log`. - Head command `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -File L:\XclTooling\sol-slot-10\tmp\pr1611-fixture-ef86e3a421f84246a4727e222e6a3195\head\smoke-log.tests.ps1` exited 0 with 3 cases passed. The fixture checked the first frame summary, the last three present counts, maximum commit, multiple crash and device-removal markers, missing fields, and explicit zero values. - Parent `9e3831e1f570d3646e53ab753b19ec07eb8f1485` used the same command with `\parent\` in place of `\head\` and the PR's assertions. It exited 1 at the zero-commit assertion, reporting `peak commit: n/a MB` where the fixture expected `peak commit: 0 MB`. Restored the clean PR head. Slot copies retained the original parser and assertions. They resolved PowerShell via PSHOME, retained fixtures, cleared launch variables via assignment, required the synthetic adapter report, and pointed Git metadata at the checked-out worktree. **Not tested** Verification covered only the focused PowerShell fixtures. The full GPU workspace suite, Cargo build and test compilation, a real-title smoke run, and peak PowerShell memory use were omitted. **AI use** T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1611-focused.log` and published.
RavenCurseBurg commented 2026-11-25 18:04:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T17:36:18Z.


I replayed four small synthetic UTF-8 logs through the full scripts/smoke.ps1 -Game <fixture> -Xcl <findstr.exe> -Seconds 1 entry point on 547967c6f2181fe1f282b51d698ed84f536059e5 and its parent 9e3831e1f570d3646e53ab753b19ec07eb8f1485. I checked the five report fields and exit code in Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9 (16 invocations).

A BOM-prefixed log with mixed CRLF/LF, an 8 KiB line with a non-ASCII character, several events on the same line and no trailing newline gave the same report as its ordinary CRLF equivalent: first frame summary 17 (PresentX 21), last presents 4/6/0, peak 208 MB, two removals, two crashes. A noise-only log reported no samples. With one zero-memory sample the parent printed n/a MB; this head correctly printed 0 MB. Every replay left its input bytes unchanged. The three checked-in scripts/smoke-log.tests.ps1 cases also passed in each shell.

Windows 11 26100.9711, i7-13700, RTX 4060. I checked report contents with a stand-in launcher. No memory benchmark, game or GPU run. OpenAI Codex (GPT-6) ran the checks and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7169741142 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1611#issuecomment-7169741142). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T17:36:18Z. --- I replayed four small synthetic UTF-8 logs through the full `scripts/smoke.ps1 -Game <fixture> -Xcl <findstr.exe> -Seconds 1` entry point on `547967c6f2181fe1f282b51d698ed84f536059e5` and its parent `9e3831e1f570d3646e53ab753b19ec07eb8f1485`. I checked the five report fields and exit code in Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9 (16 invocations). A BOM-prefixed log with mixed CRLF/LF, an 8 KiB line with a non-ASCII character, several events on the same line and no trailing newline gave the same report as its ordinary CRLF equivalent: first frame summary 17 (PresentX 21), last presents 4/6/0, peak 208 MB, two removals, two crashes. A noise-only log reported no samples. With one zero-memory sample the parent printed `n/a MB`; this head correctly printed `0 MB`. Every replay left its input bytes unchanged. The three checked-in `scripts/smoke-log.tests.ps1` cases also passed in each shell. Windows 11 26100.9711, i7-13700, RTX 4060. I checked report contents with a stand-in launcher. No memory benchmark, game or GPU run. OpenAI Codex (GPT-6) ran the checks and prepared this report.
github-actions[bot] commented 2026-11-29 07:44:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:44:05Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7252657020 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1611#issuecomment-7252657020). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T07:44:05Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 06:16:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:16:15Z.


Triage (#1607) – head 547967c

No open or merged PR makes the same change: main's smoke.ps1 still reads the whole log with Get-Content -Raw. #2716 (-LiteralPath), #2667 (empty-log check) and #2010 (more counters) edit the same lines in other ways, so whichever merges second will need a rebase.
The streamed counters match the old whole-text regexes: first frames line, last three presents, peak commit, and per-line counts of removals and crashes.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7302682314 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1611#issuecomment-7302682314). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T06:16:15Z. --- **Triage (#1607)** – head 547967c No open or merged PR makes the same change: main's `smoke.ps1` still reads the whole log with `Get-Content -Raw`. #2716 (`-LiteralPath`), #2667 (empty-log check) and #2010 (more counters) edit the same lines in other ways, so whichever merges second will need a rebase. The streamed counters match the old whole-text regexes: first frames line, last three presents, peak commit, and per-line counts of removals and crashes. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1611:upstream-pr/1611'
git switch 'upstream-pr/1611'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1611'
git switch 'upstream-pr/1611'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1611'
git switch 'upstream-pr/1611'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1611'
git switch 'main'
git merge --squash 'upstream-pr/1611'
git switch 'main'
git merge --ff-only 'upstream-pr/1611'
git switch 'main'
git merge 'upstream-pr/1611'
git push origin 'main'
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
xcl-dev/xcl!1601
No description provided.