Skip to content
Merged
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
10 changes: 10 additions & 0 deletions .github/workflows/app-discovery-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions scripts/diagnose_growth_deploy.py
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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'<meta\s+name="sk-growth-release"\s+content="([^"]+)"')
Expand Down
12 changes: 11 additions & 1 deletion scripts/test_diagnose_growth_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import tempfile
import unittest
from pathlib import Path
from diagnose_growth_deploy import PAGE_FILES, compare, fetcher, inspect, stamp
from scripts.diagnose_growth_deploy import PAGE_FILES, compare, fetcher, inspect, stamp


class DeploymentDiagnosisTests(unittest.TestCase):
Expand All @@ -18,6 +18,16 @@ def setUp(self):
dest.parent.mkdir(parents=True, exist_ok=True)
dest.write_bytes(data)

def test_critical_new_and_stale_app_pages_are_in_release_inventory(self):
self.assertEqual(len(PAGE_FILES), 15)
for path, source in {
"/support/brain-burst/": "support/brain-burst/index.html",
"/guides/ai-debate-practice/": "guides/ai-debate-practice/index.html",
"/guides/ai-debate-practice/ja/": "guides/ai-debate-practice/ja/index.html",
}.items():
with self.subTest(path=path):
self.assertEqual(PAGE_FILES[path], source)

def test_same_pages_pass(self):
result = inspect(self.root, lambda p: (self.contents[p], 200))
self.assertTrue(result['all_identical'])
Expand Down
2 changes: 1 addition & 1 deletion scripts/test_diagnose_growth_routes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
from urllib.error import URLError
from diagnose_growth_routes import diagnose, origin_from_url, summarize_response
from scripts.diagnose_growth_routes import diagnose, origin_from_url, summarize_response

ORIGIN = "https://appdevelopsk.com"
BODY = b'<html><head><link rel="canonical" href="https://appdevelopsk.com/apps"><meta name="sk-growth-release" content="growth-20261106-wave2"></head></html>'
Expand Down
Loading