CI: a Linux job for the crates that build there (shader translator, formats, pipelines, PE, game data, xtask) #193

Open
HamudL wants to merge 3 commits from upstream-pr/193 into main
HamudL commented 2026-11-26 11:06:20 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by HamudL on 2026-11-26T11:06:20Z.


A Linux job beside the Windows jobs, required by check. It runs Clippy (all targets, all features, -D warnings) and the tests of the seven crates that build on Linux: victory-core, victory-pe, victory-formats, victory-pipeline, victory-game, victory-shader and xtask, 316 tests in all, the translator's 209 among them. Many people test under Proton on Linux, and the job reports minutes before the Windows runners do.

Needed for it:

  • victory-pe: the four tests that read the test binary as a PE image run on Windows only, since on Linux the test binary is not a PE image.
  • victory-shader: test bindings that only Windows code reads (the dxil.dll validator, the D3D12 host) are gated or allowed elsewhere.

Nothing changes on Windows. Checked locally on Linux: Clippy with -D warnings clean, all 316 tests pass. Windows-target Clippy for victory-shader and victory-pe is still clean.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6625290996 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/193). Originally posted by [HamudL](https://github.com/HamudL) on 2026-11-26T11:06:20Z. --- A Linux job beside the Windows jobs, required by `check`. It runs Clippy (all targets, all features, `-D warnings`) and the tests of the seven crates that build on Linux: victory-core, victory-pe, victory-formats, victory-pipeline, victory-game, victory-shader and xtask, 316 tests in all, the translator's 209 among them. Many people test under Proton on Linux, and the job reports minutes before the Windows runners do. Needed for it: - victory-pe: the four tests that read the test binary as a PE image run on Windows only, since on Linux the test binary is not a PE image. - victory-shader: test bindings that only Windows code reads (the dxil.dll validator, the D3D12 host) are gated or allowed elsewhere. Nothing changes on Windows. Checked locally on Linux: Clippy with `-D warnings` clean, all 316 tests pass. Windows-target Clippy for victory-shader and victory-pe is still clean.
illuminatedfellow commented 2026-11-26 16:37:31 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by illuminatedfellow on 2026-11-26T16:37:31Z.


Ran this PR's Linux job on Linux (Linux Mint, x86_64), with both commits applied on top of current main (c9c932c; emit/mod.rs auto-merges):

  • cargo clippy $CRATES --all-targets --all-features --locked -- -D warnings: passes.
  • cargo test $CRATES --locked: all pass — victory-core 13, victory-formats 41 (5 ignored), victory-game 3, victory-pe 32, victory-pipeline 7, victory-shader 209 (2 ignored), xtask 9.

One caveat: I could only run Rust 1.97 here, not the pinned 1.98.1, so rustup toolchain install itself wasn't exercised (1.97 also warns that clippy::chunks_exact_to_as_chunks is unknown; 1.98.1 knows it).

Merge note: the descriptor_sites.rs transmute fix is also in #169 (and #229), so whichever lands second will conflict on that one line.

(Written with Claude Opus 5.5.)

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7197888263 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/193#issuecomment-7197888263). Originally posted by [illuminatedfellow](https://github.com/illuminatedfellow) on 2026-11-26T16:37:31Z. --- Ran this PR's Linux job on Linux (Linux Mint, x86_64), with both commits applied on top of current `main` (c9c932c; `emit/mod.rs` auto-merges): - `cargo clippy $CRATES --all-targets --all-features --locked -- -D warnings`: passes. - `cargo test $CRATES --locked`: all pass — victory-core 13, victory-formats 41 (5 ignored), victory-game 3, victory-pe 32, victory-pipeline 7, victory-shader 209 (2 ignored), xtask 9. One caveat: I could only run Rust 1.97 here, not the pinned 1.98.1, so `rustup toolchain install` itself wasn't exercised (1.97 also warns that `clippy::chunks_exact_to_as_chunks` is unknown; 1.98.1 knows it). Merge note: the `descriptor_sites.rs` transmute fix is also in #169 (and #229), so whichever lands second will conflict on that one line. (Written with Claude Opus 5.5.)
HamudL commented 2026-11-26 18:29:41 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by HamudL on 2026-11-26T18:29:41Z.


Thanks for running it. On the merge note: the transmute line here (and in #173, #184 and #192) is now written exactly as #169 writes it (0ad3dd6 in this PR), so #169 and these merge in either order, and once #169 is in main this PR no longer touches that file. The warning with 1.97 is expected: the pinned 1.98.1 knows chunks_exact_to_as_chunks.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7200525990 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/193#issuecomment-7200525990). Originally posted by [HamudL](https://github.com/HamudL) on 2026-11-26T18:29:41Z. --- Thanks for running it. On the merge note: the transmute line here (and in #173, #184 and #192) is now written exactly as #169 writes it (0ad3dd6 in this PR), so #169 and these merge in either order, and once #169 is in main this PR no longer touches that file. The warning with 1.97 is expected: the pinned 1.98.1 knows `chunks_exact_to_as_chunks`.
illuminatedfellow commented 2026-11-26 18:33:31 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by illuminatedfellow on 2026-11-26T18:33:31Z.


Thanks — confirmed: with 0ad3dd6 the line in descriptor_sites.rs is byte-for-byte #169's, and this PR merges cleanly with #169 in either order. That resolves my merge note.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7200597810 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/193#issuecomment-7200597810). Originally posted by [illuminatedfellow](https://github.com/illuminatedfellow) on 2026-11-26T18:33:31Z. --- Thanks — confirmed: with 0ad3dd6 the line in `descriptor_sites.rs` is byte-for-byte #169's, and this PR merges cleanly with #169 in either order. That resolves my merge note.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/193:upstream-pr/193'
git switch 'upstream-pr/193'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/193'
git switch 'upstream-pr/193'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/193'
git switch 'upstream-pr/193'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/193'
git switch 'main'
git merge --squash 'upstream-pr/193'
git switch 'main'
git merge --ff-only 'upstream-pr/193'
git switch 'main'
git merge 'upstream-pr/193'
git push origin 'main'
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
avatarmanz/VIctory-7900XTX!193
No description provided.