CI: run scripts/test-native-stderr.tests.ps1 under PowerShell 5.1 and 7 #276
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by sombraSoft on 2026-11-23T22:17:08Z.
CI 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
Imported from ivall/xcl. Originally posted by itsonewi on 2026-11-25T10:39:30Z.
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.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T15:03:35Z.
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!
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T19:05:28Z.
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.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:39:21Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:03:48Z.
Triage (#1607) – head
5ff43deNo open or merged PR runs
scripts/test-native-stderr.tests.ps1in CI; #1019 addsscripts/test_*.py(Python) to CI, a different script set.No problems found in the diff; the
scriptsjob runs the test under bothpowershell(5.1) andpwshwithout a Rust build. Conflicts with main'sci.yml.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Pull request closed