diff --git a/apps.html b/apps.html index a58564ea..a27bf640 100644 --- a/apps.html +++ b/apps.html @@ -1,6 +1,7 @@ + diff --git a/index.html b/index.html index ff4babb0..553d406f 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,7 @@ + diff --git a/scripts/check_growth_live.py b/scripts/check_growth_live.py index 4c5b6db5..d55acbe1 100644 --- a/scripts/check_growth_live.py +++ b/scripts/check_growth_live.py @@ -12,6 +12,7 @@ # Prevent accidental removal of existing listings, but allow genuine new releases. CATALOG_MIN_ITEMS = 92 FEATURED_SLUGS = ("debate-me", "tappitsu-battle", "future-me", "twotaku") +GROWTH_RELEASE_ID = "growth-20261106-wave2" PATHS = ("/", "/apps", "/robots.txt", "/sitemap.xml") + tuple( f"/support/{slug}/" for slug in SLUGS ) @@ -26,6 +27,13 @@ def check(path, key, valid): for path in PATHS: check(path, "retrieved", path in pages) + for path in ("/", "/apps") + tuple(f"/support/{slug}/" for slug in SLUGS): + html = pages.get(path, "") + markers = re.findall( + r'https://appdevelopsk.com{p}" for p in ("/", "/apps") + tuple(f"/support/{s}/" for s in SLUGS)) + for path in ("/", "/apps") + tuple(f"/support/{slug}/" for slug in SLUGS): + pages[path] = (f'' + pages[path]) return pages @@ -114,6 +117,18 @@ def test_disallowed_icons_fail(self): data["/robots.txt"] += "Disallow: /icons/\\n" self.assertFalse(inspect(data)["passed"]) + def test_missing_release_fingerprint_fails(self): + data = valid_pages() + data["/apps"] = data["/apps"].replace('name="sk-growth-release"', + 'name="some-other-tag"') + self.assertFalse(inspect(data)["passed"]) + + def test_stale_release_fingerprint_fails(self): + data = valid_pages() + data["/support/twotaku/"] = data["/support/twotaku/"].replace( + GROWTH_RELEASE_ID, "growth-previous") + self.assertFalse(inspect(data)["passed"]) + def test_missing_live_page_fails(self): data = valid_pages() del data["/apps"] @@ -154,7 +169,8 @@ def test_stale_catalog_claim_fails(self): def test_new_catalog_release_with_consistent_schema_passes(self): data = valid_pages() head, rest = data["/apps"].split("", 1) - schema = json.loads(head.split(">", 1)[1]) + prefix, jsonld_source = head.split('' + rest + card) self.assertTrue(inspect(data)["passed"]) diff --git a/support/debate-me/index.html b/support/debate-me/index.html index 30ca4ecb..801cfdb4 100644 --- a/support/debate-me/index.html +++ b/support/debate-me/index.html @@ -1,6 +1,7 @@ + diff --git a/support/future-me/index.html b/support/future-me/index.html index 79c9ca84..2e0e1847 100644 --- a/support/future-me/index.html +++ b/support/future-me/index.html @@ -1,6 +1,7 @@ + diff --git a/support/instant-judge/index.html b/support/instant-judge/index.html index bd5da3a9..6da06627 100644 --- a/support/instant-judge/index.html +++ b/support/instant-judge/index.html @@ -1,6 +1,7 @@ +