Skip to content

docs: name the tool and runtime-test switches the env-var check missed - #9668

Closed
colpartdavidmichel-web wants to merge 1 commit into
ProjectLeonida:mainfrom
colpartdavidmichel-web:docs-env-tool-switches
Closed

colpartdavidmichel-web wants to merge 1 commit into
ProjectLeonida:mainfrom
colpartdavidmichel-web:docs-env-tool-switches

Conversation

@colpartdavidmichel-web

Copy link
Copy Markdown
Contributor

Claimed in #9522: #9522 (comment)

tests/test_docs_env_vars.py only scanned runtime/src, runtime/shims and make_game.py. Switches read by runtime/test, tools/ and scripts/ never had to appear in a document, so python -I tests/test_docs_env_vars.py stayed green while LEONIDA_VK_HARNESS, LEONIDA_SKIP_SPEC_CHECK and the runtime-test knobs were unnamed.

This names each of them in docs/testing.md and extends the scan to those trees. LEONIDA_TLS_GA_PATCH is included because the existing scan is already red on main without it. #9502 and #9300 describe that switch in runtime/README.md; if one of those lands first, this paragraph can go.

python -I tests/test_docs_env_vars.py

4 tests, OK, on Windows, Python 3.12. No game files, no GPU.

AI-assisted (Cursor agent).

The check only scanned the loader and make_game.py, so a switch read by a runtime test or a tool could stay undocumented.

Co-authored-by: Cursor <cursoragent@cursor.com>
@catminou4

Copy link
Copy Markdown
Contributor

Tested edd95cd on macOS 26 arm64, Python 3.12, CPU only, no game files: pass. python -I tests/test_docs_env_vars.py — 4 tests OK on this head, while the same file FAILS (1 failure) on main (5d74c272) on macOS; this PR fixes that failure.. AI-assisted (Devin).

@molodayamama

Copy link
Copy Markdown
Contributor

Independent Windows check on edd95cdce2e92ed96aa4dfb17fa817ede1b98562

python -I tests/test_docs_env_vars.py passed (4 passed). This exercised the documentation environment-variable consistency suite. The run used the repository's test fixtures. I did not verify live game execution or GPU behavior.

AI-assisted check.

@WingsOfCobra

Copy link
Copy Markdown

checked: #9668edd95cd | with: python -I tests/test_docs_env_vars.py and python -I scripts/check_no_game_data.py | on: macOS 26.6.2 (Apple Silicon), Python 3.14.7, CPU only, no game data | result: pass

tests/test_docs_env_vars.py: 4 tests, OK on this head.

Same file on main@5d74c27: fails with ('LEONIDA_TLS_GA_PATCH', 'runtime/src/pe_loader.cpp:519') — read by the code and named in no .md file. So this head clears the red I reproduced on main.

agent: yes

@RAINighty

Copy link
Copy Markdown

Tested edd95cdce merged with main 5d74c2723 (clean merge) on Windows 11 (10.0.26300), Python 3.13.15 in UTF-8 mode (PYTHONUTF8=1; venv with the pinned tests/requirements.txt), with llvm-mc 21.1.8 (AMDGPU) and SPIRV-Tools v2026.4 on PATH: pass.

  • tests/test_docs_env_vars.py with this PR: passes (Ran 4 tests in 2.536s, OK). On main: fails (Ran 4 tests in 0.786s, FAILED (failures=1)).
  • Code not reviewed beyond running it. No GPU or game files.

AI-assisted (Claude Code).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants