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.

Bound non-gating E2E probation failures

pulse-triage[bot]0ba57b5a68b9
diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml
index bfeb14bbb9..0004507d86 100644
--- a/.github/workflows/test-e2e.yml
+++ b/.github/workflows/test-e2e.yml
@@ -144,6 +144,12 @@ jobs:
id: probation
if: ${{ !cancelled() && steps.stable.conclusion != 'skipped' }}
continue-on-error: true
+ # A broken probation surface can otherwise consume the entire 60m job
+ # budget through retries and cancel the job before continue-on-error
+ # can make the observational result non-gating. Playwright's own
+ # global timeout preserves its reports; the step timeout is a backstop
+ # for runner/process failures outside Playwright.
+ timeout-minutes: 12
working-directory: tests/integration
env:
PULSE_E2E_BOOTSTRAP_TOKEN: 0123456789abcdef0123456789abcdef0123456789abcdef
@@ -155,7 +161,9 @@ jobs:
PULSE_E2E_REPORT_DIR: playwright-report-probation
PULSE_E2E_RESULTS_DIR: test-results-probation
PULSE_MULTI_TENANT_ENABLED: "true"
- run: npm test -- --shard=${{ matrix.shard }}/8 --pass-with-no-tests
+ run: >-
+ npm test -- --shard=${{ matrix.shard }}/8 --pass-with-no-tests
+ --max-failures=5 --global-timeout=600000
- name: Report probation-tier outcome
if: ${{ !cancelled() && steps.probation.outcome != 'skipped' }}
diff --git a/scripts/tests/test_e2e_workflow_contract.py b/scripts/tests/test_e2e_workflow_contract.py
new file mode 100644
index 0000000000..e3fa1cc492
--- /dev/null
+++ b/scripts/tests/test_e2e_workflow_contract.py
@@ -0,0 +1,35 @@
+#!/usr/bin/env python3
+"""Guard the stable/probation Core E2E verdict boundary."""
+
+from pathlib import Path
+import unittest
+
+
+ROOT = Path(__file__).resolve().parents[2]
+WORKFLOW = ROOT / ".github" / "workflows" / "test-e2e.yml"
+
+
+class E2EWorkflowContractTest(unittest.TestCase):
+ def test_probation_failures_are_bounded_and_non_gating(self) -> None:
+ workflow = WORKFLOW.read_text()
+ probation_start = workflow.index(
+ "- name: Run probation-tier E2E suite (non-gating)"
+ )
+ report_start = workflow.index(
+ "- name: Report probation-tier outcome", probation_start
+ )
+ probation_step = workflow[probation_start:report_start]
+
+ self.assertIn("continue-on-error: true", probation_step)
+ self.assertIn("timeout-minutes: 12", probation_step)
+ self.assertIn("--max-failures=5", probation_step)
+ self.assertIn("--global-timeout=600000", probation_step)
+
+ verdict_start = workflow.index("- name: Check E2E results")
+ verdict = workflow[verdict_start:]
+ self.assertNotIn("needs.probation", verdict)
+ self.assertNotIn("steps.probation", verdict)
+
+
+if __name__ == "__main__":
+ unittest.main()