Skip to content

Commit 65b7738

Browse files
authored
CI: verify production SEO and press routes after every relevant main change
* ci(live): monitor press locales, homepage, sitemap and robots changes on main * test(ci): ensure public press and metadata changes trigger read-only VPS smoke * test: match actual newline-delimited YAML path and permissions strings * test: separate owner-only deployment instructions from CI-executable commands
1 parent 963705f commit 65b7738

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

‎.github/workflows/live-acquisition-smoke.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@ on:
77
push:
88
branches: [main]
99
paths:
10+
# Every site file checked by check_app_discovery_live.sh must
11+
# trigger the same post-merge public HTTP check, not only app/support.
12+
- index.html
1013
- apps.html
1114
- apps_data.json
12-
- support/**
15+
- press/**
1316
- guides/**
17+
- support/**
18+
- sitemap.xml
19+
- robots.txt
1420
- scripts/check_app_discovery_live.sh
21+
- scripts/diagnose_growth_routes.py
22+
- scripts/diagnose_growth_deploy.py
1523
- scripts/publish_app_discovery.sh
1624
- .github/workflows/live-acquisition-smoke.yml
1725
schedule:

‎scripts/test_live_smoke_diagnostics.py‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,37 @@ class LiveFailureInventoryTests(unittest.TestCase):
1515
def setUpClass(cls):
1616
cls.yaml = WORKFLOW.read_text(encoding="utf-8")
1717

18+
def test_every_public_growth_change_rechecks_the_real_vps(self):
19+
# Previously press/**, homepage, sitemap and robots changed on main
20+
# without running the live smoke, allowing silent 404s/stale SEO.
21+
source = self.yaml.split(" push:", 1)[1].split(" schedule:", 1)[0]
22+
expected = (
23+
"index.html", "apps.html", "apps_data.json", "press/**",
24+
"guides/**", "support/**", "sitemap.xml", "robots.txt",
25+
"scripts/check_app_discovery_live.sh",
26+
"scripts/diagnose_growth_routes.py",
27+
"scripts/diagnose_growth_deploy.py",
28+
"scripts/publish_app_discovery.sh",
29+
".github/workflows/live-acquisition-smoke.yml",
30+
)
31+
for path in expected:
32+
with self.subTest(path=path):
33+
self.assertIn(f" - {path}\n", source)
34+
self.assertIn(" branches: [main]", source)
35+
36+
def test_public_live_monitor_remains_read_only_and_recurring(self):
37+
source = self.yaml
38+
self.assertIn(" workflow_dispatch:", source)
39+
self.assertIn("cron: '40 0 * * *'", source)
40+
self.assertIn("permissions:\n contents: read", source)
41+
self.assertIn("runs-on: ubuntu-latest", source)
42+
# The failure summary prints an owner-only deploy command as
43+
# instructions; it must not execute inside any CI step.
44+
execution = source.split(" - name: Summarize release blockers and recovery", 1)[0]
45+
self.assertNotIn("bash scripts/publish_app_discovery.sh --apply", execution)
46+
self.assertNotIn("curl --request POST", source)
47+
self.assertNotIn("continue-on-error: true", source)
48+
1849
def test_diagnostics_only_after_failed_public_smoke(self):
1950
source = self.yaml
2051
smoke = source.index(" - name: Check actual VPS HTTP pages")

0 commit comments

Comments
 (0)