mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1248] tests: skip merge_check cases on a git without merge-tree --write-tree (TEST-MERGE-CHECK-OLD-GIT) #1281
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1281
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1248
Author: @TheGeogeo
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:test/merge-check-old-git📝 Commits (1)
6a4500dtests: skip merge_check cases on a git without merge-tree --write-tree (TEST-MERGE-CHECK-OLD-GIT)📊 Changes
1 file changed (+24 additions, -0 deletions)
View changed files
📝
tests/test_merge_check.py(+24 -0)📄 Description
Claimed in the coordination issue as: TEST-MERGE-CHECK-OLD-GIT — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144000568
What and why
scripts/merge_check.pydocuments git 2.38 or newer formerge-tree --write-tree, but its test does not check for it. On an older git, 18 of the 24 tests fail withJSONDecodeErroror a wrong message, which reads as a broken tool. Those 18 tests now skip with the reason whengit merge-tree -hdoes not offer--write-tree. The other six keep running, and nothing is skipped on a git that has the option.Tested
On Windows 11, Python 3.12.4, on
mainat66d4f5aa(6a4500d8):python -I -B tests/test_merge_check.pygave 17 errors and 2 subtest failures before (measured on2e026b03). Now 24 run, 18 skipped, OK.--write-treereplaced by an unknown option, the suite still fails (17 errors, 2 subtest failures) instead of skipping.d6031591), which edits the same file (before this rebase, same patch): no conflict; 18 skipped on git 2.36.0, 24 OK on git 2.56.1.test_tool_stdout_encoding.py,test_text_write_line_endings.py,test_docs_links.py,test_docs_cli_flags.py,compileall,git diff --checkand the no-game-data check passed (before this rebase, same patch).GPUs tested: n/a (CPU-only synthetic tests).
AI-assisted: yes (Claude Code).
Checklist
mainand merges cleanly.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.