[pr-tests][startup] Check launcher run history on uniform and hybrid CPUs #229

Open
superhero-520 wants to merge 1 commit from superhero-520/Darner:test-launcher-cpu-topology into main
First-time contributor

Contributor role (optional)

Role already held.

What it changes

On main, the run-history Pester test expects a cores= tag even when -Try cores correctly skips the comparison on a CPU with one kind of core. This reproduced on a Ryzen 7 5800H.

The test now uses the launcher's CPU summary to select the expected outcome. On a uniform CPU it checks for an empty CSV variant and the skip message. On a hybrid CPU the seeded history gives both choices zero tagged runs, so it checks for cores=layer and the corresponding A/B message. A missing or contradictory CPU summary fails the test.

How it was tested

  • Tested file matches commit 086dbd5430ca1fd6e898c8d9ab68d4124aa855c1, based on f3840d73d3504c30218debfbc8795b9225447317.
  • Windows PowerShell 5.1, Pester 3.4.0, Ryzen 7 5800H. Invoke-Pester -Script ./scripts/tests/play-rig.Tests.ps1 -TestName 'the shader preload' passed 3/3. The full play-rig.Tests.ps1 passed 17/17, with zero skipped.
  • The original test failed on this same machine. A separate simulation checked the hybrid tie, wrong tags and conflicting launcher messages. Physical hybrid CPU coverage is still open.
  • cargo xtask policy passed (555 files). Both workspace Clippy gates passed with warnings denied. The full Rust workspace suite was not rerun for this PowerShell test change.

Checklist

  • Tests only. The launcher fixture uses a fake executable and requires no game data.
  • One change based on main.
  • The diff follows docs/asset-policy.md.
  • Depends on: none.

Checked for overlap

  • Searched the open PRs and issues for the assertion and changed file.
  • #213 reports the baseline failure. No overlapping fix found.
## Contributor role (optional) Role already held. ## What it changes On main, the run-history Pester test expects a `cores=` tag even when `-Try cores` correctly skips the comparison on a CPU with one kind of core. This reproduced on a Ryzen 7 5800H. The test now uses the launcher's CPU summary to select the expected outcome. On a uniform CPU it checks for an empty CSV variant and the skip message. On a hybrid CPU the seeded history gives both choices zero tagged runs, so it checks for `cores=layer` and the corresponding A/B message. A missing or contradictory CPU summary fails the test. ## How it was tested - Tested file matches commit `086dbd5430ca1fd6e898c8d9ab68d4124aa855c1`, based on `f3840d73d3504c30218debfbc8795b9225447317`. - Windows PowerShell 5.1, Pester 3.4.0, Ryzen 7 5800H. `Invoke-Pester -Script ./scripts/tests/play-rig.Tests.ps1 -TestName 'the shader preload'` passed 3/3. The full `play-rig.Tests.ps1` passed 17/17, with zero skipped. - The original test failed on this same machine. A separate simulation checked the hybrid tie, wrong tags and conflicting launcher messages. Physical hybrid CPU coverage is still open. - `cargo xtask policy` passed (555 files). Both workspace Clippy gates passed with warnings denied. The full Rust workspace suite was not rerun for this PowerShell test change. ## Checklist - [x] Tests only. The launcher fixture uses a fake executable and requires no game data. - [x] One change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] Depends on: none. ## Checked for overlap - [x] Searched the open PRs and issues for the assertion and changed file. - #213 reports the baseline failure. No overlapping fix found.
Author
First-time contributor

Follow-up on 086dbd5430ca1fd6e898c8d9ab68d4124aa855c1: the same Pester test file also passed all three the shader preload cases with an 8+8 hybrid topology injected into a private copy of the launcher. The run-history case passed in 17.55 s. Native Windows PowerShell 5.1 on the Ryzen 7 5800H passed all 17 launcher tests. A physical hybrid CPU is the remaining coverage gap. If you would like a tester to run the focused Pester group there, please mark this commit testcall-ok.

Follow-up on `086dbd5430ca1fd6e898c8d9ab68d4124aa855c1`: the same Pester test file also passed all three `the shader preload` cases with an 8+8 hybrid topology injected into a private copy of the launcher. The run-history case passed in 17.55 s. Native Windows PowerShell 5.1 on the Ryzen 7 5800H passed all 17 launcher tests. A physical hybrid CPU is the remaining coverage gap. If you would like a tester to run the focused Pester group there, please mark this commit `testcall-ok`.
Contributor

Test report for 086dbd543 (base f3840d73d).

A second machine next to the author's 5800H: Ryzen 7 5800X, 8 cores / 16 threads (one core type, no E-cores, per AMD's spec). Windows 11 Pro Insider 26320. Windows PowerShell 5.1, Pester 3.4.0. No darner.exe running during the runs.

Invoke-Pester -Script ./scripts/tests/play-rig.Tests.ps1:

  • main (f3840d73d): 16 passed, 1 failed: "records the run with its memory columns, keeping older rows", Expected: {} to match the expression {^cores=(layer|pcores)$}.
  • PR head (086dbd543): 17 passed, 0 failed.

So on a uniform-core CPU, main's test fails and this PR fixes it.

Not tested: a hybrid CPU, cargo, the game.

This comment was written with AI assistance (Claude Code).

Test report for 086dbd543 (base f3840d73d). A second machine next to the author's 5800H: Ryzen 7 5800X, 8 cores / 16 threads (one core type, no E-cores, per AMD's spec). Windows 11 Pro Insider 26320. Windows PowerShell 5.1, Pester 3.4.0. No darner.exe running during the runs. `Invoke-Pester -Script ./scripts/tests/play-rig.Tests.ps1`: - main (f3840d73d): 16 passed, 1 failed: "records the run with its memory columns, keeping older rows", `Expected: {} to match the expression {^cores=(layer|pcores)$}`. - PR head (086dbd543): 17 passed, 0 failed. So on a uniform-core CPU, main's test fails and this PR fixes it. Not tested: a hybrid CPU, cargo, the game. This comment was written with AI assistance (Claude Code).
This pull request can be merged automatically.
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 'test-launcher-cpu-topology:superhero-520-test-launcher-cpu-topology'
git switch 'superhero-520-test-launcher-cpu-topology'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'superhero-520-test-launcher-cpu-topology'
git switch 'superhero-520-test-launcher-cpu-topology'
git rebase 'main'
git switch 'main'
git merge --ff-only 'superhero-520-test-launcher-cpu-topology'
git switch 'superhero-520-test-launcher-cpu-topology'
git rebase 'main'
git switch 'main'
git merge --no-ff 'superhero-520-test-launcher-cpu-topology'
git switch 'main'
git merge --squash 'superhero-520-test-launcher-cpu-topology'
git switch 'main'
git merge --ff-only 'superhero-520-test-launcher-cpu-topology'
git switch 'main'
git merge 'superhero-520-test-launcher-cpu-topology'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
TrustNo1/Darner!229
No description provided.