Repository navigation
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)
Owner
Author
|
Upstream PR xcl-dev#1019 was closed or merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 xcl-dev#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.Mirror of xcl-dev#1019 (auto-synced, do not edit).