Skip to content

[upstream #1019] CI: run scripts/test_*.py before the Rust build (#1000) - #117

Closed
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1019
Closed

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1019

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Adds a Script tests step to .github/workflows/ci.yml right after checkout so scripts/test_pr_check.py (and any future scripts/test_*.py files) run on every push and PR before the Rust toolchain install and build. Previously nothing in CI ran scripts/test_pr_check.py, and PR checks (pull_request_target) runs main's copy of scripts/pr_check.py, so a PR that broke the checker still passed both workflows. Fixes xcl-dev#1000.

What is in it

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

CI time

  • Adds ~1 s to the Windows CI job (runs in 0.002 s locally; fails fast before rustup and cargo).

Tested

  • Hardware: Windows 11 Pro (build 26300), AMD Ryzen 7 250, AMD Radeon 780M Graphics (driver 32.0.21030.11004), DXC 1.8.2502.11, Python 3.12.10, rustc 1.100.0 (0ef1bc386 2026-11-09) (debug)
  • python -B -m unittest discover -s scripts -p 'test_*.py' -v: 5 ran, 5 passed, 0 failed (0.002 s, exit 0)
  • Negative control (temp copy outside the repo with runtime() returning False): 5 ran, 1 failed, exit 1
  • XCL_ADAPTER=radeon .\scripts\test.ps1 (cargo build --workspace + cargo test --workspace -- --test-threads=4): 727 passed, 0 failed, 41 ignored (0 SKIPPED GPU tests)

Not tested

  • Retail game smoke run (scripts/smoke.ps1, no crates/xcl/src runtime files changed; no retail game files on this machine)
  • NVIDIA GeForce RTX 5060 Laptop GPU (XCL_ADAPTER=nvidia) and d3d12SDKLayers.dll

AI use

  • Antigravity (Gemini 4 Neon): inspected .github/workflows/ci.yml, added the CI step, ran the script tests and full GPU test suite, and wrote this description.

Mirror of xcl-dev#1019 (auto-synced, do not edit).

.github/workflows/ci.yml previously ran only scripts/test.ps1, so
scripts/test_pr_check.py never executed in CI (and PR checks runs main's
copy of scripts/pr_check.py via pull_request_target).

Add a Script tests step right after checkout running
`python -B -m unittest discover -s scripts -p 'test_*.py' -v` so broken
script tests fail in ~1 second before installing Rust or building the
workspace, and any future scripts/test_*.py files are picked up
automatically.

Fixes xcl-dev#1000

Assisted-by: Antigravity (Gemini 4 Neon)
@ufoptg

ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner Author

Upstream PR xcl-dev#1019 was closed or merged.

@ufoptg ufoptg closed this Nov 25, 2026
@ufoptg
ufoptg deleted the upstream-pr/1019 branch November 25, 2026 00:10
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

2 participants