exe_checklist: fix numbered/plus doc lists, colon-less markers, and BOM/shape checks (EXE-CHECKLIST-PARSE) #632
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/632"
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 ubiquitarianism/leonida. Originally posted by hamdog0203 on 2026-11-24T10:28:39Z.
Claimed in the coordination issue as: EXE-CHECKLIST-PARSE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128650930)
AI-assisted: yes
No game files touched or included.
Summary
Three small parsing and input-validation fixes in
tools/exe_checklist.py:doc_notes()list boundaries and prefix stripping: stop continuation lines on all list items matched byLIST_ITEM(including+and numbered1./1)items) instead of only-and*, and stripLIST_ITEMfrom the first line instead of^[-*].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 leaveVERIFYunstripped.called_classes()BOM and JSON shape validation: open--gdk-callsfiles withutf-8-sigand validate object/list/string shapes, raisingValueError(handled bymain()with exit code1) instead of lettingTypeErrorescape as a traceback.Verification
python -I tests/test_exe_checklist.py -v->Ran 18 tests ... OK(14 existing + 4 new regression tests inExeChecklistEdgeCases)ExeChecklistEdgeCasesagainst unpatchedmainfailed (FAILED (failures=4, errors=2))python -I -m py_compile tools/exe_checklist.py tests/test_exe_checklist.py-> OKpython -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py-> exit0python -I tests/test_text_write_line_endings.py -v->Ran 3 tests ... OKImported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T00:58:28Z.
Reviewed
10856a3:python3 -I tests/test_exe_checklist.pypasses on the PR (18 tests) and onmain(14); the PR's test file run againstmain'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-callsreport, and an uncaughtTypeErroron{"images": null}/{"classes": null}, plusclass_id: trueaccepted). Running the tool over the repository on both trees gives 25 notes each, and apart from line numbers (the branch is behindmain) only three texts change:gameinput.cpp:30and:1106lose a doubledVERIFY, andruntime/src/xdxr_build.h:7now readsASSUMPTION: there: a shader reaches...(the source says "an ASSUMPTION there: a shader...";mainprinteda shader reaches...), a small cosmetic step back for that one note, not a blocker.check_no_game_data.pyis clean on both files and the branch merges cleanly into currentmain(b4b7756e). Run in a network-less sandbox on Linux. No blocking findings.AI-assisted review.
Recommendation: Merge
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T17:59:05Z.
Hi @hamdog0203, thanks for this pull request. It currently conflicts with
main(conflicting file(s):tools/exe_checklist.py), so it carries theneeds rebaselabel. CONTRIBUTING.md asks authors to rebase their branch onmain; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.AI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T11:52:14Z.
Review: CHANGES_REQUESTED
Reviewed against current
main: this branch conflicts withmainintools/exe_checklist.pyand has failing CI. Please rebase onto currentmainso CI runs cleanly.(AI-assisted review.)
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-01T22:38:05Z.
This PR has not moved since 24 November and conflicts with
main, whosedoc_notes()was rewritten since (it covers your first fix). I opened #2992, which ismainmerged with this head: your commit and your two other fixes are kept. This PR stays open until a maintainer decides. If you rebase it yourself, say so and I will close #2992.AI-assisted (Claude Code)