Repository navigation
DevEx: add local CI check runner script and update contributor guide - #803
sombraSoft wants to merge 3 commits into
Conversation
77ecc5d to
db51f20
Compare
|
Reviewed db51f20: 1 finding
CONTRIBUTING.md claims check out ( Ran (on this branch merged with Review was AI-assisted (Claude Code). |
|
One addition to the unit-test bullet, from running the suite on Windows today: installing
18 of the files under
Everything else in this PR reads right to me; the runtime and rpf9dump additions match what I had to discover by hand. AI-assisted. |
|
Good catch on both points, @kotorvr — fixed in
Verified locally on Windows 11 (plain PowerShell, MSVC 19.51 / VS Build Tools CMake):
|
|
Good catch on |
0fa076b to
290101e
Compare
|
Tested 290101e merged onto current In a venv with
Setup note: Microsoft Store Python with user-site packages. I ran with the system
CI and a venv don't hit this, and it isn't caused by this PR. But since the runner is the "one command before a PR" entry point, a line in
AI-assisted (Claude Code). |
290101e to
045cd98
Compare
|
Reviewed 045cd98: looks good. My finding from db51f20 is fixed. Without presets (main has no |
Static review — PR #803Branch: devex/run-checks-and-docs (head of PR #803) What it doesDevEx / CI local check runner:
Reviewer recommendationApprove (static review). Well-structured check runner with sensible defaults, opt-in checks for heavy toolchains (runtime, dotnet, lint), clean skip behavior when optional tools are missing, and comprehensive unit tests. All 16 tests pass, compileall clean, script runs end-to-end. Note: PR is marked CONFLICTING on GitHub — the author needs to rebase on CPU test results
AI-assisted. Reviewed with Claude Code. |
Summary
Part 4 of #799 (independent of #800-#802; base:
main).Makes running local pre-PR checks a single cross-platform command matching CI and updates
CONTRIBUTING.mdto match current CI tooling:scripts/run_checks.py(stdlib-only, works withpython -I, Windows-first, no bash required):no-game-data,compileall,help,stdlib-tests(recursivetests/**/test_*.pyexcludingtests/semantic/),pytest(exact complement +test_tex_headersparity node; skips withpip install -r tests/requirements.txthint if not installed),semantic,viewer(tests/test_*.cjs),dotnet(rpf9dump+Rpf9DumpDiagnostics; skips cleanly with submodule hint if uninitialized).--runtime(auto-detectsruntime/CMakePresets.jsonwhen present, otherwise falls back cleanly toscripts/build_runtime.ps1/cmake+ctest) and--lint(runsjactionlintusing the profile configured in.github/workflows/jactionlint.yml).--list,--only,--skip,--runtime,--lint,--strict,--fail-fast,-v/--verbose, with aPASS/SKIP/FAILtiming summary.tests/test_run_checks.py: 13 stdlibunittestcases verifying recursive discovery, exact disjointstdlib-tests/pytestpartition parity across the repo,no-game-dataregex,jactionlintprofile parsing, OS preset selection, and CLI flag parsing.CONTRIBUTING.md: documentscripts/run_checks.py,pip install -r tests/requirements.txt,Rpf9DumpDiagnostics,-DLEONIDA_D3D12_SHIM_TESTS=ONand header-onlyVULKAN_SDK,compileallonscripts, andjactionlint.Tested
python -m compileall -q make_game.py tools tests scripts: exit 0.python -I tests/test_run_checks.py: 13/13 pass.python -I scripts/run_checks.py --only no-game-data,compileall,help,viewer,semantic: 5/5 pass.77ecc5d:No Game Data: https://github.com/sombraSoft/Leonida/actions/runs/44978660757 (pass).CI: https://github.com/sombraSoft/Leonida/actions/runs/44978660751 (change-scope,translator-tests,viewer-tests,semantic-testswindows/ubuntu, and all Python stdlib tests incheckincl.tests/test_run_checks.pypass;Build rpf9dumphits pre-existingmain67204bfCS1061 ResourceDrawableOffseterror also seen on unmodifiedmainrun https://github.com/sombraSoft/Leonida/actions/runs/44978236880).Notes