From eb469dc76312b3d5e6330558d13d9d2beccca7b3 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:04:23 +0900 Subject: [PATCH 1/4] ci(live): monitor press locales, homepage, sitemap and robots changes on main --- .github/workflows/live-acquisition-smoke.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/live-acquisition-smoke.yml b/.github/workflows/live-acquisition-smoke.yml index 96d485b4..d4635f12 100644 --- a/.github/workflows/live-acquisition-smoke.yml +++ b/.github/workflows/live-acquisition-smoke.yml @@ -7,11 +7,19 @@ on: push: branches: [main] paths: + # Every site file checked by check_app_discovery_live.sh must + # trigger the same post-merge public HTTP check, not only app/support. + - index.html - apps.html - apps_data.json - - support/** + - press/** - guides/** + - support/** + - sitemap.xml + - robots.txt - scripts/check_app_discovery_live.sh + - scripts/diagnose_growth_routes.py + - scripts/diagnose_growth_deploy.py - scripts/publish_app_discovery.sh - .github/workflows/live-acquisition-smoke.yml schedule: From 8fced9db327f8b4b776bd768453debda15fcd256 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:04:36 +0900 Subject: [PATCH 2/4] test(ci): ensure public press and metadata changes trigger read-only VPS smoke --- scripts/test_live_smoke_diagnostics.py | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/scripts/test_live_smoke_diagnostics.py b/scripts/test_live_smoke_diagnostics.py index d0437415..fb215c7f 100644 --- a/scripts/test_live_smoke_diagnostics.py +++ b/scripts/test_live_smoke_diagnostics.py @@ -15,6 +15,34 @@ class LiveFailureInventoryTests(unittest.TestCase): def setUpClass(cls): cls.yaml = WORKFLOW.read_text(encoding="utf-8") + def test_every_public_growth_change_rechecks_the_real_vps(self): + # Previously press/**, homepage, sitemap and robots changed on main + # without running the live smoke, allowing silent 404s/stale SEO. + source = self.yaml.split(" push:", 1)[1].split(" schedule:", 1)[0] + expected = ( + "index.html", "apps.html", "apps_data.json", "press/**", + "guides/**", "support/**", "sitemap.xml", "robots.txt", + "scripts/check_app_discovery_live.sh", + "scripts/diagnose_growth_routes.py", + "scripts/diagnose_growth_deploy.py", + "scripts/publish_app_discovery.sh", + ".github/workflows/live-acquisition-smoke.yml", + ) + for path in expected: + with self.subTest(path=path): + self.assertIn(f" - {path}\\n", source) + self.assertIn(" branches: [main]", source) + + def test_public_live_monitor_remains_read_only_and_recurring(self): + source = self.yaml + self.assertIn(" workflow_dispatch:", source) + self.assertIn("cron: '40 0 * * *'", source) + self.assertIn("permissions:\\n contents: read", source) + self.assertIn("runs-on: ubuntu-latest", source) + self.assertNotIn("bash scripts/publish_app_discovery.sh --apply", source) + self.assertNotIn("curl --request POST", source) + self.assertNotIn("continue-on-error: true", source) + def test_diagnostics_only_after_failed_public_smoke(self): source = self.yaml smoke = source.index(" - name: Check actual VPS HTTP pages") From 8e7bb51cebb5096a9ba3d12efc20a54015481aa5 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:04:59 +0900 Subject: [PATCH 3/4] test: match actual newline-delimited YAML path and permissions strings --- scripts/test_live_smoke_diagnostics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test_live_smoke_diagnostics.py b/scripts/test_live_smoke_diagnostics.py index fb215c7f..78d02beb 100644 --- a/scripts/test_live_smoke_diagnostics.py +++ b/scripts/test_live_smoke_diagnostics.py @@ -30,14 +30,14 @@ def test_every_public_growth_change_rechecks_the_real_vps(self): ) for path in expected: with self.subTest(path=path): - self.assertIn(f" - {path}\\n", source) + self.assertIn(f" - {path}\n", source) self.assertIn(" branches: [main]", source) def test_public_live_monitor_remains_read_only_and_recurring(self): source = self.yaml self.assertIn(" workflow_dispatch:", source) self.assertIn("cron: '40 0 * * *'", source) - self.assertIn("permissions:\\n contents: read", source) + self.assertIn("permissions:\n contents: read", source) self.assertIn("runs-on: ubuntu-latest", source) self.assertNotIn("bash scripts/publish_app_discovery.sh --apply", source) self.assertNotIn("curl --request POST", source) From e8d757b09d2ca799727028dd92266f4fc599f88c Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:05:59 +0900 Subject: [PATCH 4/4] test: separate owner-only deployment instructions from CI-executable commands --- scripts/test_live_smoke_diagnostics.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/test_live_smoke_diagnostics.py b/scripts/test_live_smoke_diagnostics.py index 78d02beb..b243f489 100644 --- a/scripts/test_live_smoke_diagnostics.py +++ b/scripts/test_live_smoke_diagnostics.py @@ -39,7 +39,10 @@ def test_public_live_monitor_remains_read_only_and_recurring(self): self.assertIn("cron: '40 0 * * *'", source) self.assertIn("permissions:\n contents: read", source) self.assertIn("runs-on: ubuntu-latest", source) - self.assertNotIn("bash scripts/publish_app_discovery.sh --apply", source) + # The failure summary prints an owner-only deploy command as + # instructions; it must not execute inside any CI step. + execution = source.split(" - name: Summarize release blockers and recovery", 1)[0] + self.assertNotIn("bash scripts/publish_app_discovery.sh --apply", execution) self.assertNotIn("curl --request POST", source) self.assertNotIn("continue-on-error: true", source)