Skip to content

Tests: ignore the pipeline cache vkd3d-proton writes under Wine - #669

Open
Tjabooo wants to merge 1 commit into
xcl-dev:mainfrom
Tjabooo:tests/ignore-vkd3d-proton-cache
Open

Tjabooo wants to merge 1 commit into
xcl-dev:mainfrom
Tjabooo:tests/ignore-vkd3d-proton-cache

Conversation

@Tjabooo

@Tjabooo Tjabooo commented Nov 24, 2026

Copy link
Copy Markdown

Running the test suite under Wine with vkd3d-proton (the Linux setup in #175) leaves vkd3d-proton.cache and vkd3d-proton.cache.write in crates/xcl, the test working directory. They appear as untracked files after every run, and a git add -A would commit them (a binary that the PR checks would then refuse). This ignores both. Part of #175.

What is in it

  • .gitignore: vkd3d-proton.cache and vkd3d-proton.cache.write, with a comment saying where they come from.

Tested

Regression run

  • Not a runtime change (.gitignore only), so no smoke.ps1 run.

Not tested

  • The Windows suite (cargo test --workspace with the MSVC build): there is nothing on Windows for this to change, but no Windows run was made.

AI use

  • Claude Code with Claude Opus 5.5: found the files while running the suite under Wine, wrote the change and this description. I read the diff.

Running the suite under Wine with vkd3d-proton (the Linux setup of xcl-dev#175)
leaves vkd3d-proton.cache and vkd3d-proton.cache.write in crates/xcl, the
test working directory. They show up as untracked files after every run and
a `git add -A` would commit them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@mdberkey mdberkey left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified

  • Windows 11 Pro 26200, Ryzen 5 5600X, 32 GB, RTX 3070.
  • .gitignore is the only changed file (+4 lines).
  • git check-ignore -v resolves both vkd3d-proton.cache and vkd3d-proton.cache.write at the repo root and in crates/xcl (.gitignore:48, :49).
  • With both files created in both locations, git status --porcelain is empty and git add -A --dry-run stages nothing.
  • No tracked file matches vkd3d; git diff --check is clean.
  • cargo build --locked --workspace --jobs 3: passed (only the pre-existing fetch_update deprecation warning).
  • cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-output: 692 passed, 0 failed, 41 ignored; identical on 63cdc25. Skipped: 2 no wave64, 1 no d3d12SDKLayers.dll, 1 no D3D12 debug layer.

Review
LGTM. The patterns are unanchored, so they hide these exact filenames in every directory — which is right here, since the tests' working directory is crates/xcl and an anchored rule would miss a run from elsewhere. If you ever want to narrow it, crates/xcl/vkd3d-proton.cache* would do, at the cost of other working directories.

AI use: OpenCode (DeepSeek V4.1 Flash Free) ran the checks and drafted this; I checked it.

@upipibi

upipibi commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Full-suite run on this PR's head 422f56d, for the counts CONTRIBUTING.md item 2 asks for:

Tested

  • NVIDIA GeForce RTX 3070 (driver 616.56, wave32), Ryzen 9 5950X, Windows 11 Pro 26100, rustc 1.100.0 MSVC, debug
  • cargo build --workspace then cargo test --workspace --no-fail-fast -- --test-threads=4: 692 passed, 0 failed, 41 ignored (16 test binaries, the e2e title included)
  • SKIPPED: gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)

Not tested: AMD / wave64; no retail title (this PR changes only .gitignore).

AI-assisted (Claude Code).

@crastinator crastinator left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on RDNA2 under Proton: the two files really are ignored now.

Tested (head 422f56d, merged onto main 930e8b4: no conflicts)

  • AMD Radeon RX 6700 XT (RDNA2, gfx1031, RADV NAVI22, Mesa 26.3.1), Ryzen 7 5700X, Linux 7.3.5 (CachyOS)
  • Proton Experimental 11.0-20261112's Wine, vkd3d-proton v3.1 + #257's patch (-Db_ndebug=true, dxil-spirv 53aac418 from #775), DXVK v3.1.1-209 dxgi, DXC 1.9.2609.5, libopus 1.5.2, XCL_REQUIRE_GPU=wave64,mesh (0 SKIPPED)
  • cross-built for x86_64-pc-windows-msvc (clang-cl / lld-link, xwin SDK 10.0.26100), Rust 1.99.1, debug
  • cargo test -p xcl --lib -- --test-threads=1 plus every integration test (--test '*' -- --test-threads=1), compared per test with the same runs on main 930e8b4. main here: 8 stable Wine-lane failures (#530 ×2, #676, #890 ×2, e2e, pls_quota #810, predication_e2e #1272). Separately, title_textures::{placed_title_textures_share_vram_and_preserve_pixels, transitions_apply_when_their_list_is_submitted} and vram::d32s8_targets… fail together in 2 of 5 main runs (the #718 family), so I do not count a pass of those as a fix either way.
  • After a test run, main shows ?? crates/xcl/vkd3d-proton.cache and ?? crates/xcl/vkd3d-proton.cache.write. With the PR, git check-ignore -v names .gitignore:48 and :49 for them and git status no longer lists them.
  • The suite: 740 passed, 11 failed, 41 ignored, the same as main in the same run (the 8 stable failures plus the 3 #718 flakes).

Not tested

  • Anything that needs game files: no XCL_SAMPLE_* was set, so the tests that read them (about 66) pass without running.
  • Windows (nothing changes there).

AI use

  • Claude Code (Claude Opus 5.5) merged, built and ran this and wrote the report; I checked the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants