Tests: keep the D3D12 pipeline smoke check portable under Wine #1266

Closed
BaggyALPHA wants to merge 2 commits from upstream-pr/1266 into main
BaggyALPHA commented 2026-11-24 16:56:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T16:56:20Z.


The pipeline smoke test now keeps its successful-pipeline check under Wine and runs the existing checksum rejection assertions on native Windows. vkd3d-proton intentionally ignores the DXIL container checksum, so its acceptance of an unsigned or incorrectly signed container does not indicate a pipeline regression. This addresses the failure reported in #1218.

Windows verification used only the repository's synthetic fixture. The focused test ran on WARP, including both native checksum assertions. The shader crate suite passed 120 tests with one ignored. Clippy with all targets and features and the pre-commit asset-policy check passed. Independent Linux verification by @neonbyte1 confirmed that the focused test passes under Wine with vkd3d-proton once #1218 and this PR are applied together. It failed on the same setup with only #1218 applied. The full shader suite passed 120 tests with one ignored. See the Wine test report.

AI-assisted (Codex).

<!-- greyfinch-sync:Marvisak/VIctory:issue:6587028467 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1266). Originally posted by [BaggyALPHA](https://github.com/BaggyALPHA) on 2026-11-24T16:56:20Z. --- The pipeline smoke test now keeps its successful-pipeline check under Wine and runs the existing checksum rejection assertions on native Windows. vkd3d-proton intentionally ignores the DXIL container checksum, so its acceptance of an unsigned or incorrectly signed container does not indicate a pipeline regression. This addresses the failure reported in #1218. Windows verification used only the repository's synthetic fixture. The focused test ran on WARP, including both native checksum assertions. The shader crate suite passed 120 tests with one ignored. Clippy with all targets and features and the pre-commit asset-policy check passed. Independent Linux verification by @neonbyte1 confirmed that the focused test passes under Wine with vkd3d-proton once #1218 and this PR are applied together. It failed on the same setup with only #1218 applied. The full shader suite passed 120 tests with one ignored. See [the Wine test report](https://github.com/Marvisak/VIctory/pull/1266#issuecomment-7140937315). AI-assisted (Codex).
catminou4 commented 2026-11-24 18:04:26 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T17:06:52Z.

Review: APPROVED


Skips the container-hash check only under Wine (ntdll!wine_get_version probe, module checked before lookup, export never called — SAFETY comment is accurate). vkd3d-proton indeed does not enforce the DXIL container checksum, so the positive pipeline check stays meaningful while the negative hash checks would false-fail under Wine. Test-only change. Local verification: macOS arm64, rustc 1.98.1, PR head merged into main ffe310e, cargo test -p victory-shader --locked. Shader execution tests (valu_tests/host) are #[cfg(all(test, windows))], so macOS covers lowering/decode/unit tests only. 96 passed, 0 failed (module is Windows-gated, not compiled here).

<!-- greyfinch-sync:Marvisak/VIctory:review:6043853086 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1266#pullrequestreview-6043853086). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T17:06:52Z. **Review:** APPROVED --- Skips the container-hash check only under Wine (ntdll!wine_get_version probe, module checked before lookup, export never called — SAFETY comment is accurate). vkd3d-proton indeed does not enforce the DXIL container checksum, so the positive pipeline check stays meaningful while the negative hash checks would false-fail under Wine. Test-only change. Local verification: macOS arm64, rustc 1.98.1, PR head merged into main ffe310e, `cargo test -p victory-shader --locked`. Shader execution tests (valu_tests/host) are `#[cfg(all(test, windows))]`, so macOS covers lowering/decode/unit tests only. 96 passed, 0 failed (module is Windows-gated, not compiled here).
mercuryVM commented 2026-11-24 18:04:26 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T17:17:32Z.

Review: APPROVED


Tested 119de422 on Windows 11, RTX 5070, MSVC:

  • cargo test -p victory-shader -- --test-threads=1 passes on the head (120 passed, 1 ignored).
  • Merged into our fork: the workspace and shader tests pass, and clippy is clean both ways.

The change looks right. wine_get_version exported from ntdll is the usual way to detect Wine, the export is never called, and on native Windows both checksum assertions still run, as here. One thought: an eprintln! when the Wine branch returns early would make the skip show up in the test output.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6044017965 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1266#pullrequestreview-6044017965). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T17:17:32Z. **Review:** APPROVED --- Tested 119de422 on Windows 11, RTX 5070, MSVC: - `cargo test -p victory-shader -- --test-threads=1` passes on the head (120 passed, 1 ignored). - Merged into our fork: the workspace and shader tests pass, and clippy is clean both ways. The change looks right. `wine_get_version` exported from ntdll is the usual way to detect Wine, the export is never called, and on native Windows both checksum assertions still run, as here. One thought: an `eprintln!` when the Wine branch returns early would make the skip show up in the test output. AI-assisted (Claude Code).
BaggyALPHA commented 2026-11-24 18:05:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T17:11:35Z.


Windows CI is green. I also rechecked the relative-path fix from #1218 with a Windows command-capture harness. Both Cargo invocations now receive the expected SDK search paths when xtask starts outside the repository root.

@neonbyte1, could you run the focused pipeline smoke test with #1218 and this PR applied together on your Wine/vkd3d-proton setup? A pass for emit::tests::stub_pipeline_is_created would verify the runtime branch this PR changes. The existing synthetic fixture is sufficient.

AI-assisted (Codex).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7138825155 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1266#issuecomment-7138825155). Originally posted by [BaggyALPHA](https://github.com/BaggyALPHA) on 2026-11-24T17:11:35Z. --- Windows CI is green. I also rechecked the relative-path fix from #1218 with a Windows command-capture harness. Both Cargo invocations now receive the expected SDK search paths when xtask starts outside the repository root. @neonbyte1, could you run the focused pipeline smoke test with #1218 and this PR applied together on your Wine/vkd3d-proton setup? A pass for `emit::tests::stub_pipeline_is_created` would verify the runtime branch this PR changes. The existing synthetic fixture is sufficient. AI-assisted (Codex).
neonbyte1 commented 2026-11-24 19:04:01 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-24T18:06:50Z.


@BaggyALPHA sure, give me a moment because I'm currently in a session solving a few shader related issues.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140176324 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1266#issuecomment-7140176324). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-24T18:06:50Z. --- @BaggyALPHA sure, give me a moment because I'm currently in a session solving a few shader related issues.
neonbyte1 commented 2026-11-24 19:04:19 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by neonbyte1 on 2026-11-24T18:38:49Z.


Ran on Linux: Wine 11.22, vkd3d-proton from GE-Proton11-14, RTX 5090, driver 620.73.04. The tree was ffe310e + #1218 (037185c, d27b279) + this PR (f14fdfb), with tests run via cargo xtask wine-test --vkd3d-proton … -- -p victory-shader.

  • With this PR, emit::tests::stub_pipeline_is_created passes. The pipeline is created and the test logs pipeline created under Wine. Skipping native D3D12 checksum checks.
  • Without it, on the same tree minus f14fdfb, the test fails at emit/mod.rs:597 with digest [00, …, 00] accepted. vkd3d-proton takes the zeroed hash, so the skip is needed.
  • Full victory-shader suite with this PR: 120 passed, 0 failed, 1 ignored (bench_write).

AI-assisted (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7140937315 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1266#issuecomment-7140937315). Originally posted by [neonbyte1](https://github.com/neonbyte1) on 2026-11-24T18:38:49Z. --- Ran on Linux: Wine 11.22, vkd3d-proton from GE-Proton11-14, RTX 5090, driver 620.73.04. The tree was `ffe310e` + #1218 (`037185c`, `d27b279`) + this PR (`f14fdfb`), with tests run via `cargo xtask wine-test --vkd3d-proton … -- -p victory-shader`. - **With this PR,** `emit::tests::stub_pipeline_is_created` passes. The pipeline is created and the test logs `pipeline created under Wine. Skipping native D3D12 checksum checks.` - **Without it,** on the same tree minus `f14fdfb`, the test fails at `emit/mod.rs:597` with `digest [00, …, 00] accepted`. vkd3d-proton takes the zeroed hash, so the skip is needed. - **Full `victory-shader` suite with this PR:** 120 passed, 0 failed, 1 ignored (`bench_write`). _AI-assisted (Claude)._
upstream-sync closed this pull request 2026-11-25 01:06:05 +00:00
Marvisak commented 2026-11-25 01:08:06 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:36:05Z.


Automated triage for the maintainers. Closing because it is outside the project's scope (VIctory targets Windows hosts; ports, launchers and tooling for other platforms are not being taken).

Skips the container-checksum assertions of one test when ntdll exports wine_get_version. Wine/Proton test support is outside the project's scope (it belongs to the unmerged Linux wine-test PR #1218) and it changes nothing on Windows.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148681889 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1266#issuecomment-7148681889). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:36:05Z. --- Automated triage for the maintainers. Closing because it is outside the project's scope (VIctory targets Windows hosts; ports, launchers and tooling for other platforms are not being taken). Skips the container-checksum assertions of one test when ntdll exports wine_get_version. Wine/Proton test support is outside the project's scope (it belongs to the unmerged Linux wine-test PR #1218) and it changes nothing on Windows. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!1266
No description provided.