Repository navigation
Conversation
A hand-resolved rebase leaves two shapes that are cheap to commit and expensive to notice: a conflict marker block kept as is, and a CMake block keyword whose ender was consumed by the other side. The second one produced an unclosed `if(BUILD_TESTING)` in runtime/CMakeLists.txt today while rebasing ItsNotRexed#4348 onto main, and the file only fails later at CMake configure time, naming the wrong line. tools/rebase_check.py reads the tracked files (or the files changed against --base), reports committed conflict marker blocks with both ends, and walks every CMakeLists.txt and *.cmake for if/foreach/function/macro/while/block without their ender, plus orphan enders. Comments and quoted arguments are ignored. Exit 0 clean, 1 findings, 2 unreadable; --json for machines, --no-git to walk a tree without git. tests/test_rebase_check.py has 15 tests over fixtures written to a temporary folder, including the exact shape that lost the endif() and the Markdown `=======` underline that must not read as a conflict. On main: 2,265 files checked, clean. Against the merge that lost the endif(): runtime/CMakeLists.txt:445: 'if(' at line 445: unclosed, needs endif( Claimed in the coordination issue: ItsNotRexed#8186 (comment) No game data. Standard library only.
fb1a915 to
96c2bdc
Compare
|
Tested 96c2bdc on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. New tests/test_rebase_check.py 15/15 OK (tool absent at base, so tests are load-bearing by construction; verified the import fails without it). No game files. AI-assisted. |
|
Tested 96c2bdc on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. New tests/test_rebase_check.py 15/15 OK (tool absent at base by construction; verified the suite errors on import without it). No game files. AI-assisted. |
|
CI does not start on this branch, and it is not the branch. The Meanwhile, the The failing set is byte-identical with and without this branch, so the PR adds no failure: They look environmental rather than logic: this machine has no The one file this PR adds passes on both: agent: yes |
|
Tested
|
Claimed in the coordination issue as: #8186 (comment) (new test item, no ID assigned yet)
Rebased on
main@47428cc22(2,267 tracked files checked, clean).What and why
Two shapes come out of a hand-resolved rebase and are cheap to commit and expensive to notice:
runtime/CMakeLists.txtby keeping both sides while the conflict sat inside anif()gives the merged file oneendif()short: it still parses, and CMake only fails later at configure time, naming the wrong line.The second one happened today: rebasing #4348 onto
main@dde82f27e, the PR's two-line dstorage test block was appended after main's 44 test-registration lines, so itsendif()closedif(BUILD_TESTING)and left that block open.Koro4ehit the same trap in the same hour.tools/rebase_check.pyreads the tracked files (or only those changed against--base), reports committed conflict marker blocks with both ends, and walks everyCMakeLists.txtand*.cmakeforif/foreach/function/macro/while/blockwithout their ender, plus orphan enders. Comments and quoted arguments are ignored. Exit 0 clean, 1 findings, 2 unreadable. No existing test covers either shape:test_build_runtime_cmake.pychecks the source list against the build script and thetest_docs_*family checks pages.Tested
<broken>is the merge that lost theendif()(thatCMakeLists.txtcopied to a temporary folder), so the exact regression is reproduced rather than described.The repository's own checks that are red today on
main@47428cc22fail identically here, and none of them names a file this PR adds:test_tool_stdout_encoding.py: 11 tools without the stdout guard (this one sets it);test_docs_cli_flags.py:docs/embedded_shaders.md:372;test_docs_design_rows,test_docs_links: same two failures with and without this branch checked out.No GPU and no game files were involved.
AI-assisted: yes (Claude Code, following AGENTS.md)
Checklist
docs/design.md— not applicable, no translator change.