CI: fix the red Linux job (unused variable in the POPS test) #39

Closed
lcg007xd-c wants to merge 0 commits from upstream-pr/39 into main
lcg007xd-c commented 2026-11-25 20:08:14 +00:00 (Migrated from github.com)

Imported from uiliannn/VItoriaBr. Originally posted by lcg007xd-c on 2026-11-25T20:08:14Z.


What this fixes

The portable job is red on main (run 45690169897, at 9ceb7e7). Clippy fails, so the Linux tests never run:

error: unused variable: `out`
    --> crates/victory-shader/src/emit/mod.rs:1314:13

The POPS test from #36 binds out only for the dxil.dll validation, and that code is #[cfg(windows)].

The change

Two lines: #[cfg_attr(not(windows), allow(unused_variables))] on that let, the same allowance the test at mod.rs:1477 already uses. Nothing changes on Windows.

Tested (Linux, Rust 1.98.1)

  • The portable job's clippy step, run exactly as CI runs it: cargo clippy -p victory-core -p victory-pe -p victory-pipeline -p victory-shader -p victory-formats -p victory-game -p xtask --all-targets --locked -- -D warnings is clean, also with --all-features.
  • cargo clippy for x86_64-pc-windows-msvc is clean.
  • The portable tests pass: shader 186, formats 27, core 11, pe 3, pipeline 4, game 3, xtask 4.

🤖 Generated with Claude Code

<!-- greyfinch-sync:uiliannn/VItoriaBr:issue:6612768607 --> Imported from [uiliannn/VItoriaBr](https://github.com/uiliannn/VItoriaBr/pull/39). Originally posted by [lcg007xd-c](https://github.com/lcg007xd-c) on 2026-11-25T20:08:14Z. --- ## What this fixes The `portable` job is red on `main` (run 45690169897, at 9ceb7e7). Clippy fails, so the Linux tests never run: ``` error: unused variable: `out` --> crates/victory-shader/src/emit/mod.rs:1314:13 ``` The POPS test from #36 binds `out` only for the dxil.dll validation, and that code is `#[cfg(windows)]`. ## The change Two lines: `#[cfg_attr(not(windows), allow(unused_variables))]` on that `let`, the same allowance the test at `mod.rs:1477` already uses. Nothing changes on Windows. ## Tested (Linux, Rust 1.98.1) - The portable job's clippy step, run exactly as CI runs it: `cargo clippy -p victory-core -p victory-pe -p victory-pipeline -p victory-shader -p victory-formats -p victory-game -p xtask --all-targets --locked -- -D warnings` is clean, also with `--all-features`. - `cargo clippy` for `x86_64-pc-windows-msvc` is clean. - The portable tests pass: shader 186, formats 27, core 11, pe 3, pipeline 4, game 3, xtask 4. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
uiliannn commented 2026-11-25 20:33:23 +00:00 (Migrated from github.com)

Imported from uiliannn/VItoriaBr. Originally posted by uiliannn on 2026-11-25T20:33:23Z.


Obrigado pela contribuição! O fix do teste POPS no Linux CI acabou de entrar em ca4759f minutos antes.

<!-- greyfinch-sync:uiliannn/VItoriaBr:comment:7173846359 --> Imported from [uiliannn/VItoriaBr](https://github.com/uiliannn/VItoriaBr/pull/39#issuecomment-7173846359). Originally posted by [uiliannn](https://github.com/uiliannn) on 2026-11-25T20:33:23Z. --- Obrigado pela contribuição! O fix do teste POPS no Linux CI acabou de entrar em `ca4759f` minutos antes.

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
uiliannn/VItoriaBr!39
No description provided.