CI: run the scripts' unit tests (scripts/test_*.py) #1032

Closed
github-bot wants to merge 1 commit from gh-pr/1032/head into gh-pr/1032/base
Owner

@⁠aarushkha on GitHub · 2026-11-24 10:35 UTC · original
aarushkha:ci-run-script-tests → main · +5 −0 · 1 files · 1 commits · closed without merging

CI ran only scripts/test.ps1 (cargo build and cargo test), so nothing ran scripts/test_pr_check.py: a PR that broke scripts/pr_check.py still got a green CI, and the PR checks workflow runs main's checker, never the PR's. One step now runs every scripts/test_*.py with unittest discovery, before the Rust build so it fails in seconds. Fixes #1000.

What is in it

  • .github/workflows/ci.yml: a Script tests (Python) step after checkout, python -B -m unittest discover -s scripts -p 'test_*.py' -v

Tested

  • NVIDIA GeForce RTX 3060 (Windows driver 32.0.16.2101), Intel Core i5-11400F, Windows 10 22H2 (build 19045)
  • the step's command on main 9aec53d, Windows PowerShell 5.1 with Python 3.10 and from bash with Python 3.11: 3 passed, exit 0
  • the same command with runtime() in pr_check.py made to return False: 1 failed, exit 1
  • ci.yml parsed with PyYAML: the new step is the second of five, its run line as above
  • cargo test --workspace -- --test-threads=4 on main 9aec53d (this diff touches no Rust): 724 passed, 0 failed, 41 ignored; SKIPPED gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware (no wave64)

Regression run

  • not needed: no file under crates/xcl/src changes

Not tested

  • the workflow itself on GitHub's windows-2025 runner (its default shell is PowerShell 7, which I don't have here): this PR's own CI run is that test
  • git merge-tree with #279 and #287: clean. With #557, #566 and #635: a conflict, because all three add their own step at this same place (and so conflict with each other too). This step already runs their test files (test_triage_d3d12.py, test_pr_check_smoke_counters.py), so whichever lands second can drop its step.

AI use

  • Claude Code with Claude Opus 5.5: found the gap, wrote the change, the issue and this description; I reviewed the diff and ran the commands

🤖 Generated with Claude Code

**@⁠aarushkha** on GitHub · 2026-11-24 10:35 UTC · [original](https://github.com/xcl-dev/xcl/pull/1032) `aarushkha:ci-run-script-tests` → `main` · +5 −0 · 1 files · 1 commits · closed without merging CI ran only `scripts/test.ps1` (cargo build and cargo test), so nothing ran `scripts/test_pr_check.py`: a PR that broke `scripts/pr_check.py` still got a green `CI`, and the `PR checks` workflow runs main's checker, never the PR's. One step now runs every `scripts/test_*.py` with unittest discovery, before the Rust build so it fails in seconds. Fixes #1000. **What is in it** - `.github/workflows/ci.yml`: a `Script tests (Python)` step after checkout, `python -B -m unittest discover -s scripts -p 'test_*.py' -v` **Tested** - NVIDIA GeForce RTX 3060 (Windows driver 32.0.16.2101), Intel Core i5-11400F, Windows 10 22H2 (build 19045) - the step's command on main 9aec53d, Windows PowerShell 5.1 with Python 3.10 and from bash with Python 3.11: 3 passed, exit 0 - the same command with `runtime()` in `pr_check.py` made to return `False`: 1 failed, exit 1 - `ci.yml` parsed with PyYAML: the new step is the second of five, its `run` line as above - `cargo test --workspace -- --test-threads=4` on main 9aec53d (this diff touches no Rust): 724 passed, 0 failed, 41 ignored; SKIPPED `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware` (no wave64) **Regression run** - not needed: no file under `crates/xcl/src` changes **Not tested** - the workflow itself on GitHub's `windows-2025` runner (its default shell is PowerShell 7, which I don't have here): this PR's own CI run is that test - `git merge-tree` with #279 and #287: clean. With #557, #566 and #635: a conflict, because all three add their own step at this same place (and so conflict with each other too). This step already runs their test files (`test_triage_d3d12.py`, `test_pr_check_smoke_counters.py`), so whichever lands second can drop its step. **AI use** - Claude Code with Claude Opus 5.5: found the gap, wrote the change, the issue and this description; I reviewed the diff and ran the commands 🤖 Generated with [Claude Code](https://claude.com/claude-code)
CI ran only scripts/test.ps1 (cargo build and cargo test), so nothing
ran scripts/test_pr_check.py: a PR that broke scripts/pr_check.py still
got a green CI, and the PR checks workflow runs main's checker, not the
PR's. One step now runs every scripts/test_*.py with unittest discovery,
before the Rust build so it fails in seconds.

Fixes #1000

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:41:10 +00:00
github-bot closed this pull request 2026-11-26 04:41:10 +00:00
Author
Owner

@⁠aarushkha on GitHub · 2026-11-24 10:36 UTC · original

Closing as a duplicate: #597 already runs scripts/test_*.py in CI, and #1019 was opened for #1000 before this.

**@⁠aarushkha** on GitHub · 2026-11-24 10:36 UTC · [original](https://github.com/xcl-dev/xcl/pull/1032#issuecomment-7129004488) Closing as a duplicate: #597 already runs `scripts/test_*.py` in CI, and #1019 was opened for #1000 before this.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.