Skip to content

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

Closed
aarushkha wants to merge 1 commit into
xcl-dev:mainfrom
aarushkha:ci-run-script-tests
Closed

aarushkha wants to merge 1 commit into
xcl-dev:mainfrom
aarushkha:ci-run-script-tests

Conversation

@aarushkha

Copy link
Copy Markdown
Contributor

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

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

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 xcl-dev#1000

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aarushkha

Copy link
Copy Markdown
Contributor Author

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

@aarushkha aarushkha closed this Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: the PR checker's own tests (scripts/test_pr_check.py) never run

1 participant