CI: run scripts/test-native-stderr.tests.ps1 under PowerShell 5.1 and 7 #279
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!279
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-279"
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?
@sombraSoft on GitHub · 2026-11-23 22:17 UTC · original
sombraSoft:ci/script-tests→main· +18 −1 · 1 files · 1 commits · openCI never runs
scripts/test-native-stderr.tests.ps1, the test that checksscripts/test.ps1survives a native Cargo writing to stderr (which Windows PowerShell 5.1 treats as an error once it is redirected). A newscriptsjob runs it on every push and pull request, under bothpowershell(5.1) andpwsh, without a Rust build (~16 s).Part of #265
What is in it
.github/workflows/ci.yml: a newscriptsjob (windows-2025, 10-minute timeout) with two steps,shell: powershellandshell: pwsh, each running./scripts/test-native-stderr.tests.ps1. The header comment lists the new check.CI time
scriptsjob runs in parallel and takes 16 s, with no Rust build.Tested
pwsh -NoProfile -File scripts/test-native-stderr.tests.ps1andpowershell -NoProfile -ExecutionPolicy Bypass -File ...(5.1.26100) both exit 0. With one assertion changed to fail (not committed), both exit 1.scriptsjob passed (both steps) andBuild and test (Windows, no GPU)passed.main(9ab7d76), RTX 3060 Ti (driver 621.24), Ryzen 9 5900X, Windows 11, rustc 1.97.1, debug:scripts/test.ps1→ 651 passed, 0 failed, 40 ignored; SKIPPED: 2 (no wave64). This PR changes only CI config, so the compiled code is the same.Regression run
crates/xcl/srcchange.Not tested
AI use
@itsonewi on GitHub · 2026-11-25 10:39 UTC · original
Could the new
scriptsjob also runscripts/smoke-title.tests.ps1? It is the other*.tests.ps1inscripts/and nothing runs it in CI either; it checks thetitle:hash from #677 (the privacy guarantee that a smoke block does not name the game folder). Its header says it runs underpowershell.exeorpwsh.exe, so the same two steps could run both files, or the job could runGet-ChildItem scripts/*.tests.ps1in each shell. That would make the job cover the script tests rather than one file.No change needed for this PR if you would rather keep it to
test-native-stderr.tests.ps1; in that case I can file thesmoke-titlegap separately.@DavidM1911 on GitHub · 2026-11-25 15:03 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@RavenCurseBurg on GitHub · 2026-11-25 19:05 UTC · original · edited 2026-11-25 19:11 UTC
I tested the smoke-title coverage requested above. This PR's head
5ff43decontains only the native-stderr fixture. The title fixture is present onmainat2898511af1c0. The tested merge commit has those two parents and adds a separate smoke-title step in each shell. The PR branch can fast-forward to it.From the clean merge I read the four shell/command pairs from
.github/workflows/ci.ymland ran each script using its declared shell,-NoProfile -NonInteractive -ExecutionPolicy Bypass -File. Bothscripts/test-native-stderr.tests.ps1andscripts/smoke-title.tests.ps1exited 0 on Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. In temporary copies I then changed one expected title hash and one expected skip summary. Each corresponding step exited 1 in both shells with the expected assertion. The original files stayed clean.Windows 11 build 26100.9711, i7-13700. Local execution of the job's scripts with synthetic fixtures only. No hosted Actions job, branch-protection change, retail game or GPU run. OpenAI Codex (GPT-6) edited the workflow and ran the checks.
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.