diff --git a/.github/workflows/app-discovery-qa.yml b/.github/workflows/app-discovery-qa.yml index b61f77e1..9ee93c71 100644 --- a/.github/workflows/app-discovery-qa.yml +++ b/.github/workflows/app-discovery-qa.yml @@ -31,6 +31,10 @@ on: - scripts/test_sitemap_route_integrity.py - scripts/test_sitemap_growth_freshness.py - scripts/test_live_smoke_diagnostics.py + - scripts/diagnose_growth_routes.py + - scripts/diagnose_growth_deploy.py + - scripts/test_diagnose_growth_routes.py + - scripts/test_diagnose_growth_deploy.py - scripts/test_live_smoke_source_parity.py - scripts/preflight_app_discovery.py - scripts/test_preflight_app_discovery.py @@ -78,6 +82,10 @@ on: - scripts/test_sitemap_route_integrity.py - scripts/test_sitemap_growth_freshness.py - scripts/test_live_smoke_diagnostics.py + - scripts/diagnose_growth_routes.py + - scripts/diagnose_growth_deploy.py + - scripts/test_diagnose_growth_routes.py + - scripts/test_diagnose_growth_deploy.py - scripts/test_live_smoke_source_parity.py - scripts/preflight_app_discovery.py - scripts/test_preflight_app_discovery.py @@ -113,6 +121,8 @@ jobs: run: python3 -m unittest scripts.test_sitemap_route_integrity scripts.test_sitemap_growth_freshness -v - name: Verify live failure inventory stays read-only and fail-closed run: python3 -m unittest scripts.test_live_smoke_diagnostics -v + - name: Verify 15 public deployment diagnostic routes and failure handling + run: python3 -m unittest scripts.test_diagnose_growth_routes scripts.test_diagnose_growth_deploy -v - name: Verify public smoke string assertions match current source run: python3 -m unittest scripts.test_live_smoke_source_parity -v - name: Verify multilingual press and real local rsync release staging diff --git a/scripts/diagnose_growth_deploy.py b/scripts/diagnose_growth_deploy.py index 1da9d25c..8008b106 100644 --- a/scripts/diagnose_growth_deploy.py +++ b/scripts/diagnose_growth_deploy.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Read-only compare of twelve deployed growth HTML pages against this checkout. +"""Read-only compare of fifteen deployed growth HTML pages against this checkout. Exit 0 requires HTTP 200 and byte-identical HTML on all configured pages. Hosts that rewrite HTML can cause false mismatches; inspect alongside growth smoke. @@ -14,8 +14,10 @@ from urllib.parse import urljoin, urlparse from urllib.request import Request, urlopen -SLUGS = ("debate-me", "tappitsu-battle", "future-me", "twotaku", "instant-judge") -PAGE_FILES = {"/": "index.html", "/apps": "apps.html"} +SLUGS = ("debate-me", "brain-burst", "tappitsu-battle", "future-me", "twotaku", "instant-judge") +PAGE_FILES = {"/": "index.html", "/apps": "apps.html", + "/guides/ai-debate-practice/": "guides/ai-debate-practice/index.html", + "/guides/ai-debate-practice/ja/": "guides/ai-debate-practice/ja/index.html"} PAGE_FILES.update({f"/support/{s}/": f"support/{s}/index.html" for s in SLUGS}) PAGE_FILES.update({"/press/": "press/index.html", "/press/es/": "press/es/index.html", "/press/pt-br/": "press/pt-br/index.html", "/press/ja/": "press/ja/index.html", "/press/id/": "press/id/index.html"}) STAMP = re.compile(rb'