Rig launcher tests: the preload row test passes on a CPU with one kind of core #2851

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

@⁠breachato on GitHub · 2026-11-29 18:08 UTC · original
breachato:rig-tests-one-kind-of-core → main · +5 −2 · 1 files · 1 commits · open

[pr-tests]

What it changes

scripts/tests/play-rig.Tests.ps1, the shader preload / records the run with its memory columns, keeping older rows, runs the launcher with -Try cores and asserts that the new rig-runs.csv row has Variant = cores=layer|pcores.

play-rig.ps1 only picks a cores variant when $rig.Hybrid (fast and slow cores). On any other CPU it prints -Try cores: this CPU has one kind of core; nothing to compare and records the row with no variant, which is the right behaviour, but the test then fails with Expected: {} to match the expression {^cores=(layer|pcores)$}. So the suite fails on every non-hybrid PC (most AMD CPUs, Intel before 12th gen).

The test now checks the launcher's output: with that warning it expects an empty Variant, otherwise the cores= variant as before. Test only; the launcher is unchanged.

How it was tested

  • Windows 11, AMD Ryzen 5 7430U (one kind of core), Windows PowerShell 5.1, Pester 3.4: Invoke-Pester .\scripts\tests
  • Before: this test failed.
  • After: this test passes. (On this PC, which is set to Italian, five other tests in the file fail because of the decimal comma; #2824 fixes those. Together, 13 of 13.)
  • cargo test: not applicable.

How to try it

On a PC whose CPU has one kind of core (any Ryzen, Intel before 12th gen): Invoke-Pester .\scripts\tests. records the run with its memory columns, keeping older rows fails on main and passes here. On a hybrid Intel CPU the test checks the cores= variant exactly as before.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #2824 (decimal comma in the same scripts, different lines), #2760 (edits other tests in this file).

Assisted by Claude.

**@⁠breachato** on GitHub · 2026-11-29 18:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2851) `breachato:rig-tests-one-kind-of-core` → `main` · +5 −2 · 1 files · 1 commits · open [pr-tests] ## What it changes `scripts/tests/play-rig.Tests.ps1`, `the shader preload / records the run with its memory columns, keeping older rows`, runs the launcher with `-Try cores` and asserts that the new `rig-runs.csv` row has `Variant` = `cores=layer|pcores`. `play-rig.ps1` only picks a cores variant when `$rig.Hybrid` (fast and slow cores). On any other CPU it prints `-Try cores: this CPU has one kind of core; nothing to compare` and records the row with no variant, which is the right behaviour, but the test then fails with `Expected: {} to match the expression {^cores=(layer|pcores)$}`. So the suite fails on every non-hybrid PC (most AMD CPUs, Intel before 12th gen). The test now checks the launcher's output: with that warning it expects an empty `Variant`, otherwise the `cores=` variant as before. Test only; the launcher is unchanged. ## How it was tested - Windows 11, AMD Ryzen 5 7430U (one kind of core), Windows PowerShell 5.1, Pester 3.4: `Invoke-Pester .\scripts\tests` - Before: this test failed. - After: this test passes. (On this PC, which is set to Italian, five other tests in the file fail because of the decimal comma; #2824 fixes those. Together, 13 of 13.) - `cargo test`: not applicable. ## How to try it On a PC whose CPU has one kind of core (any Ryzen, Intel before 12th gen): `Invoke-Pester .\scripts\tests`. `records the run with its memory columns, keeping older rows` fails on `main` and passes here. On a hybrid Intel CPU the test checks the `cores=` variant exactly as before. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #2824 (decimal comma in the same scripts, different lines), #2760 (edits other tests in this file). Assisted by Claude.
'records the run with its memory columns' starts the launcher with -Try
cores and expects the new row's Variant to be cores=layer or
cores=pcores. -Try cores only picks a variant when the CPU has fast and
slow cores; on others (a Ryzen 5 7430U here, most AMD parts, older
Intel ones) it warns 'this CPU has one kind of core' and the row has no
variant, so the test failed on every such PC. It now expects an empty
Variant when the launcher said so, and the cores= variant otherwise.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 18:12:25 +00:00
github-bot force-pushed github-bot/gh-2851 from 4e3bd2630c to 1fc99a31d7 2026-11-30 18:47:10 +00:00 Compare
github-bot force-pushed github-bot/gh-2851 from 1fc99a31d7 to f9731acb81 2026-12-01 14:00:23 +00:00 Compare
@ -205,1 +205,3 @@
$rows[1].Variant | Should Match '^cores=(layer|pcores)$'
# -Try cores only picks a variant on a CPU with fast and slow cores; on one with a single kind (most
# AMD parts, older Intel ones, CI runners) the launcher says so and the row has no variant.
if ($out -match 'this CPU has one kind of core') { $rows[1].Variant | Should BeNullOrEmpty }
Author
Owner

@⁠gut0to on GitHub · 2026-12-01 15:24 UTC · original

Could both CPU-topology outcomes be exercised deterministically? This assertion follows the physical CI host, so a single-kind runner never checks the cores=layer|pcores branch, and a hybrid CPU that the launcher incorrectly reports as single-kind would still pass. A mocked topology result or extracted variant-selection helper could assert both the no-variant and hybrid outcomes.

**@⁠gut0to** on GitHub · 2026-12-01 15:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2851#discussion_r4756444101) Could both CPU-topology outcomes be exercised deterministically? This assertion follows the physical CI host, so a single-kind runner never checks the cores=layer|pcores branch, and a hybrid CPU that the launcher incorrectly reports as single-kind would still pass. A mocked topology result or extracted variant-selection helper could assert both the no-variant and hybrid outcomes.
Author
Owner

@⁠gut0to on GitHub · 2026-12-01 15:24 UTC · original · reviewed

AI-assisted review: I checked this Pester assertion against the host-dependent launcher output. I used AI assistance and verified that the test follows the physical CI CPU topology.

**@⁠gut0to** on GitHub · 2026-12-01 15:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2851#pullrequestreview-6134319877) · **reviewed** AI-assisted review: I checked this Pester assertion against the host-dependent launcher output. I used AI assistance and verified that the test follows the physical CI CPU topology.
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/2851/head:github-bot/gh-2851'
git switch 'github-bot/gh-2851'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2851'
git switch 'github-bot/gh-2851'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2851'
git switch 'github-bot/gh-2851'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2851'
git switch 'main'
git merge --squash 'github-bot/gh-2851'
git switch 'main'
git merge --ff-only 'github-bot/gh-2851'
git switch 'main'
git merge 'github-bot/gh-2851'
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!2851
No description provided.