mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-18 07:37:49 -06:00
fix: read teknoparrot and simple64 from mirrors
teknogods/TeknoParrotUI and simple64/simple64 answer 404 on the API and the web, and neither organisation lists them now. simple64's README at the pin archives the project for gopher64. Each profile declares upstream_gone and a fork that keeps its default branch at the analysed commit: thecrixux/TeknoParrotUI master is b75872ad, simple64-vault/simple64 main is d8c969c7. realign_prose reads a source declared gone through that mirror, which unblocks five teknoparrot notes citations that anchor unchanged.
This commit is contained in:
1 parent
a0ecca0024
commit
63fafaf0f9
4 files changed
+52
-4
No files matched your search
@@ -4784,6 +4784,34 @@ class TestRealignProse(unittest.TestCase):
|
||||
self.assertTrue(flagged, messages)
|
||||
self.assertFalse([m for m in messages if "b.c:" in m], messages)
|
||||
|
||||
def test_a_source_declared_gone_is_read_through_its_mirror(self):
|
||||
"""teknogods/TeknoParrotUI answers 404. Read there, every citation
|
||||
written under the old pin was absent and blocked the profile."""
|
||||
self._repo_with_advanced_pin()
|
||||
self._commit(
|
||||
PROSE_SAMPLE.replace(
|
||||
'source_commit: "pin"\n',
|
||||
'source_commit: "pin"\n'
|
||||
'upstream_gone: "o/n answers 404."\n'
|
||||
'source_mirror: "https://github.com/m/n"\n',
|
||||
),
|
||||
"advance the pin, declare the forge gone",
|
||||
)
|
||||
self.files[("oldpin", "a.c")] = ["x"] * 9 + ["subject"]
|
||||
self.files[("pin", "a.c")] = ["x"] * 13 + ["subject"]
|
||||
self.files[("oldpin", "b.c")] = list("pqrstuvwx")
|
||||
self.files[("pin", "b.c")] = list("pqrstuvwx")
|
||||
served = profile_sync.upstream.fetch_file
|
||||
profile_sync.upstream.fetch_file = (
|
||||
lambda repo, sha, path, cache_dir, offline=False: (
|
||||
served(repo, sha, path, cache_dir, offline)
|
||||
if repo.slug == "m/n" else None
|
||||
)
|
||||
)
|
||||
messages = profile_sync.realign_prose(self.path, self.tmp.name, dry_run=True)
|
||||
# b.c did not move between the two pins: nothing to read again.
|
||||
self.assertFalse([m for m in messages if "b.c:" in m], messages)
|
||||
|
||||
def test_a_citation_in_an_unmoved_upstream_needs_no_reading(self):
|
||||
"""nethersx2 cites AetherSX2 files that only its upstream carries,
|
||||
at an upstream pin that never moved. The port's pin did move under
|
||||
|
||||
Reference in new issue
Block a user