CI: run scripts/test_*.py before the Rust build (#1000) #1012
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by ChalanaGimhanaX on 2026-11-24T10:25:27Z.
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.Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T11:36:30Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:17:07Z.
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!
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T00:36:01Z.
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.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:40:34Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:38:23Z.
Triage (#1607) – head
94fa47b#597 targets the same gap (#1000, closed as a duplicate of #597): it adds a separate path-filtered
scripts.ymlworkflow on ubuntu, plus ascripts/test_pr_check.pythat main has since gained, which is why #597 now conflicts. This PR adds one step to the Windows CI job that runs everyscripts/test_*.py. It is mergeable, green, and covers all eight script test files on main.No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.