Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/progress_dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <work>`: counts per stage from `<work>/shaders/dxbc/index.json` and `<work>/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 |

Expand Down
2 changes: 1 addition & 1 deletion make_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down
16 changes: 14 additions & 2 deletions tests/test_make_game_preflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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)]
Expand Down
5 changes: 5 additions & 0 deletions tests/test_progress_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion tools/progress_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down