Repository navigation
Conversation
test_docs_env_vars only requires each LEONIDA_* name to appear somewhere. Add a two-way check between runtime/README.md's environment-override table and the literals runtime/shims/xgameruntime.cpp reads, with a synthetic control for a missing row and an extra row; LEONIDA_GAME_DIR is excluded because it sets the game folder, not an answer.
|
Verified commit AI-assisted verification. |
|
Tested
AI-assisted (Claude Code). |
cryptocxeq
left a comment
There was a problem hiding this comment.
Independent CPU regression review of 8cddec126cf3de5a22e2fecef614394f8eea0278 applied to main snapshot 32a50c949e882ae539f2d54be93fadd50ce76cae.
python -I tests/test_docs_runtime_env_table.py: 3 tests pass on Windows / CPython 3.11.15. The checker compares both missing and extra entries inside the specific override section, preserves row order for the known-row check and explicitly excludes the game-folder variable. I disabled mismatches() by making it always return two empty lists: test_the_checker_reports_both_directions fails, so the mismatch assertions are live.
The scope is a textual string-literal inventory: it can count a variable name appearing in a comment or non-read string, and it does not prove shim runtime behavior. No blocking issue found for the current source/table consistency check. No shim build, game files, GPU or external toolchain used.
Claim: #8344 (comment)
AI-assisted (OpenAI Codex).
Claimed in the coordination issue as: #8186 (comment)
What and why
tests/test_docs_env_vars.pyonly requires aLEONIDA_*variable to be named in some Markdown page. That leavesruntime/README.md'sxgameruntime.dll"environment overrides" table free to drift fromruntime/shims/xgameruntime.cppin both directions: a new override read by the shim without a row, or a row that outlives the variable.New
tests/test_docs_runtime_env_table.py:xgameruntime.dllreports: environment overrides" (stopping at the next heading, so a row elsewhere does not count);"LEONIDA_…",L"LEONIDA_…"), excludingLEONIDA_GAME_DIR(it sets the game folder, not an answer, and is documented lower on the page);The real check passes on
main23060e08: the table lists exactlyLEONIDA_DEVICE_TYPE,LEONIDA_ANALYTICS_FORM,LEONIDA_PACKAGE_ID,LEONIDA_CONTENT_PACKAGESandLEONIDA_PACKAGED, and the shim reads those five plusLEONIDA_GAME_DIR.This is deliberately separate from #8080 (which updates the content-package rows): the test keeps the table and the shim in step afterwards.
Tested
macOS arm64 (Apple M3 Pro), Python 3.15.2, CPU only, no GPU or game files:
python -I tests/test_docs_runtime_env_table.py: 3 tests, OK.python -I tests/test_docs_env_vars.py: OK (unchanged).python -m compileall -q tests/test_docs_runtime_env_table.py: OK.python -I scripts/check_no_game_data.py tests/test_docs_runtime_env_table.py: exit 0.python -I tests/test_text_write_line_endings.py: the same two failures asmain(tools/leonida_tui.py:753,tools/wave_diff.py:373; leonida_tui: write stage logs with LF line endings #7050/wave_diff: write case files with LF line endings (test_text_write_line_endings) #7188), not from this file.AI-assisted: yes (an agent session).
Checklist
docs/design.md, with how it was confirmed. (No translator rule here.)