From a837d9a6160d561bdef4fb8230f793ed997b65e4 Mon Sep 17 00:00:00 2001 From: natterman12 <92529018+natterman12@users.noreply.github.com> Date: Mon, 23 Nov 2026 21:11:49 -0500 Subject: [PATCH] make_game, progress_dashboard: name this repository, not the private original ensure_submodule() told a user with a ZIP download to git clone https://github.com/ItsNotRexed/Leonida, which is private since 23 November 2026, and progress_dashboard.py --github read that repository by default, so its pull-request, CI and coordination panels came back empty. Both now name ubiquitarianism/leonida, as the README's clone command does. Two tests tie the hint and DEFAULT_REPO to that README line, so a later move fails a test instead of a user. Co-Authored-By: Claude Fable 5.2 --- docs/progress_dashboard.md | 2 +- make_game.py | 2 +- tests/test_make_game_preflight.py | 16 ++++++++++++++-- tests/test_progress_dashboard.py | 5 +++++ tools/progress_dashboard.py | 2 +- 5 files changed, 22 insertions(+), 5 deletions(-) diff --git a/docs/progress_dashboard.md b/docs/progress_dashboard.md index c5e7f48a42..1109d0097e 100644 --- a/docs/progress_dashboard.md +++ b/docs/progress_dashboard.md @@ -27,7 +27,7 @@ are read directly; there is no need to re-save them as UTF-8. | Translator contract | the contract table in [design.md](design.md#translator-status-and-runtime-contract), each row classified by how it says it was confirmed | contract row | | Runtime imports | the measured tables in [runtime_imports.md](runtime_imports.md) | import | | Shader corpus | `--work `: counts per stage from `/shaders/dxbc/index.json` and `/shaders/spirv/index.json` | shaders, aggregated per stage | -| Pull requests into main | `--github`: every pull request into `main` of the main repository (`--repo`, default `ItsNotRexed/Leonida`), grouped by the item ID its title names (`D3D-86: …`, `… (SHADER-339)`) | pull request | +| Pull requests into main | `--github`: every pull request into `main` of the main repository (`--repo`, default `ubiquitarianism/leonida`), grouped by the item ID its title names (`D3D-86: …`, `… (SHADER-339)`) | pull request | | D3D12 layer | `--github`: the `D3D-` table of [#313](https://github.com/ItsNotRexed/Leonida/issues/313), read through `gh` and checked against the merged and open pull requests | item | | CI on main | `--github`: the latest completed run of each workflow on `main` | workflow | diff --git a/make_game.py b/make_game.py index ff5ff76767..877eae4642 100644 --- a/make_game.py +++ b/make_game.py @@ -1037,7 +1037,7 @@ def ensure_submodule() -> None: core = os.path.join(ROOT, "third_party", "rpf9-explorer", "Core") if submodule_ready(): return - clone = "git clone --recursive https://github.com/ItsNotRexed/Leonida" + clone = "git clone --recursive https://github.com/ubiquitarianism/leonida" git = shutil.which("git") if not git: fail("third_party/rpf9-explorer is missing (a \"Download ZIP\" from GitHub leaves it out). Install Git " diff --git a/tests/test_make_game_preflight.py b/tests/test_make_game_preflight.py index 7f4f3c7748..9ea5f79ab5 100644 --- a/tests/test_make_game_preflight.py +++ b/tests/test_make_game_preflight.py @@ -651,7 +651,7 @@ def test_ensure_submodule_missing_fails_cleanly(self): with mock.patch.object(make_game, "ROOT", tmp), \ mock.patch("shutil.which", return_value=None): self.assert_fails(make_game.ensure_submodule, - match="git clone --recursive https://github.com/ItsNotRexed/Leonida") + match="git clone --recursive https://github.com/ubiquitarianism/leonida") def test_ensure_submodule_zip_with_git_does_not_say_install_git(self): with tempfile.TemporaryDirectory() as tmp: @@ -660,9 +660,21 @@ def test_ensure_submodule_zip_with_git_does_not_say_install_git(self): mock.patch("shutil.which", return_value="/usr/bin/git"), \ mock.patch("subprocess.run", return_value=not_a_repo): err = self.assert_fails(make_game.ensure_submodule, - match="git clone --recursive https://github.com/ItsNotRexed/Leonida") + match="git clone --recursive https://github.com/ubiquitarianism/leonida") self.assertNotIn("Install Git", err) + def test_ensure_submodule_names_the_clone_command_the_readme_gives(self): + # the hint once named a repository that had gone private; the README is where the address is kept current + with open(os.path.join(ROOT, "README.md"), encoding="utf-8") as f: + readme = f.read() + with tempfile.TemporaryDirectory() as tmp: + with mock.patch.object(make_game, "ROOT", tmp), \ + mock.patch("shutil.which", return_value=None): + err = self.assert_fails(make_game.ensure_submodule, match="git clone --recursive ") + clone = re.search(r"git clone --recursive https://github\.com/[\w.-]+/[\w.-]+", err) + self.assertIsNotNone(clone, err) + self.assertIn(f"`{clone.group(0)}`", readme) + def test_ensure_submodule_failed_fetch_in_clone_names_the_fetch(self): with tempfile.TemporaryDirectory() as tmp: results = [subprocess.CompletedProcess([], 0), subprocess.CompletedProcess([], 1)] diff --git a/tests/test_progress_dashboard.py b/tests/test_progress_dashboard.py index 522d9d5660..2b9f87a968 100644 --- a/tests/test_progress_dashboard.py +++ b/tests/test_progress_dashboard.py @@ -304,6 +304,11 @@ def test_panel_groups_by_gpu_label(self): class Github(unittest.TestCase): + def test_default_repo_is_the_one_the_readme_clones(self): + # --github once read a repository that had gone private; the README is where the address is kept current + with open(os.path.join(ROOT, "README.md"), encoding="utf-8") as f: + self.assertIn(f"`git clone --recursive https://github.com/{pd.DEFAULT_REPO}`", f.read()) + def test_d3d_states(self): self.assertEqual(pd.d3d_state("@a", "#291 merged, #819, #831 on main", "")[0], "partial") self.assertEqual(pd.d3d_state("@a", "#1489 merged, #907 closed", "")[0], "implemented") diff --git a/tools/progress_dashboard.py b/tools/progress_dashboard.py index 0a9636dc51..a4cb10d515 100644 --- a/tools/progress_dashboard.py +++ b/tools/progress_dashboard.py @@ -51,7 +51,7 @@ SCHEMA = "leonida.progress/1" STATUSES = ("verified", "implemented", "partial", "failed", "missing", "blocked", "unknown") PYTEST_MARKERS = re.compile(r"^import pytest|^ *HAVE_NUMPY =", re.M) # the CI selection rule (ci.yml) -DEFAULT_REPO = "ItsNotRexed/Leonida" +DEFAULT_REPO = "ubiquitarianism/leonida" # ----------------------------------------------------------------------------------------------- helpers