Rig launcher tests: the preload row test passes on a CPU with one kind of core #2851
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2851
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2851"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 coresand asserts that the newrig-runs.csvrow hasVariant=cores=layer|pcores.play-rig.ps1only 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 compareand records the row with no variant, which is the right behaviour, but the test then fails withExpected: {} 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 thecores=variant as before. Test only; the launcher is unchanged.How it was tested
Invoke-Pester .\scripts\testscargo 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 rowsfails onmainand passes here. On a hybrid Intel CPU the test checks thecores=variant exactly as before.Checked for overlap
Assisted by Claude.
4e3bd2630cto1fc99a31d71fc99a31d7tof9731acb81@ -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 }@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 · 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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.