Repository navigation
Scripts: stream smoke logs when collecting regression results - #1611
CallMeBrado wants to merge 1 commit into
Conversation
Keep a running peak, the three most recent present counts and the error totals as the log is read. On a 30.5 MiB log this reduced peak PowerShell commit from 971 MiB to 80 MiB.
gut0to
left a comment
There was a problem hiding this comment.
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.
|
Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
PR #1611 focused Windows verificationTested Head 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). Ran both cases below directly in Windows PowerShell outside the Arc mutex. Output is in
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 |
|
I replayed four small synthetic UTF-8 logs through the full 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 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. |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
No open or merged PR makes the same change: main's AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
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.ps1scans 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
scripts/smoke-log.tests.ps1passed all three cases in Windows PowerShell 5.1 and PowerShell 7.6.9.cargo build --locked --workspace --jobs 5passed.cargo test --locked --workspace --no-fail-fast --jobs 5 -- --test-threads=4 --show-outputreported 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
9e3831eand 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.