CI: run scripts/test-native-stderr.tests.ps1 under PowerShell 5.1 and 7 #276

Closed
sombraSoft wants to merge 1 commit from upstream-pr/279 into main
sombraSoft commented 2026-11-23 22:17:08 +00:00 (Migrated from github.com)

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 checks scripts/test.ps1 survives a native Cargo writing to stderr (which Windows PowerShell 5.1 treats as an error once it is redirected). A new scripts job runs it on every push and pull request, under both powershell (5.1) and pwsh, without a Rust build (~16 s).

Part of #265

What is in it

  • .github/workflows/ci.yml: a new scripts job (windows-2025, 10-minute timeout) with two steps, shell: powershell and shell: pwsh, each running ./scripts/test-native-stderr.tests.ps1. The header comment lists the new check.

CI time

  • 0 wall time: the scripts job runs in parallel and takes 16 s, with no Rust build.

Tested

  • Local, Windows 11: pwsh -NoProfile -File scripts/test-native-stderr.tests.ps1 and powershell -NoProfile -ExecutionPolicy Bypass -File ... (5.1.26100) both exit 0. With one assertion changed to fail (not committed), both exit 1.
  • Fork run of the same commit: https://github.com/sombraSoft/xcl/actions/runs/45276467450. The scripts job passed (both steps) and Build and test (Windows, no GPU) passed.
  • Full suite on 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

  • Not needed: no crates/xcl/src change.

Not tested

  • The new job only gates merges if it is added to the required checks in branch protection.

AI use

  • Claude Code (Claude Sonnet 5.5) wrote the change; Claude Code (Claude Opus 5.5) reviewed it and wrote this description; I read the diff.
<!-- greyfinch-sync:ivall/xcl:issue:5462183293 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/279). Originally posted by [sombraSoft](https://github.com/sombraSoft) on 2026-11-23T22:17:08Z. --- CI never runs `scripts/test-native-stderr.tests.ps1`, the test that checks `scripts/test.ps1` survives a native Cargo writing to stderr (which Windows PowerShell 5.1 treats as an error once it is redirected). A new `scripts` job runs it on every push and pull request, under both `powershell` (5.1) and `pwsh`, without a Rust build (~16 s). Part of #265 **What is in it** - `.github/workflows/ci.yml`: a new `scripts` job (windows-2025, 10-minute timeout) with two steps, `shell: powershell` and `shell: pwsh`, each running `./scripts/test-native-stderr.tests.ps1`. The header comment lists the new check. **CI time** - 0 wall time: the `scripts` job runs in parallel and takes 16 s, with no Rust build. **Tested** - Local, Windows 11: `pwsh -NoProfile -File scripts/test-native-stderr.tests.ps1` and `powershell -NoProfile -ExecutionPolicy Bypass -File ...` (5.1.26100) both exit 0. With one assertion changed to fail (not committed), both exit 1. - Fork run of the same commit: https://github.com/sombraSoft/xcl/actions/runs/45276467450. The `scripts` job passed (both steps) and `Build and test (Windows, no GPU)` passed. - Full suite on `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** - Not needed: no `crates/xcl/src` change. **Not tested** - The new job only gates merges if it is added to the required checks in branch protection. **AI use** - Claude Code (Claude Sonnet 5.5) wrote the change; Claude Code (Claude Opus 5.5) reviewed it and wrote this description; I read the diff.
itsonewi commented 2026-11-25 11:09:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by itsonewi on 2026-11-25T10:39:30Z.


Could the new scripts job also run scripts/smoke-title.tests.ps1? It is the other *.tests.ps1 in scripts/ and nothing runs it in CI either; it checks the title: hash from #677 (the privacy guarantee that a smoke block does not name the game folder). Its header says it runs under powershell.exe or pwsh.exe, so the same two steps could run both files, or the job could run Get-ChildItem scripts/*.tests.ps1 in 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 the smoke-title gap separately.

<!-- greyfinch-sync:ivall/xcl:comment:7159996647 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/279#issuecomment-7159996647). Originally posted by [itsonewi](https://github.com/itsonewi) on 2026-11-25T10:39:30Z. --- Could the new `scripts` job also run `scripts/smoke-title.tests.ps1`? It is the other `*.tests.ps1` in `scripts/` and nothing runs it in CI either; it checks the `title:` hash from #677 (the privacy guarantee that a smoke block does not name the game folder). Its header says it runs under `powershell.exe` or `pwsh.exe`, so the same two steps could run both files, or the job could run `Get-ChildItem scripts/*.tests.ps1` in 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 the `smoke-title` gap separately.
DavidM1911 commented 2026-11-25 15:08:06 +00:00 (Migrated from github.com)

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!

<!-- greyfinch-sync:ivall/xcl:comment:7166238533 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/279#issuecomment-7166238533). Originally posted by [DavidM1911](https://github.com/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!
RavenCurseBurg commented 2026-11-25 19:09:19 +00:00 (Migrated from github.com)

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 5ff43de contains only the native-stderr fixture. The title fixture is present on main at 2898511af1c0. 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.yml and ran each script using its declared shell, -NoProfile -NonInteractive -ExecutionPolicy Bypass -File. Both scripts/test-native-stderr.tests.ps1 and scripts/smoke-title.tests.ps1 exited 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.

<!-- greyfinch-sync:ivall/xcl:comment:7171806387 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/279#issuecomment-7171806387). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T19:05:28Z. --- I tested the smoke-title coverage requested above. This PR's head `5ff43de` contains only the native-stderr fixture. The title fixture is present on `main` at `2898511af1c0`. The [tested merge commit](https://github.com/RavenCurseBurg/xcl/commit/e4a29a05f1446b094419d658ee8b612a8b8358ac) 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.yml` and ran each script using its declared shell, `-NoProfile -NonInteractive -ExecutionPolicy Bypass -File`. Both `scripts/test-native-stderr.tests.ps1` and `scripts/smoke-title.tests.ps1` exited 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.
github-actions[bot] commented 2026-11-30 08:39:21 +00:00 (Migrated from github.com)

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 stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7273177782 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/279#issuecomment-7273177782). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-30T08:39:21Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 03:03:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:03:48Z.


Triage (#1607) – head 5ff43de

No open or merged PR runs scripts/test-native-stderr.tests.ps1 in CI; #1019 adds scripts/test_*.py (Python) to CI, a different script set.
No problems found in the diff; the scripts job runs the test under both powershell (5.1) and pwsh without a Rust build. Conflicts with main's ci.yml.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7299281194 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/279#issuecomment-7299281194). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T03:03:48Z. --- **Triage (#1607)** – head 5ff43de No open or merged PR runs `scripts/test-native-stderr.tests.ps1` in CI; #1019 adds `scripts/test_*.py` (Python) to CI, a different script set. No problems found in the diff; the `scripts` job runs the test under both `powershell` (5.1) and `pwsh` without a Rust build. Conflicts with main's `ci.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

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
xcl-dev/xcl!276
No description provided.