Skip to content

make_game: name ProjectLeonida/mandy in the clone command, the repository the README clones - #2596

Closed
MoonEyes wants to merge 1 commit into
ProjectLeonida:mainfrom
MoonEyes:fix/make-game-clone-url
Closed

MoonEyes wants to merge 1 commit into
ProjectLeonida:mainfrom
MoonEyes:fix/make-game-clone-url

Conversation

@MoonEyes

Copy link
Copy Markdown
Collaborator

Item: TOOLS-MAKE-GAME-CLONE-URL
Claim: #2570 (comment)

make_game.py:1141 still told users to clone ubiquitarianism/leonida when the submodule is missing, while README.md:126 now clones https://github.com/ProjectLeonida/mandy, so tests/test_make_game_preflight.py test_ensure_submodule_names_the_clone_command_the_readme_gives failed on main (it reads the command from the README). This names ProjectLeonida/mandy in the clone command and in the two neighbouring tests that hard-code it. Three lines.

With #2595 (the progress_dashboard default), this makes the CI docs-only job (.github/workflows/ci.yml:68-70) green for these two tests.

Test (no game files, Windows 11, Python 3.14): python -I tests/test_make_game_preflight.py gives 1 failure in 109 on main adfb382 and 109 OK (2 skipped) with this change; this PR's test file against main's make_game.py fails 3 tests. check_no_game_data.py is clean.

Out of scope (doc links, not tested): docs/linux.md, docs/testing.md, most docs/i18n/*/quickstart.md and .github/ISSUE_TEMPLATE/config.yml still give the old clone address.

AI-assisted (Claude Code, Claude Opus 5.5); reviewed by a separate agent before opening.

🤖 Generated with Claude Code

…tory the README clones

make_game.py still told users to clone ubiquitarianism/leonida, and
test_ensure_submodule_names_the_clone_command_the_readme_gives failed on
main because README.md:126 now clones ProjectLeonida/mandy.

Item: TOOLS-MAKE-GAME-CLONE-URL

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zmasi

zmasi commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

#2596 | head 5cf4339 (merged cleanly with main ba8b77b and a9e247c) | python -I tests/test_make_game_preflight.py -v + python -I tests/test_make_game_argparse.py | red on ba8b77b: FAILED (failures=3, skipped=2) (make_game.ensure_submodule() still emitted https://github.com/ubiquitarianism/leonida while README.md named ProjectLeonida/mandy) | green on PR+ba8b77b390: 109 ran, OK (skipped=2) (test_make_game_preflight.py) and 38 ran, OK (test_make_game_argparse.py); heads-up on brand-new a9e247cd6: 108/109 pass, while test_ensure_submodule_names_the_clone_command_the_readme_gives now sees README.md's shortened `git clone https://github.com/ProjectLeonida/mandy` (without --recursive) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yes

Audited 5cf4339b24 (make_game.py and tests/test_make_game_preflight.py) on Windows 11:

  • Against ba8b77b390: 109/109 (skipped=2) pass in tests/test_make_game_preflight.py, 38/38 pass in tests/test_make_game_argparse.py, 0 ubiquitarianism strings remain in make_game.py, and scripts/check_no_game_data.py passes cleanly (also merges cleanly alongside #2208).
  • Cross-check against a9e247cd6 (the README.md rewrite that landed right after this PR opened): a9e247cd6 changed README.md's clone line to `git clone https://github.com/ProjectLeonida/mandy` (dropping --recursive for the d3d12/ path), whereas ensure_submodule() rightly keeps --recursive for third_party/rpf9-explorer, so test_ensure_submodule_names_the_clone_command_the_readme_gives (tests/test_make_game_preflight.py:840) will want to match the repository URL against README.md rather than requiring --recursive in README.md.

@timbot103 timbot103 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static audit of 5cf4339b2 against 48bae6cad found one failing assertion. tests/test_make_game_preflight.py:840 searches for the full recovery command with --recursive. The clone command at README.md:84 gives the same URL without that flag. Please compare the repository URLs and keep the existing checks that the recovery hint includes --recursive.

AI-assisted.

@enlight3d

Copy link
Copy Markdown
Contributor

RUN of #2596 (python -I, no build, no game, GPU not used)

Tested: PR head 5cf4339, main b6bf3aa (the PR merged into that main with git merge --no-ff, local only).

Commands (from the worktree root, one process per file):

  • python -I tests/test_make_game_preflight.py
  • the 56 test files that mention make_game (tests/test_make_game_*.py plus the docs, text-encoding, TUI, stage and launcher tests that import it), each as python -I tests/

Red: with make_game.py put back to the pre-fix version (tests kept), test_make_game_preflight.py fails 3 tests: test_ensure_submodule_missing_fails_cleanly, test_ensure_submodule_zip_with_git_does_not_say_install_git, test_ensure_submodule_names_the_clone_command_the_readme_gives. Kind of red: the old clone address in make_game.py against the tests (and the README) naming ProjectLeonida/mandy.
Green at head: test_make_game_preflight.py 109 tests OK (skipped=1).
Green merged into main b6bf3aa: NOT green. test_make_game_preflight.py has 1 failure, test_ensure_submodule_names_the_clone_command_the_readme_gives; it fails the same way on plain main. Reason: #2550 already put ProjectLeonida/mandy in make_game.py, so the merge adds nothing (git diff main..merged is empty), and the README now says "git clone https://github.com/ProjectLeonida/mandy" without --recursive while the test looks for the make_game.py command (with --recursive) inside the README. So this PR no longer fixes that failing test on current main; the test (or the README line) needs a change.

Other failures, all identical on plain main (pre-existing, not caused by this PR): test_make_game_pipelines.py (3, test_invalid_index_shape_preserves_the_previous_crash_report), test_progress_dashboard.py (1, test_default_repo_is_the_one_the_readme_clones), test_docs_cli_flags.py (1), test_text_encoding.py (1). At the PR head (older base) test_tool_stdout_encoding.py also fails; it passes on main and merged. The other 50 files pass at head and merged.

Machine: Windows 11 Pro 10.0.26300, CPython 3.13.12; GPU not used.

@fiestorra

Copy link
Copy Markdown
Contributor

The substance of this pull request is already in main, so it is redundant as it stands - the second one I have found today on the same subject (#2595 is
the other).

Measured on main 4364a4fa6, comparing the line this branch changes against its own merge-base (adfb3821a):

where the line
this branch clone = "git clone --recursive https://github.com/ProjectLeonida/mandy"
main clone = "git clone --recursive https://github.com/ProjectLeonida/mandy"
its merge-base clone = "git clone --recursive https://github.com/ubiquitarianism/leonida"

And tests/test_make_game_preflight.py on main already mentions ProjectLeonida/mandy twice, which is what the test half of this branch asserts.

The two file blobs are not identical between the branch and main, and that is not evidence of extra content: main has moved on in both files since this
branch was cut (tests/test_make_game_preflight.py gained the unverified-known-folder logic, for instance), so what differs is drift, not this change.

Saying it the careful way: I verified the clone line and the test's expectation are present on main; I did not diff every line of the branch against main
to prove nothing else is in it. If the author meant something beyond the rename, say what and I will check that specifically.

My suggestion, since rebasing would produce an empty diff: close it, like #2595. Both are the same rename, and between them they hold two slots for a change that
is already in the tree.

Written with an AI assistant.

@aegish-zagi

Copy link
Copy Markdown
Contributor

VERIFY-2596 (independent verification, aegish-zagi)

  • PR: make_game: name ProjectLeonida/mandy in the clone command, the repository the README clones #2596 | head 5cf4339b2 | merge state vs main: clean merge onto main c2a726196 in a scratch branch
  • Tests run: python3 -I tests/test_make_game_preflight.py with the PR merged: 110 tests, OK (1 skipped); plain main: 110 tests, OK (1 skipped)
  • Diff audit: make_game.py's missing-submodule message now names git clone --recursive https://github.com/ProjectLeonida/mandy (was the old ubiquitarianism/leonida), and the two test expectations match the new string; the existing test that the message names the clone command the README gives ties the two together. No game data.
  • Platform: Linux, Python 3.12.3, no GPU (Profile Z)
  • AI-assisted: yes

Verdict: holds up — message and tests move together to the current repository.

@fiestorra

Copy link
Copy Markdown
Contributor

Status on this machine: it merges cleanly, but its commit does not replay - and the two are different questions, so here is which one I could answer.

merge-tree says clean. git merge-tree --write-tree origin/main refs/pull/2596/head succeeds, so GitHub can merge this pull request into main 1d22590b9 without a conflict. The change is small: 2 files changed, 3 insertions(+), 3 deletions(-).

Cherry-picking it fails. Replaying 5cf4339b2 onto main stops on a conflict, so the "apply it in a worktree and run its tests" step that I use for every pull request is not available for this one. It is the ordinary difference between applying a merge and replaying a commit on a moved base - not evidence of a problem with the change.

What that means practically: a reviewer can merge it as it is, but anyone who wants to run its tests on a scratch branch has to resolve the conflict first. Since the diff is three lines in make_game.py and its test, that resolution is trivial for the author and awkward for a stranger, which is why I am stopping here rather than guessing at which side of the conflict to keep.

What I did not do: run its tests. Anything I reported from that worktree would have been main's code with a partially applied commit, and I have already published six wrong measurements in this session from exactly that kind of half-built tree.

Written with an AI assistant.

@fiestorra

Copy link
Copy Markdown
Contributor

Correcting my previous comment on this pull request: I told you the branch needed a rebase, and that was the wrong conclusion from the right observation.

git merge-tree --write-tree origin/main refs/pull/2596/head returns origin/main's own tree. Merging this pull request would land nothing - the change is already in main from some earlier commit. That is also why the cherry-pick conflicted: not because the branch drifted past main, but because its content is already there.

So the right action here is close, not rebase. I checked the other three open pull requests with the same measure and this is one of four no-ops in the 667 non-Rust ones (#148, #319, #2595, #2596).

What the pull request itself carried was fine - three lines naming the repository in the clone command - and if main no longer says ProjectLeonida/mandy anywhere it should, that is worth a fresh check rather than a resurrection of this branch.

Written with an AI assistant.

@MoonEyes

Copy link
Copy Markdown
Collaborator Author

Closing: merging this into main d367675c7 would change nothing (git merge-tree --write-tree origin/main <head> gives main's own tree). The change is already in main, as fiestorra found. Thanks for that check.

AI-assisted (Claude Code).

@MoonEyes MoonEyes closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants