Tests: capture the truncate error before checking for Wine #633
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!633
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/633/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?
@WebIdentity1 on GitHub · 2026-11-24 02:42 UTC · original
WebIdentity1:codex/vfs-test-error-snapshot→main· +2 −1 · 1 files · 1 commits · closed without mergingtruncate_existing_validation_errorsfails by itself on native Windows with 127 instead of the expected 5. Its firstunder_wine()call looks upwine_get_versionbetweenCreateFileWandGetLastError, overwriting the error being tested. Capture that error immediately. Found while validating #618; independent of its runtime change.What is in it
vfs.rstest. Assertions and Wine handling are preserved; no runtime behavior changes.Tested
bd6116452e990a0af69dd21eef4cc673364fe013, base3db536ebe231418d76e8d6e52ccee0b47330a522. Native Windows 10 build 19045, Ryzen 7 7800X3D, RTX 3090 driver 591.74 plus AMD integrated driver 32.0.21030.2001, Rust 1.98.1 MSVC, SDK DXC 1.8.2502.11, Agility 1.620.2, debug.cargo test --locked -p xcl --lib vfs::tests::truncate_existing_validation_errors -- --exact --show-output: baseline 0 passed / 1 failed / 0 ignored; candidate 1 / 0 / 0, no skips.cargo test --locked -p xcl --lib vfs::tests:: -- --test-threads=4 --show-output: 10 / 0 / 0, no skips.cargo build --locked --workspacepassed. Four-thread full workspace attempt timed out at 180 s withgpu_uma_import_check_at_init,large_heaps_get_shared_pages_as_used,slots_copy_and_release, andcopy_descriptors_remaps_xbox_extra_cbv_srv_uav_to_pc_enumstalled (also observed on untouched main during #618 validation).cargo test --locked --workspace --no-fail-fast -- --test-threads=1 --show-output: 685 passed / 1 failed / 41 ignored. Only the previously observedgpu_clamp_and_omod_per_instructionfailed. This is a serial result, not a completed four-thread run.gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no native wave64 on NVIDIA),test_title_draws_with_a_root_signature_under_the_debug_layer,uploads_start_from_each_subresources_state(debug layer unavailable). Sample variables unset. Presentation tests ran in desktop session1; some fixtures select AMD directly despiteXCL_ADAPTER=3090.Regression run
Not run: no retail title available. #507 has now added a maintainer-reviewed
test-onlyexemption for this situation (#452). Please consider that label after reviewing this exact test-only revision; the draft still needs the other required checks. No runtime change or smoke evidence is claimed.Not tested
Wine, release builds, retail titles. Full four-thread run did not complete; keeping this draft pending required checks.
AI use
Codex (GPT-6) isolated the failure, made the test-only change, ran native Windows validation and prepared the description.
@fladit123 on GitHub · 2026-11-24 03:20 UTC · original
Independent validation on my RTX 4060. I previously encountered this exact failure while working on #644, and can confirm that this patch resolves it.
Tested
3db536ebe231418d76e8d6e52ccee0b47330a522bd6116452e990a0af69dd21eef4cc673364fe013XCL_ADAPTER=4060Commands
The full workspace run completed with exit code 0, without reproducing the reported GPU stalls or CLAMP failure. The worktree remained clean.
Two explicit capability skips, included in the passed count:
gpu_geometry_wave32_prefix_count_over_a_maskgpu_wave32_program_in_wave64_hardwareThe diff only changes when the test captures
GetLastError(), preserving its assertions and Wine handling. No runtime behavior changes.I support the maintainer-reviewed
test-onlylabel for this revision. No blocking findings within the tested scope.Not tested: Wine, release, native wave64, retail titles, optional external samples or a full baseline workspace run.
AI use: ChatGPT (GPT-6.2) assisted with review, test planning, log analysis and reporting. All commands were executed locally by me.
@WebIdentity1 on GitHub · 2026-11-24 16:24 UTC · original
The equivalent test-only fix is now on main in d78597d: capture GetLastError immediately after CreateFileW, before under_wine can overwrite it. I compared both diffs; only the variable name and explanatory comment differ.
Closing this duplicate draft. The tested branch and original before/after evidence remain available.
AI use: Codex (GPT-6) checked the landed code and prepared this update.
Pull request closed