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

Open
opened 2026-11-26 04:18:25 +00:00 by github-bot · 3 comments
Owner

@⁠geiyiliyabumo on GitHub · 2026-11-24 15:16 UTC · original

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.

**@⁠geiyiliyabumo** on GitHub · 2026-11-24 15:16 UTC · [original](https://github.com/Marvisak/VIctory/issues/1051) ### 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.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:18:25 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 07:00 UTC · original · edited 2026-11-25 09:59 UTC

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

**@⁠Marvisak** on GitHub · 2026-11-25 07:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/1051#issuecomment-7155390030) · edited 2026-11-25 09:59 UTC <!-- 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)_
Author
Owner

@⁠StExpeditus on GitHub · 2026-11-25 09:37 UTC · original

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** on GitHub · 2026-11-25 09:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/1051#issuecomment-7158571871) 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.
Author
Owner

@⁠StExpeditus on GitHub · 2026-11-25 09:37 UTC · original

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.

**@⁠StExpeditus** on GitHub · 2026-11-25 09:37 UTC · [original](https://github.com/Marvisak/VIctory/issues/1051#issuecomment-7158592997) 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.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#1051
No description provided.