Pool test: threads that stage at once check the pieces given, not that all 64 were (flaky on card-less runners) #4699

Open
github-bot wants to merge 1 commit from github-bot/gh-4698 into main AGit
Owner

@⁠KruIN689 on GitHub · 2026-12-01 02:20 UTC · original
KruIN689:up/staging-at-once → main · +8 −1 · 1 files · 1 commits · open

Fixes #

What it changes

pool::tests::threads_that_stage_at_once_get_zeroed_pieces_of_their_own asks for 8 × 8 × 8 MiB of staging at once from 8 threads. On a card-less CI runner the host now and then refuses part of that, staging answers None (which it may), and the test failed on assert_eq!(pieces.len(), 8).

The test now checks what it is about on the pieces that were given: each starts as zeros, and each is its own thread's. It also requires at least 16 pieces over all threads, so more than one block was still made at once. Test-only.

How it was tested

  • GPU and profile: RTX 5080 (driver 621.40), Windows 11; not applicable to a game profile.
  • Before: failed on our fork's CI runner twice (pool.rs: assert_eq!(pieces.len(), 8)); passes on a real card.
  • After: 5/5 runs pass on the RTX 5080, where all 64 pieces are given and every check runs.
  • cargo test passed for the crates it touches: yes (this test); cargo clippy -p victory-gpu --all-targets -- -D warnings clean on our fork. On main it stops at #4635's font.rs / menu.rs lints, which are not from this.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: none for this test.

AI use: Claude Code (Claude Opus 5.5) found and fixed it; posted with the account owner's approval. Label: [pr-tests].

**@⁠KruIN689** on GitHub · 2026-12-01 02:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4698) `KruIN689:up/staging-at-once` → `main` · +8 −1 · 1 files · 1 commits · open Fixes # ## What it changes `pool::tests::threads_that_stage_at_once_get_zeroed_pieces_of_their_own` asks for 8 × 8 × 8 MiB of staging at once from 8 threads. On a card-less CI runner the host now and then refuses part of that, `staging` answers `None` (which it may), and the test failed on `assert_eq!(pieces.len(), 8)`. The test now checks what it is about on the pieces that were given: each starts as zeros, and each is its own thread's. It also requires at least 16 pieces over all threads, so more than one block was still made at once. Test-only. ## How it was tested - GPU and profile: RTX 5080 (driver 621.40), Windows 11; not applicable to a game profile. - Before: failed on our fork's CI runner twice (`pool.rs: assert_eq!(pieces.len(), 8)`); passes on a real card. - After: 5/5 runs pass on the RTX 5080, where all 64 pieces are given and every check runs. - `cargo test` passed for the crates it touches: yes (this test); `cargo clippy -p victory-gpu --all-targets -- -D warnings` clean on our fork. On main it stops at #4635's `font.rs` / `menu.rs` lints, which are not from this. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: none for this test. AI use: Claude Code (Claude Opus 5.5) found and fixed it; posted with the account owner's approval. Label: [pr-tests].
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 02:25:23 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/4699/head:github-bot/gh-4698'
git switch 'github-bot/gh-4698'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4698'
git switch 'github-bot/gh-4698'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4698'
git switch 'github-bot/gh-4698'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4698'
git switch 'main'
git merge --squash 'github-bot/gh-4698'
git switch 'main'
git merge --ff-only 'github-bot/gh-4698'
git switch 'main'
git merge 'github-bot/gh-4698'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!4699
No description provided.