docs: pin the packager route to one commit

This commit is contained in:
Abdessamad Derraz committed 2026-10-24 01:01:07 +02:00
1 parent 3b1e13315d
commit 50da5970b7
3 files changed
+27 -25

No files matched your search

+7 -5
View File
@@ -198,8 +198,9 @@ class SetupsWithoutAPage(unittest.TestCase):
for words in ("--dest", "ES-DE", "LaunchBox", "iPhone"):
with self.subTest(words=words):
self.assertIn(words, section)
# No folder is written: the copy names none it cannot cite.
self.assertNotRegex(section, r"[~/\\][A-Za-z]")
# No folder is written: the copy names none it cannot cite. Link
# targets are pages of this site, not folders.
self.assertNotRegex(re.sub(r"\]\([^)]*\)", "]", section), r"[~/\\][A-Za-z]")
def test_the_installer_fills_the_emulators_a_launcher_starts(self):
installer = _flat(_wiki("installer.md"))
@@ -234,11 +235,12 @@ class ExitStatusAndPinnedInstaller(unittest.TestCase):
with self.subTest(field=field):
self.assertIn(f'"{field}"', fields)
def test_a_packager_pins_installer_and_lists_to_one_tag(self):
def test_a_packager_pins_installer_and_lists_to_one_commit(self):
# No release carries the installer yet: the section pins a commit.
section = _section(self.text, "One line")
self.assertIn("releases/download/<tag>", section)
self.assertIn("raw.githubusercontent.com/Abdess/retrobios/$commit", section)
self.assertIn("$base/install.py", section)
self.assertIn("RETROBIOS_REF=<tag>", section)
self.assertIn("RETROBIOS_REF=$commit", section)
self.assertIn('os.environ.get("RETROBIOS_REF"', self.source)
+8 -5
View File
@@ -262,15 +262,18 @@ class PinnedInstaller(unittest.TestCase):
self.assertIn(f"dist/{name}", upload)
self.assertIn("install/*.json", upload)
def test_the_installer_page_names_the_release_addresses(self):
def test_the_installer_page_pins_one_commit(self):
# v2026.10.10 carries no install.py: until a release does, the
# section pins a commit, never a release address.
text = _wiki("installer.md")
section = _flat(_section(text, "For packagers"))
for words in ("releases/download/<tag>", "--manifest retroarch.json",
"sha256sum --check", "SHA256SUMS.txt", "releases/latest/download/",
"release-process.md#verifying-a-release"):
for words in ("raw.githubusercontent.com/Abdess/retrobios/$commit",
'"$base/install/retroarch.json"', "--manifest retroarch.json",
"sha256sum --check", "RETROBIOS_REF=$commit"):
with self.subTest(words=words):
self.assertIn(words, section)
self.assertNotIn("raw.githubusercontent.com/Abdess/retrobios/<tag>/install.py", text)
self.assertNotIn("releases/download/", section)
self.assertNotIn("releases/latest/download/", section)
terms = _front(text)["terms"]
for word in ("manifest", "events", "exit code", "schema"):
with self.subTest(term=word):