GPU: expand synthetic unit tests for pipeline/make.rs (1 -> 9/12 tests) #1051

Open
opened 2026-11-24 15:16:50 +00:00 by geiyiliyabumo · 3 comments
geiyiliyabumo commented 2026-11-24 15:16:50 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T15:16:50Z.


Summary

Audits crates/victory-gpu/src/pipeline/make.rs and expands deterministic synthetic unit tests from 1 to 9 tests (default) / 12 tests (--features diagnostics). Production logic is unchanged.

Because external PR creation is currently restricted (collaborators_only), the CI-green branch is ready on my fork for cherry-pick / review:

  • Branch: geiyiliyabumo/VIctory@test/gpu-pipeline-make
  • Commit: geiyiliyabumo/VIctory@76291ef (based on main ffe310e)

Tests Added (crates/victory-gpu/src/pipeline/make.rs)

  • Key identity across shaders and all 10 GraphicsState::read state components.
  • Queue-once accounting, sticky refusal suppression (no re-queue after refusal, excluded from early-start list), early cache-list handling, per-frame wait budget, and all three missing() diagnostics answers.

Verification (Windows 11 x64 MSVC)

  • rustfmt --edition 2024 --check crates/victory-gpu/src/pipeline/make.rs: PASS
  • cargo xtask policy: PASS (154 files ok)
  • cargo clippy -p victory-gpu --all-targets --locked -- -D warnings (default + --features diagnostics): PASS (0 warnings)
  • cargo test -p victory-gpu --locked -- pipeline::make::: 9/9 PASS (--features diagnostics: 12/12 PASS)

AI-assisted; synthetic tests only, no game files.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6585077644 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1051). Originally posted by [geiyiliyabumo](https://github.com/geiyiliyabumo) on 2026-11-24T15:16:50Z. --- ### Summary Audits `crates/victory-gpu/src/pipeline/make.rs` and expands deterministic synthetic unit tests from 1 to **9 tests** (default) / **12 tests** (`--features diagnostics`). Production logic is unchanged. Because external PR creation is currently restricted (`collaborators_only`), the CI-green branch is ready on my fork for cherry-pick / review: - **Branch**: `geiyiliyabumo/VIctory@test/gpu-pipeline-make` - **Commit**: `geiyiliyabumo/VIctory@76291ef` (based on `main` `ffe310e`) ### Tests Added (`crates/victory-gpu/src/pipeline/make.rs`) - Key identity across shaders and all 10 `GraphicsState::read` state components. - Queue-once accounting, sticky refusal suppression (no re-queue after refusal, excluded from early-start list), `early` cache-list handling, per-frame wait budget, and all three `missing()` diagnostics answers. ### Verification (Windows 11 x64 MSVC) - `rustfmt --edition 2024 --check crates/victory-gpu/src/pipeline/make.rs`: **PASS** - `cargo xtask policy`: **PASS** (`154 files ok`) - `cargo clippy -p victory-gpu --all-targets --locked -- -D warnings` (default + `--features diagnostics`): **PASS** (0 warnings) - `cargo test -p victory-gpu --locked -- pipeline::make::`: **9/9 PASS** (`--features diagnostics`: **12/12 PASS**) *AI-assisted; synthetic tests only, no game files.*
Marvisak commented 2026-11-25 07:03:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T07:00:38Z.


Automated triage for the maintainers.

These are test-only additions for crates/victory-gpu/src/pipeline/make.rs (production code unchanged), not a defect report. The branch is open as PR #1203, which is where review happens; whether to take it is for the maintainers. pipeline/make.rs has changed since ffe310e, so the PR may need a rebase.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7155390030 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1051#issuecomment-7155390030). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T07:00:38Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T09:37:59Z at=2026-11-25T09:50:38Z --> Automated triage for the maintainers. These are test-only additions for `crates/victory-gpu/src/pipeline/make.rs` (production code unchanged), not a defect report. The branch is open as PR #1203, which is where review happens; whether to take it is for the maintainers. `pipeline/make.rs` has changed since `ffe310e`, so the PR may need a rebase. --- _Generated by [Claude Code](https://claude.ai/code)_
StExpeditus commented 2026-11-25 10:07:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:37:02Z.


Validated the fork branch on Windows 11 Pro 26200 (Intel Core i5-14600K, RTX 5060 Ti, driver 621.24, Rust 1.98.1 MSVC), commit f38bd8f: cargo test -p victory-gpu --locked --no-fail-fast -> 148 passed, 2 failed, 2 ignored. Failed: test descriptor::host::tests::dynamic_slots_are_held_until_released ... FAILED | test memory::tests::lists_share_a_table_and_copies_keep_their_views ... FAILED Synthetic tests only, no game files.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158571871 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1051#issuecomment-7158571871). Originally posted by [StExpeditus](https://github.com/StExpeditus) on 2026-11-25T09:37:02Z. --- Validated the fork branch on Windows 11 Pro 26200 (Intel Core i5-14600K, RTX 5060 Ti, driver 621.24, Rust 1.98.1 MSVC), commit `f38bd8f`: `cargo test -p victory-gpu --locked --no-fail-fast` -> **148 passed, 2 failed, 2 ignored**. Failed: test descriptor::host::tests::dynamic_slots_are_held_until_released ... FAILED | test memory::tests::lists_share_a_table_and_copies_keep_their_views ... FAILED Synthetic tests only, no game files.
StExpeditus commented 2026-11-25 10:07:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:37:59Z.


Addendum: the 2 failures (dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views) are the pre-existing NVIDIA 1M-view-heap-cap failures that also fail on current main; nothing introduced by this patch fails. The delta vs current main is confined to pipeline/make.rs, so it applies cleanly.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7158592997 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/1051#issuecomment-7158592997). Originally posted by [StExpeditus](https://github.com/StExpeditus) on 2026-11-25T09:37:59Z. --- Addendum: the 2 failures (`dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views`) are the pre-existing NVIDIA 1M-view-heap-cap failures that also fail on current main; nothing introduced by this patch fails. The delta vs current main is confined to `pipeline/make.rs`, so it applies cleanly.
Sign in to join this conversation.
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#1051
No description provided.