tests: when the test title does not finish, print the exit code and the log tail #512
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!512
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/512/head"
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?
@Luislariosss on GitHub · 2026-11-24 01:07 UTC · original
Luislariosss:test/e2e-diagnosable-assert→main· +66 −5 · 2 files · 2 commits · closed without mergingFollow-up to #500.
The assertion in the debug-layer end-to-end test only printed the launcher's opening lines:
with no exit code and no log, so a failure could not be told apart from a refusal, a crash, or a title that never started. I hit that once on this machine (it did not reproduce in five later runs, see #500) and could not diagnose it.
Change
Test-only, one file:
unwrap_or_default(), so a missing log no longer panics on its own and hides why the title stopped;xcl.log;A forced failure shows what it looks like now:
That last part is worth a second look on its own: the debug layer is reporting a corrupt pixel shader in this test, which the old message hid completely.
Testing
cargo test -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layer: ok, 1 passed.AI-assisted.
@Luislariosss on GitHub · 2026-11-24 01:08 UTC · original
About the debug-layer errors I quoted: I chased them and they are not a bug, so nobody should follow me there.
The log shows what happens, in order:
[SHADER] ps 8a5d1b6c5b50f11e: 56 B, format container-unknown, parts [XBOX] D3D12 debug layer (error, id 93): ID3D12Device::CreatePixelShader: Pixel Shader is corrupt or in an unrecognized format. D3D12.X: graphics PSO rejected by the driver (0x80004005) - fallback shaders used (#1)The test title ships a 56-byte synthetic console container, the driver refuses it, and the layer falls back to its own shaders and carries on - which is the point of that fixture. So those three messages are the expected output of a deliberate refusal, not a defect, and the test passing is correct.
What PR #512 is worth is only the diagnosis: the failure message now contains those lines instead of hiding them, which is what was missing when #500 failed once without a reason. I have edited the paragraph about it above rather than leave a false lead in the description.
AI-assisted.
@H0UNDZER0 on GitHub · 2026-11-24 02:40 UTC · original
Tested on an RTX 5080, release build: pass, 677 passed, 0 failed.
a01193bbb8141f542be6a0f0c7f135b5bab3c55b, this PR's head as is (on its base2997c9a; it includes #502's commit), release build.XCL_*variables set.cargo build --release --workspace --locked: OK, the same singlefetch_updatewarning asmain.cargo test --workspace --release --no-fail-fast --locked -- --test-threads=4, run twice (the second with--show-output): 677 passed, 0 failed, 41 ignored both times.main2997c9agives 676 / 0 / 41 on this PC: the difference is the newa_failed_commit_leaves_the_page_lazy, which passes.SKIPPED: the usual 2,gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64).e2epass,test_title_draws_with_a_root_signature_under_the_debug_layerincluded, so the new failure messages had nothing to print here.Not tested
main. At the time of the run that was9ce2070;git merge-treeshowed no conflict.scripts/smoke.ps1.AI use: Claude Code (Claude Opus 5.5, Claude Fable 5.2)
@MesshM on GitHub · 2026-11-24 04:21 UTC · original
Test run of
a01193bbb8141f542be6a0f0c7f135b5bab3c55bon AMD RDNA4. I merged it onto currentmainf4ce27clocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 702 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 661 passed, 0 failed, 21 ignoredSKIPPED;a_failed_commit_leaves_the_page_lazyand the otherlazytests pass, as does the e2e test.Review: The title says this is about the e2e test's failure output, but the PR also changes
kernelx/lazy.rsso a failedMEM_COMMITleaves the page in the lazy set, which is a runtime change and what #487 does for #467. CONTRIBUTING asks for one change per PR and a regression run for runtime changes; splitting thelazy.rspart out (or leaving it to #487) would let the test-output part land as a test-only change. Thelazy.rschange itself looks right: the page is only removed from the set once the commit succeeded.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@raylitebull on GitHub · 2026-11-24 10:43 UTC · original
Closing because it fails the required
PR descriptioncheck (missing required template / AI-use sections perCONTRIBUTING.md). Feel free to reopen once updated to match the template.Pull request closed