[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`.
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
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
TrustNo1/Darner!229
No description provided.