Repository navigation
CI: run scripts/test_*.py before the Rust build (#1000) - #1019
ChalanaGimhanaX wants to merge 1 commit into
Conversation
.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)
|
Local run of the new step on Windows, the OS the Tested (Windows 11 Pro 26H2 build 26300, Python 3.12, Git Bash and Windows PowerShell 5.1)
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
I ran the proposed discovery command in PowerShell 7.6.9 on Windows 11. The exact #1019 head With DXC 1.9.2609.5 available, discovery passed 32 tests and Independently applicable test-only fix moves those three tests out of the compiler-dependent class. I repeated both commands: with the missing directory, discovery now passes 28 tests (one class skipped), and the required command runs the three independent tests and still exits 1. With DXC present the counts remain 32 and seven, both exit 0. Core i7-13700, Python 3.14.3. Local workflow commands only; no hosted Actions run, Rust build or GPU execution. OpenAI Codex (GPT-6) prepared the change and ran the checks. |
Adds a
Script testsstep to.github/workflows/ci.ymlright after checkout soscripts/test_pr_check.py(and any futurescripts/test_*.pyfiles) run on every push and PR before the Rust toolchain install and build. Previously nothing in CI ranscripts/test_pr_check.py, andPR checks(pull_request_target) runsmain's copy ofscripts/pr_check.py, so a PR that broke the checker still passed both workflows. Fixes #1000.What is in it
.github/workflows/ci.yml: add aScript testsstep (python -B -m unittest discover -s scripts -p 'test_*.py' -v) immediately afteractions/checkout@v4.CI time
rustupandcargo).Tested
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)runtime()returningFalse): 5 ran, 1 failed, exit 1XCL_ADAPTER=radeon .\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 727 passed, 0 failed, 41 ignored (0SKIPPEDGPU tests)Not tested
scripts/smoke.ps1, nocrates/xcl/srcruntime files changed; no retail game files on this machine)XCL_ADAPTER=nvidia) andd3d12SDKLayers.dllAI use
.github/workflows/ci.yml, added the CI step, ran the script tests and full GPU test suite, and wrote this description.