Scripts: summarize live and saved test results #2304
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2304
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2304"
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?
@jeroenhaentjens on GitHub · 2026-11-25 13:18 UTC · original
jeroenhaentjens:scripts/test-log-summaries→main· +241 −1 · 6 files · 1 commits · draftCargo prints a result for each test suite, so contributors currently add the counts manually. This adds combined totals to
scripts/test.ps1and a command for summarizing saved logs without rerunning tests.What is in it
SKIPPEDrecords.scripts/summarize-tests.ps1 -LiteralPath test.log [-Json]reads UTF-8/UTF-16 logs and reports totals, skip records, named failures and missing sample inputs. It rejects logs without completed summaries and warns about unmatched suite starts, including captures beginning at an earlier suite's result. Repeated runs are summed; skips are not subtracted from passed counts.--lockedfixture compatibility incorporate 8ee110ff and 6f922ece, with cyriczhang credited as co-author.Tested
30cbbf00c861909ec4a71e3fcfd70b691de99b4d, based on1a0bbe3. Windows 11 Pro 26200, i7-9750H, 32 GB RAM, NVIDIA Quadro RTX 3000 (32.0.15.9706), Intel UHD 630 also present, Rust/Cargo 1.100.0, DXC 1.9.2609.5.scripts/test-totals.tests.ps17 passed,scripts/summarize-tests.tests.ps18 passed, andscripts/test-native-stderr.tests.ps1passed; 0 failed or skipped. Both reported regressions failed against the original script before fixing them. The live fixture also passes with--lockedand correctly rejects a deliberately dropped forwarded argument.python -m unittest discover -s scripts -p 'test_*.py': 25 passed.git diff --check: passed.320d27f(the Rust sources are unchanged in this update):cargo build --workspace --lockedpassed;cargo test --workspace --locked --no-fail-fast -- --test-threads=4reported 1,249 passed, 1 failed, 46 ignored, exit 101. Failure:hle::d3d12x::bind::tests::execute_indirect_reads_the_arguments_written_before_it, also present in an earlier baseline; its separate test-setup correction is #2318. Debug build, symbols/incremental disabled,XCL_ADAPTER=nvidia,XCL_HEAP_WINDOWS=1, no sample inputs. 26 SKIPPED records: native-wave64 limits, unsupported f16, missing debug layer and unavailable cache control. This PR remains draft because that full-suite run is not green.Not tested
AI use
@nnonno91 on GitHub · 2026-11-25 14:19 UTC · original
I found a skip-count difference between the live and saved-log scripts on
320d27f260454525eef96e2ef7a8c4c427c9deb6.Tested
scripts/test-totals.tests.ps1andscripts/summarize-tests.tests.ps1in each shell. All 6 live cases and all 7 saved-log cases passed per shell.scripts/test.ps1through a stubcargo.cmd(following the checked-in fixture) and directly toscripts/summarize-tests.ps1 -LiteralPath input.txt -Json. The fixture had one standalone skip (SKIPPED gpu_one: no wave64), one inline skip (test gpu_two ... SKIPPED gpu_two: no mesh shaders), and a completed suite with 2 passed.1 (no wave64). The saved-log script counted both skips. Both reported 2 passed and exited 0. The fixture's SHA-256 was unchanged.Not tested
Other shells, actual GPU execution and the workspace test suite.
AI use
OpenAI Codex (GPT-6.2 Sol) prepared the fixture, ran the checks and wrote this report.
@jeroenhaentjens on GitHub · 2026-11-25 15:47 UTC · original
Thanks @nnonno91 and @RavenCurseBurg. Both reported cases are reproduced and fixed in
30cbbf00c861909ec4a71e3fcfd70b691de99b4d: inline skips now reach the live summary, and a leading result no longer masks a later unfinished suite. I incorporated the supplied incomplete-capture and optional--lockedfixture patches and credited cyriczhang as co-author.Tested: Windows 11 Pro 26200, i7-9750H; PowerShell 5.1.26100.9818 and 7.6.9. The new regressions fail before their fixes. After: 7 live cases, 8 saved-log cases and the native-stderr fixture pass per shell, no skips. The
--lockedvariant passes; deliberately dropping the forwarded argument fails. Two real stored full-suite logs replay with matching live/saved counts and skip groups in both shells (1249/1/46/26 and 1265/0/46/28 passed/failed/ignored/skips), unchanged hashes and preserved exit statuses. Python script tests: 25 passed;git diff --checkpasses.Not tested: No new GPU or retail run; the earlier full-suite result and its known ExecuteIndirect failure remain explicitly listed in the description, so this stays draft. This update changes no Rust sources.
AI use: Codex with subagents (exact model identifier unavailable) implemented/reviewed the changes and ran these checks; supplied patches retain their OpenAI Codex (GPT-6) disclosure.
@RavenCurseBurg on GitHub · 2026-11-25 14:05 UTC · original · edited 2026-11-26 06:44 UTC
Retest of the author's updated branch, commit
30cbbf00c861909ec4a71e3fcfd70b691de99b4d. Confirmed the leading-result regression now passes and the live runner handles the inline skip case. I ranscripts/test-totals.tests.ps1(7 cases),scripts/summarize-tests.tests.ps1(8 cases), andscripts/test-native-stderr.tests.ps1on Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. All three scripts exited 0 in each shell. This was a CPU-only fixture run on Windows 11 26100.9711; no real Cargo, GPU or retail run. OpenAI Codex (GPT-6) ran this retest. Thank you for integrating the patches.On
320d27f260454525eef96e2ef7a8c4c427c9deb6, the saved-log command can miss the incomplete-run warning when capture starts after the first suite’s start line. The shortest fixture I tested was two lines:scripts\summarize-tests.ps1 -LiteralPath <log> -Jsoncorrectly counted the two passes, but the notes did not flag the unfinished suite. I also checked a longer fixture containing a named failure, a skip, an empty completed suite and a final suite start. Removing only the first start line made the warning disappear in UTF-8, UTF-16 LE and UTF-16 BE under both Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. Totals, failure names, skip records and input file hashes were preserved.Cherry-pickable fix and regression test. The new two-line fixture failed on the PR head in both shells. With the fix, all 12 longer fixture comparisons produced the warning and preserved the results.
scripts\summarize-tests.tests.ps1(8 cases) andscripts\test-totals.tests.ps1(6 cases, fixture Cargo) passed in each shell.Windows 11 26100.9711, i7-13700, RTX 4060. No real Cargo suite, GPU workload or retail run. OpenAI Codex (GPT-6) ran the checks, wrote the patch and prepared this report.
Interaction with #2295. Its two
--lockedcommands preserve the forwarded test arguments but trip the live-runner fixture’s literal argument check on this head. The one-line test fix passed all six cases with either runner in both shells and still rejected dropped arguments. Commands and results on #2295.Follow-up on the latest review
I reproduced review 6068854728 using a saved two-test fixture in Windows PowerShell 5.1 and PowerShell 7. In both shells the original JSON reported one failure and an empty name list for the terse log. Pretty output already named the failure.
The candidate reports
unit::samplein both JSON and text for the ANSI-colored terse fixture, and keeps the pretty result. The checked-in suite passed all eight checks in each shell, including the new terse case with a spaced doctest name. The fixture follows Rust's terse formatter. I used saved logs and did not run Rust tests.Candidate commit 46832a7e is based directly on
320d27f26045. Reproduce with./scripts/summarize-tests.tests.ps1. OpenAI Codex (GPT-6) prepared the fix and ran these Windows CPU fixtures. No game, GPU benchmark or workspace build.@DavidM1911 on GitHub · 2026-11-25 17:41 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@luckyteagirl on GitHub · 2026-11-26 05:10 UTC · original · reviewed
Could
failed_testsalso recognize libtest's terse failure line?scripts/test.ps1forwards--quietor--format terse, and Rust's terse formatter printsmodule::case --- FAILEDbefore the completed-suite result. This regex only acceptstest module::case ... FAILED, so a complete terse log can reportfailed=1with an emptyfailed_testsarray despite the README saying named failures are listed. A terse-log fixture could check both the count and the test name, or the docs could state that names are extracted only from pretty output. Source review at head320d27f; I did not run the script. AI-assisted with Codex (GPT-6.2 Sol).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.