CI: run scripts/test_*.py before the Rust build (#1000) #1019
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1019
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1019"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ChalanaGimhanaX on GitHub · 2026-11-24 10:25 UTC · original
ChalanaGimhanaX:ci/run-script-tests→main· +4 −0 · 1 files · 1 commits · openAdds 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.@fromthemoonx on GitHub · 2026-11-24 11:36 UTC · original
Local run of the new step on Windows, the OS the
CIjob uses.Tested (Windows 11 Pro 26H2 build 26300, Python 3.12, Git Bash and Windows PowerShell 5.1)
94fa47bc61bb7b3247970d53a421491accae77edmerged onto currentmain47efa2e(no conflict). The step's exact command,python -B -m unittest discover -s scripts -p 'test_*.py' -v, from the repository root: 9 tests, OK, exit 0. It foundscripts/test_pr_check.py, which now includes the #964 and #965 tests.pwsh, which isn't installed here): 9 tests, OK,$LASTEXITCODE0. The single-quoted glob reaches Python as a pattern.runtime()inscripts/pr_check.pychanged to always returnFalse(local change only), the command reportsFAILED (failures=1)and exits 1, so the step would fail the job.Not tested
pwsh7 specifically.scripts.ymlworkflow for the same tests (with apaths:filter). #1000 was closed as its duplicate, and #597 currently conflicts withmaininscripts/test_pr_check.py. Probably only one of the two is wanted.AI use
@DavidM1911 on GitHub · 2026-11-25 09:17 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@RavenCurseBurg on GitHub · 2026-11-26 00:36 UTC · original · edited 2026-11-26 00:43 UTC
I ran the proposed discovery command in PowerShell 7.6.9 on Windows 11. The exact #1019 head
94fa47bc61bb7b3247970d53a421491accae77edpassed its five Python tests. I then combined it with #2575 at0723b118cbafabb3c2200b0c9680e2a874335310. Discovery runs before the Rust install; #2575's required-DXC command runs after the build.With DXC 1.9.2609.5 available, discovery passed 32 tests and
python -B scripts/test_dxil_semantics.py --require-dxcpassed seven. WithXCL_DXC_DIRpointing to a missing directory, discovery passed 25 tests but skipped three inspector tests that need no compiler. The required command failed before running any tests.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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.