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

Closed
aarushkha wants to merge 1 commit from upstream-pr/1032 into main
aarushkha commented 2026-11-24 10:35:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by aarushkha on 2026-11-24T10:35:16Z.


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

<!-- greyfinch-sync:ivall/xcl:issue:6579855079 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1032). Originally posted by [aarushkha](https://github.com/aarushkha) on 2026-11-24T10:35:16Z. --- 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)
upstream-sync closed this pull request 2026-11-24 11:05:30 +00:00
aarushkha commented 2026-11-24 11:05:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by aarushkha on 2026-11-24T10:36:25Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7129004488 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1032#issuecomment-7129004488). Originally posted by [aarushkha](https://github.com/aarushkha) on 2026-11-24T10:36:25Z. --- Closing as a duplicate: #597 already runs `scripts/test_*.py` in CI, and #1019 was opened for #1000 before this.

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!1025
No description provided.