Repository navigation
Tests: isolate e2e temp directories, report skips on stderr, and check exit status - #2153
Open
HumanlyDev wants to merge 1 commit into
Open
HumanlyDev wants to merge 1 commit into
HumanlyDev wants to merge 1 commit into
Conversation
…k exit status Use a TempDir RAII drop guard with a CARGO_TARGET_TMPDIR PID/timestamp/atomic-nonce helper across all e2e tests so parallel runs do not collide and temporary directories are always cleaned up on drop. Write debug-layer skip notices directly to std::io::stderr() so libtest output capture does not hide them from scripts/test.ps1, and assert out.status.success() with stderr included in failure messages. Assisted-by: Antigravity (Gemini 4)
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Isolate
crates/xcl/tests/e2e.rstemporary directories with a RAII drop guard, report debug-layer skip lines directly onstderr, and assert process exit status intest_title_draws_with_a_root_signature_under_the_debug_layer. Test-only change undercrates/xcl/tests/.What is in it
crates/xcl/tests/e2e.rs:TempDir(PathBuf)RAII drop guard andtemp_dir(prefix)helper rooted underenv!("CARGO_TARGET_TMPDIR")with PID, timestamp, and sequence nonce, replacingstd::env::temp_dir(), un-noncede2e, and hardcodedtarget/e2e-debug-layeracross all three e2e tests.eprintln!("SKIPPED ...")intest_title_draws_with_a_root_signature_under_the_debug_layerwithwriteln!(std::io::stderr(), "SKIPPED ...")so libtest output capture does not hide skip notices fromscripts/test.ps1.out.status.success()and includestderrin assertion messages intest_title_draws_with_a_root_signature_under_the_debug_layer.Tested
32.0.16.1088), AMD Ryzen 5 7600, Windows 11 Pro10.0.26200(build26200),rustc 1.100.0 (0ef1bc386 2026-11-09), DXC1.8.2502.11, debug build.cargo test -p xcl --test e2e -- --nocapture: 3 passed, 0 failed, 0 ignored (verified nonced temp dirs cleaned up after run)..\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4, RTX 4060, debug): 1154 passed, 0 failed, 46 ignored across 21 targets (25 SKIPPED GPU checks: 20no wave64, 3per-lane form#1426refusals, 1no heap windows, 1cannot disable the driver cache (Windows Developer Mode is required)).Regression run
crates/xcl/tests/(no runtime files undercrates/xcl/src/modified).Not tested
test_title_draws_with_a_root_signature_under_the_debug_layeron a host withoutd3d12SDKLayers.dll/xgameruntime.dll, retail titles /XCL_SAMPLE_*, AMD RDNA3/4, Linux / Wine.AI use
crates/xcl/tests/e2e.rs, implemented theTempDirRAII guard, stderr skip reporting, and exit-status check, ran the tests, and drafted this PR description.