exe_checklist: fix numbered/plus doc lists, colon-less markers, and BOM/shape checks (EXE-CHECKLIST-PARSE) #632

Open
github-bot wants to merge 1 commit from github-bot/gh-632 into main AGit
Owner

@⁠hamdog0203 on GitHub · 2026-11-24 10:28 UTC · original
hamdog0203:fix/exe-checklist-parse → main · +131 −8 · 2 files · 1 commits · open

Claimed in the coordination issue as: EXE-CHECKLIST-PARSE (#14)

AI-assisted: yes
No game files touched or included.

Summary

Three small parsing and input-validation fixes in tools/exe_checklist.py:

  1. doc_notes() list boundaries and prefix stripping: stop continuation lines on all list items matched by LIST_ITEM (including + and numbered 1. / 1) items) instead of only - and * , and strip LIST_ITEM from the first line instead of ^[-*] .
  2. without_marker() on colon-less markers: match bold markers up to their closing ** and plain comment markers up to an optional parenthetical + : or whitespace, so markers without an immediate colon no longer eat prose up to a later colon or leave VERIFY unstripped.
  3. called_classes() BOM and JSON shape validation: open --gdk-calls files with utf-8-sig and validate object/list/string shapes, raising ValueError (handled by main() with exit code 1) instead of letting TypeError escape as a traceback.

Verification

  • python -I tests/test_exe_checklist.py -v -> Ran 18 tests ... OK (14 existing + 4 new regression tests in ExeChecklistEdgeCases)
  • Negative control: running ExeChecklistEdgeCases against unpatched main failed (FAILED (failures=4, errors=2))
  • python -I -m py_compile tools/exe_checklist.py tests/test_exe_checklist.py -> OK
  • python -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py -> exit 0
  • python -I tests/test_text_write_line_endings.py -v -> Ran 3 tests ... OK
**@⁠hamdog0203** on GitHub · 2026-11-24 10:28 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/632) `hamdog0203:fix/exe-checklist-parse` → `main` · +131 −8 · 2 files · 1 commits · open Claimed in the coordination issue as: EXE-CHECKLIST-PARSE (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) AI-assisted: yes No game files touched or included. ### Summary Three small parsing and input-validation fixes in `tools/exe_checklist.py`: 1. **`doc_notes()` list boundaries and prefix stripping:** stop continuation lines on all list items matched by `LIST_ITEM` (including `+` and numbered `1.` / `1)` items) instead of only `- ` and `* `, and strip `LIST_ITEM` from the first line instead of `^[-*] `. 2. **`without_marker()` on colon-less markers:** match bold markers up to their closing `**` and plain comment markers up to an optional parenthetical + `:` or whitespace, so markers without an immediate colon no longer eat prose up to a later colon or leave `VERIFY ` unstripped. 3. **`called_classes()` BOM and JSON shape validation:** open `--gdk-calls` files with `utf-8-sig` and validate object/list/string shapes, raising `ValueError` (handled by `main()` with exit code `1`) instead of letting `TypeError` escape as a traceback. ### Verification - `python -I tests/test_exe_checklist.py -v` -> `Ran 18 tests ... OK` (14 existing + 4 new regression tests in `ExeChecklistEdgeCases`) - Negative control: running `ExeChecklistEdgeCases` against unpatched `main` failed (`FAILED (failures=4, errors=2)`) - `python -I -m py_compile tools/exe_checklist.py tests/test_exe_checklist.py` -> OK - `python -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py` -> exit `0` - `python -I tests/test_text_write_line_endings.py -v` -> `Ran 3 tests ... OK`
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:12:47 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 00:58 UTC · original

Reviewed 10856a3: python3 -I tests/test_exe_checklist.py passes on the PR (18 tests) and on main (14); the PR's test file run against main's tool fails exactly the new cases (4 failures + 2 errors: numbered/+ list items merged into the previous note, colon-less markers, the BOM'd --gdk-calls report, and an uncaught TypeError on {"images": null} / {"classes": null}, plus class_id: true accepted). Running the tool over the repository on both trees gives 25 notes each, and apart from line numbers (the branch is behind main) only three texts change: gameinput.cpp:30 and :1106 lose a doubled VERIFY, and runtime/src/xdxr_build.h:7 now reads ASSUMPTION: there: a shader reaches... (the source says "an ASSUMPTION there: a shader..."; main printed a shader reaches...), a small cosmetic step back for that one note, not a blocker. check_no_game_data.py is clean on both files and the branch merges cleanly into current main (b4b7756e). Run in a network-less sandbox on Linux. No blocking findings.

AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 00:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/632#issuecomment-7149078394) Reviewed 10856a3: `python3 -I tests/test_exe_checklist.py` passes on the PR (18 tests) and on `main` (14); the PR's test file run against `main`'s tool fails exactly the new cases (4 failures + 2 errors: numbered/`+` list items merged into the previous note, colon-less markers, the BOM'd `--gdk-calls` report, and an uncaught `TypeError` on `{"images": null}` / `{"classes": null}`, plus `class_id: true` accepted). Running the tool over the repository on both trees gives 25 notes each, and apart from line numbers (the branch is behind `main`) only three texts change: `gameinput.cpp:30` and `:1106` lose a doubled `VERIFY`, and `runtime/src/xdxr_build.h:7` now reads `ASSUMPTION: there: a shader reaches...` (the source says "an ASSUMPTION there: a shader..."; `main` printed `a shader reaches...`), a small cosmetic step back for that one note, not a blocker. `check_no_game_data.py` is clean on both files and the branch merges cleanly into current `main` (b4b7756e). Run in a network-less sandbox on Linux. No blocking findings. AI-assisted review. **Recommendation:** Merge
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/632/head:github-bot/gh-632'
git switch 'github-bot/gh-632'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-632'
git switch 'github-bot/gh-632'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-632'
git switch 'github-bot/gh-632'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-632'
git switch 'main'
git merge --squash 'github-bot/gh-632'
git switch 'main'
git merge --ff-only 'github-bot/gh-632'
git switch 'main'
git merge 'github-bot/gh-632'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.