You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scripts: run remaining workspace test targets after a failure - #1029
While testing #872, the intermittent #718 library failure stopped the workspace run before the integration targets. This left no result for those targets even though the test binaries were independent.
What is in it
Pass Cargo's --no-fail-fast in scripts/test.ps1 so subsequent test binaries still run after a test failure. Cargo's exit code still reaches the caller.
Tested
Native Windows 11 Pro build 26200, Ryzen 7 7800X3D, RX 9070 XT driver 32.0.32029.2010, Rust 1.99.1 MSVC, debug.
Verified the existing native-stderr regression test under both Windows PowerShell 5.1 and PowerShell 7. Ran the old and new scripts under both shells against the same temporary Cargo package with two integration targets. The first intentionally fails. Before: exit 101, second target never ran. After: exit 101, second target ran and passed.
scripts/test.ps1 --nocapture on XCL with XCL_ADAPTER=9070 and XCL_REQUIRE_GPU=wave64,mesh: 727 passed, 0 failed, 41 ignored. Initial run: two debug-layer tests printed SKIPPED. Reran on the same clean head cc39af1 after installing Windows Graphics Tools: 727 passed, 0 failed, 41 ignored; zero explicit GPU SKIPPED lines. Both previously skipped debug-layer tests executed. Retail sample variables remained unset.
Combined this head with Scripts: cover test runner failures and missing Cargo #296 at 29e66d4 using git merge-tree (clean). Its PowerShell fixture passed all four scenarios under both Windows PowerShell 5.1 and PowerShell 7: successful run, build failure, test failure and missing Cargo. That fixture checks call order and exit codes; the real two-target Cargo case above checks continuation.
Regression run
Script-only change. No runtime files changed.
Not tested
Retail game and sample-dependent checks (sample variables unset); release build.
AI use
OpenAI Codex (GPT-6) made the change, ran the tests and drafted this PR.
The reason will be displayed to describe this comment to others. Learn more.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
cargo test --workspace --no-fail-fast -- --test-threads=4: --no-fail-fast is a cargo flag and is correctly placed before -- (after -- it would go to libtest, which does not accept it). Behaviour confirmed locally: on main, a single failing target no longer aborts the remaining workspace test binaries. One-line change, no test needed.
AI use: review by Devin (Cognition, SWE-2); no code changes.
A real case for this change: on RDNA2, where main has a known xcl --lib failure (the packed-mip test fixed by #470 / #1028), scripts/test.ps1 on main stops after the lib target and never runs the integration tests.
Tested
AMD Radeon RX 6900 XT (Navi 21), driver 32.0.21045.29003; Ryzen 7 5800X3D; Windows NT 10.0.26300; Windows PowerShell 5.1
scripts/test.ps1, sums of every test result: line:
Tree
Exit
Test targets run
Passed
Failed
Ignored
main47efa2e
101
1 (xcl --lib only)
695
3
21
this PR (cc39af1) merged onto 47efa2e
101
all
738
3
41
Same 3 lib failures on both trees; with this PR the 43 tests in the later targets run and pass, and the script still exits 101 and ends with error: 1 target failed: -p xcl --lib.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
off-goalDoes not bear on the current goal (world loading); waits until it is reached
5 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While testing #872, the intermittent #718 library failure stopped the workspace run before the integration targets. This left no result for those targets even though the test binaries were independent.
What is in it
--no-fail-fastinscripts/test.ps1so subsequent test binaries still run after a test failure. Cargo's exit code still reaches the caller.Tested
Native Windows 11 Pro build 26200, Ryzen 7 7800X3D, RX 9070 XT driver 32.0.32029.2010, Rust 1.99.1 MSVC, debug.
Verified the existing native-stderr regression test under both Windows PowerShell 5.1 and PowerShell 7. Ran the old and new scripts under both shells against the same temporary Cargo package with two integration targets. The first intentionally fails. Before: exit 101, second target never ran. After: exit 101, second target ran and passed.
scripts/test.ps1 --nocaptureon XCL withXCL_ADAPTER=9070andXCL_REQUIRE_GPU=wave64,mesh: 727 passed, 0 failed, 41 ignored. Initial run: two debug-layer tests printed SKIPPED. Reran on the same clean head cc39af1 after installing Windows Graphics Tools: 727 passed, 0 failed, 41 ignored; zero explicit GPU SKIPPED lines. Both previously skipped debug-layer tests executed. Retail sample variables remained unset.Combined this head with Scripts: cover test runner failures and missing Cargo #296 at
29e66d4using git merge-tree (clean). Its PowerShell fixture passed all four scenarios under both Windows PowerShell 5.1 and PowerShell 7: successful run, build failure, test failure and missing Cargo. That fixture checks call order and exit codes; the real two-target Cargo case above checks continuation.Regression run
Not tested
AI use