Scripts: run remaining workspace test targets after a failure #1022
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1029"
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?
Imported from ivall/xcl. Originally posted by jmal423 on 2026-11-24T10:33:55Z.
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 headcc39af1after 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 #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
Imported from ivall/xcl. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T10:34:12Z.
Review: COMMENTED
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T11:26:59Z.
Independent check.
cargo test --workspace --no-fail-fast -- --test-threads=4:--no-fail-fastis 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.
Imported from ivall/xcl. Originally posted by AlexandreSchuelter on 2026-11-24T11:40:43Z.
A real case for this change: on RDNA2, where
mainhas a knownxcl --libfailure (the packed-mip test fixed by #470 / #1028),scripts/test.ps1onmainstops after the lib target and never runs the integration tests.Tested
stable-x86_64-pc-windows-msvc, debug;XCL_NETWORK=0,XCL_REQUIRE_GPU=wave64scripts/test.ps1, sums of everytest result:line:main47efa2excl --libonly)cc39af1) merged onto47efa2eerror: 1 target failed: -p xcl --lib.Not tested
XCL_SAMPLE_*unset)AI use: Claude Code (Claude Opus 5.5) ran the script on both trees and wrote this report; the runs are real, on the hardware above.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:31:35Z.
Empirical test report (
cc39af1f)Hardware / environment
Windows x64 build 26200 (OS version 10.0.26200.0), AMD Family 23 Model 113 Stepping 0, Windows PowerShell 5.1.26100.9818, rustc 1.100.0 (0ef1bc386 2026-11-09), and DXC 1.9.2609.5. The run used a temporary, PATH-first
cargo.cmdfixture and ran outsideInvoke-ArcTest.ps1.Commands and results
cc39af1f368a895f4206bdcebbcb606cd0cd61b7.powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test.ps1under three stub configurations: success, success with a skip on stderr, and build failure. Ran the same command with--skip synthetic_name --nocapturefor the first-target failure case.cargo test --workspace -- --test-threads=4as the control.Observed behavior
cargo build --workspacebeforecargo test --workspace --no-fail-fast -- --test-threads=4. It forwarded the extra arguments after Cargo's--separator.Not tested
Real Cargo workspace builds, the GPU workspace suite, and game smoke runs were omitted. All target and skip messages came from the fixture.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1029-focused.logand published.upstream-sync referenced this pull request2026-11-25 16:10:51 +00:00
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T23:06:06Z.
Native Cargo-argument regression on
cc39af1f368a895f4206bdcebbcb606cd0cd61b7. I ranscripts/test-no-fail-fast.tests.ps1andscripts/test-native-stderr.tests.ps1with-NoProfile -NonInteractive -ExecutionPolicy Bypass -Filein Windows PowerShell 5.1 and PowerShell 7.6.9. All four runs passed.The stand-in saw
--no-fail-fastexactly once before the Cargo/libtest separator and received a spaced skip filter as one argument after it. When the test command printed a skip notice and exited 101, the runner printed the skip summary and propagated 101. Removing the flag, moving it after the separator, and dropping the child’s failure status each failed the expected assertion in both shells (6/6).I also paired this runner with the four-case fixture from #296 at
29e66d46e5a2869901d9b65f3f26427b07673111. Both shells passed its success, build failure, test failure and missing-Cargo cases alongside the new argument check. Windows 11 26100.9711, i7-13700. This checks the wrapper with a native command stub. No real Cargo workspace or GPU run. OpenAI Codex (GPT-6) prepared and ran the fixture.Pull request closed