Scripts: cover test runner failures and missing Cargo #296
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!296
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-296"
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?
@svds12343 on GitHub · 2026-11-23 22:36 UTC · original
svds12343:contrib/test-runner-failure-cases→main· +60 −14 · 1 files · 1 commits · openThe runner's regression test covered successful stderr output, but failure codes and missing Cargo were checked only manually in #185. Add permanent cases to catch failures being reported as success.
Complements #279, which adds CI execution of this script.
What is in it
scripts/test-native-stderr.tests.ps1: run each case in a fresh instance of the same PowerShell. Check success, build exit 17 without starting tests, test exit 101, and missing Cargo exit 1 with a diagnostic.Tested
29e66d46e5a2869901d9b65f3f26427b07673111.powershell.exe/pwsh.exe -NoProfile -File scripts/test-native-stderr.tests.ps1: all four cases pass under PowerShell 5.1.26100.9444 and 7.6.9. Both also pass with the CI-style caller& <script>; exit $LASTEXITCODE.scripts/test.ps1(cargo build --workspace,cargo test --workspace -- --test-threads=4): 651 passed, 0 failed, 40 ignored.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no native wave64).git diff --check: clean.Regression run
Not tested
XCL_SAMPLE_*variables are unset; their early returns and the GPU skips remain included in libtest's passed count.AI use
@requiemsnkrp on GitHub · 2026-11-23 23:15 UTC · original
Tested
29e66d4on NVIDIA GeForce RTX 3060 12 GB (driver 32.0.16.1714 / 617.14, 32-lane waves), Ryzen 5 5600X, Windows 11 Pro 25H2 (26200.9974), Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17 (Windows SDK), debug: pass.Tested
powershell -NoProfile -NonInteractive -File scripts\test-native-stderr.tests.ps1(Windows PowerShell 5.1.26100.9818):PASS: success,PASS: build failure,PASS: test failure,PASS: missing Cargo, exit 0. The same script frommain4017f8f: exit 0.scripts\test.ps1removed, the script fails withbuild failure: expected exit 17, got 0.(exit 1).cargo test --workspace -j 4 --no-fail-fast -- --test-threads=4 --skip test_title_runs_and_game_folder_is_untouched --skip test_title_draws_with_a_root_signature_under_the_debug_layer: 649 passed, 0 failed, 40 ignoredSKIPPED(no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwaremain4017f8f, same command: 650 passed, 0 failed, 40 ignored, same 2 SKIPPED (one test more onmainsince this PR's base9ab7d76).main4017f8f(git merge-tree), the merge result was not tested.test_title_runs_and_game_folder_is_untouched,test_title_draws_with_a_root_signature_under_the_debug_layer): they open the XCL game window and this PC was in use (the 2 "filtered out").Not tested
pwshis not installed here).AI use: Claude Code with Claude Opus 5.5 (ran the tests and wrote this report).
@anes66 on GitHub · 2026-11-24 03:59 UTC · original
Verified
29e66d46e5a2869901d9b65f3f26427b07673111on Windows 10 Pro (build 19045), Ryzen 7 9800X3D.Tested
powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/test-native-stderr.tests.ps1pwsh.exe -NoProfile -NonInteractive -File scripts/test-native-stderr.tests.ps1scripts/test.ps1matches mainf4ce27ceb6d1b0576d0c659b713b674778bf1968.PowerShell 5.1 initially blocked the unsigned script. The process-only override above allowed it to run; no persistent execution-policy setting was changed.
Not tested
Rust workspace, GPU tests, retail titles, GitHub Actions or mutation checks. These runs used the synthetic
cargo.cmdfixture, not an actual Cargo build.AI use
Codex (GPT-6; exact variant unavailable) inspected the changes, ran validation and drafted this report.
@DavidM1911 on GitHub · 2026-11-25 14:43 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!
@RavenCurseBurg on GitHub · 2026-11-26 02:06 UTC · original · edited 2026-11-26 02:17 UTC
Tested
29e66d46e5a2869901d9b65f3f26427b07673111using the four existing fake-Cargo cases under Windows PowerShell 5.1 and PowerShell 7.6.9. I varied the checkout and TEMP directories independently, using spaces in every path and literal square brackets in neither, either or both.With the original fixture and runner, the two ordinary-path runs passed. The other six shell/path combinations stopped in the success control. A bracketed checkout failed at
Set-Location; a bracketed TEMP path left the fixture's Cargo call log empty. Substituting main's runner fromb49be1836844gave the same six failures.Candidate fix and regression case: all 32 checks passed (4 Cargo cases × 4 path combinations × 2 shells). Success, build exit 17, test exit 101 and missing Cargo exit 1 all retained the expected invocation sequence; no fixture directories remained. On main's runner, the revised success control also failed in both shells before the one-line literal-directory change and all four controls passed in each shell after it.
Commands:
powershell.exeandpwsh.exe -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -File scripts/test-native-stderr.tests.ps1in each directory layout. Windows build 26100, i7-13700. OpenAI Codex (GPT-6) prepared the patch and ran the checks. Only the Cargo stand-in was used; no Rust build, GPU or title run.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.