Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

test: run production rollout guidance in docs-only CI

pulse-triage[bot]986bb2454d9b
diff --git a/.github/workflows/public-docs.yml b/.github/workflows/public-docs.yml
index cd8e4a6ec8..475d5999b6 100644
--- a/.github/workflows/public-docs.yml
+++ b/.github/workflows/public-docs.yml
@@ -12,6 +12,7 @@ on:
- "scripts/readme_entrypoints_test.py"
- "scripts/tests/run.sh"
- "scripts/tests/test_public_docs_workflow.py"
+ - "scripts/tests/test_production_rollout_docs.py"
- "scripts/tests/test_pve_backup_troubleshooting_docs.py"
- "scripts/tests/test_vm_disk_diagnostics.py"
- "scripts/tests/test_memory_troubleshooting_docs.py"
@@ -32,6 +33,7 @@ on:
- "scripts/readme_entrypoints_test.py"
- "scripts/tests/run.sh"
- "scripts/tests/test_public_docs_workflow.py"
+ - "scripts/tests/test_production_rollout_docs.py"
- "scripts/tests/test_pve_backup_troubleshooting_docs.py"
- "scripts/tests/test_vm_disk_diagnostics.py"
- "scripts/tests/test_memory_troubleshooting_docs.py"
@@ -75,6 +77,7 @@ jobs:
- name: Exercise backup safety and diagnostic recipes
run: |
scripts/tests/run.sh \
+ test_production_rollout_docs.py \
test_pve_backup_troubleshooting_docs.py \
test_vm_disk_diagnostics.py \
test_memory_troubleshooting_docs.py \
diff --git a/scripts/tests/test_public_docs_workflow.py b/scripts/tests/test_public_docs_workflow.py
index b0980d5516..f879b214a4 100644
--- a/scripts/tests/test_public_docs_workflow.py
+++ b/scripts/tests/test_public_docs_workflow.py
@@ -23,6 +23,7 @@ ROOT = Path(__file__).resolve().parents[2]
WORKFLOW = ROOT / ".github/workflows/public-docs.yml"
SAFETY_STEP = "Exercise backup safety and diagnostic recipes"
TESTS = (
+ "test_production_rollout_docs.py",
"test_pve_backup_troubleshooting_docs.py",
"test_vm_disk_diagnostics.py",
"test_memory_troubleshooting_docs.py",
@@ -119,7 +120,7 @@ class PublicDocsWorkflowTest(unittest.TestCase):
result, calls = self.run_adapters()
self.assertEqual(result.returncode, 0, result.stdout + result.stderr)
self.assertEqual(calls, list(TESTS))
- self.assertIn("Summary: 5/5 passed", result.stdout)
+ self.assertIn(f"Summary: {len(TESTS)}/{len(TESTS)} passed", result.stdout)
def test_each_failed_suite_is_a_failed_workflow_command(self):
for failing in TESTS:
@@ -127,7 +128,7 @@ class PublicDocsWorkflowTest(unittest.TestCase):
result, calls = self.run_adapters(failing)
self.assertNotEqual(result.returncode, 0, result.stdout + result.stderr)
self.assertEqual(calls, list(TESTS))
- self.assertIn("Summary: 4/5 passed", result.stdout)
+ self.assertIn(f"Summary: {len(TESTS)-1}/{len(TESTS)} passed", result.stdout)
self.assertIn("Failures: 1", result.stdout)