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.

Split Core E2E into gating stable and non-gating probation tiers

rcourtmanf2fa92f576d8
diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml
index 0f97b5e61e..abc266292b 100644
--- a/.github/workflows/test-e2e.yml
+++ b/.github/workflows/test-e2e.yml
@@ -80,7 +80,12 @@ jobs:
PULSE_MULTI_TENANT_ENABLED: "true"
run: node scripts/pretest.mjs
- - name: Run E2E suite
+ # Two-tier run (see PROBATION_SPECS in tests/integration/playwright.config.ts
+ # for the tier mechanism and the promotion/demotion rule). The stable tier
+ # is the gate; the probation tier reuses the same containers but reports
+ # through continue-on-error so a probation flake cannot paint main red.
+ - name: Run stable-tier E2E suite
+ id: stable
working-directory: tests/integration
env:
PULSE_E2E_BOOTSTRAP_TOKEN: 0123456789abcdef0123456789abcdef0123456789abcdef
@@ -88,9 +93,39 @@ jobs:
PULSE_E2E_SKIP_PLAYWRIGHT_INSTALL: "true"
PULSE_E2E_PERF: "1"
PULSE_E2E_REQUIRE_DEFAULT_MOCK_READY: "true"
+ PULSE_E2E_TIER: "stable"
PULSE_MULTI_TENANT_ENABLED: "true"
run: npm test -- --shard=${{ matrix.shard }}/8
+ # Runs even when the stable tier failed (its data still counts toward
+ # promotion), but not when the stable tier was skipped — that means the
+ # environment never came up and every probation spec would fail on it.
+ - name: Run probation-tier E2E suite (non-gating)
+ id: probation
+ if: ${{ !cancelled() && steps.stable.conclusion != 'skipped' }}
+ continue-on-error: true
+ working-directory: tests/integration
+ env:
+ PULSE_E2E_BOOTSTRAP_TOKEN: 0123456789abcdef0123456789abcdef0123456789abcdef
+ PULSE_E2E_SKIP_DOCKER: "true"
+ PULSE_E2E_SKIP_PLAYWRIGHT_INSTALL: "true"
+ PULSE_E2E_PERF: "1"
+ PULSE_E2E_REQUIRE_DEFAULT_MOCK_READY: "true"
+ PULSE_E2E_TIER: "probation"
+ 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
+
+ - name: Report probation-tier outcome
+ if: ${{ !cancelled() && steps.probation.outcome != 'skipped' }}
+ run: |
+ if [ "${{ steps.probation.outcome }}" = "failure" ]; then
+ echo "⚠️ Probation tier FAILED on shard ${{ matrix.shard }} (non-gating; see the playwright-report-probation artifact). A probation spec's 10-consecutive-green promotion count restarts." >> "$GITHUB_STEP_SUMMARY"
+ else
+ echo "Probation tier passed on shard ${{ matrix.shard }} (non-gating)." >> "$GITHUB_STEP_SUMMARY"
+ fi
+
- name: Collect container logs
if: always()
working-directory: tests/integration
@@ -118,6 +153,24 @@ jobs:
path: tests/integration/test-results/
retention-days: 3
+ # continue-on-error keeps the job green on a probation failure, so
+ # failure() never fires for these; key off the step outcome instead.
+ - name: Upload probation Playwright report
+ if: ${{ !cancelled() && steps.probation.outcome == 'failure' }}
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: playwright-report-probation-shard-${{ matrix.shard }}
+ path: tests/integration/playwright-report-probation/
+ retention-days: 3
+
+ - name: Upload probation test videos and screenshots
+ if: ${{ !cancelled() && steps.probation.outcome == 'failure' }}
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
+ with:
+ name: test-failures-probation-shard-${{ matrix.shard }}
+ path: tests/integration/test-results-probation/
+ retention-days: 3
+
agent-registration:
name: Agent registration lifecycle
runs-on: ubuntu-24.04
@@ -201,14 +254,19 @@ jobs:
- agent-registration
if: always()
steps:
+ # The e2e shards fail only on stable-tier failures: the probation tier
+ # runs behind continue-on-error inside each shard, so its failures are
+ # reported (shard summaries + probation artifacts) without reaching
+ # this verdict. Mechanism and promotion rule: PROBATION_SPECS in
+ # tests/integration/playwright.config.ts.
- name: Check E2E results
run: |
if [ "${{ needs.e2e.result }}" != "success" ]; then
- echo "E2E shards did not all pass (result: ${{ needs.e2e.result }})"
+ echo "Stable-tier E2E shards did not all pass (result: ${{ needs.e2e.result }})"
exit 1
fi
if [ "${{ needs.agent-registration.result }}" != "success" ]; then
echo "Agent registration lifecycle did not pass (result: ${{ needs.agent-registration.result }})"
exit 1
fi
- echo "All E2E shards and the agent registration lifecycle passed"
+ echo "All stable-tier E2E shards and the agent registration lifecycle passed (probation tier is non-gating)"
diff --git a/tests/integration/.gitignore b/tests/integration/.gitignore
index ca13e670c7..e3f3d4c1dd 100644
--- a/tests/integration/.gitignore
+++ b/tests/integration/.gitignore
@@ -1,6 +1,8 @@
node_modules/
/test-results/
+/test-results-probation/
/playwright-report/
+/playwright-report-probation/
/playwright/.cache/
.env
local/
diff --git a/tests/integration/README.md b/tests/integration/README.md
index 31772f3534..309ad60de9 100644
--- a/tests/integration/README.md
+++ b/tests/integration/README.md
@@ -72,6 +72,18 @@ cd tests/integration
npm test
```
+### CI Tiers (stable / probation / quarantine)
+CI splits the suite into a gating **stable** tier and a non-gating
+**probation** tier, selected with `PULSE_E2E_TIER=stable|probation`
+(unset = the full suite, which is what `npm test` runs locally). The
+tier lists, the classification data behind them, and the
+promotion/demotion rule (10 consecutive green main runs promotes a
+probation spec; one failure or retry-flake demotes it back) are
+documented next to `PROBATION_SPECS` and `QUARANTINED_SPECS` in
+`playwright.config.ts`. Quarantined specs are rotted and do not run at
+all; probation specs run on every push but cannot fail the
+`e2e-verdict` job in `.github/workflows/test-e2e.yml`.
+
### Eval Packs (No Manual Steps)
Run the curated scenario pack (multi-tenant, retired-trial-acquisition, cloud-hosting, cloud-billing-lifecycle) and emit a report:
```bash
diff --git a/tests/integration/playwright.config.ts b/tests/integration/playwright.config.ts
index a7c44a7dbf..5eba08b354 100644
--- a/tests/integration/playwright.config.ts
+++ b/tests/integration/playwright.config.ts
@@ -21,6 +21,73 @@ const QUARANTINED_SPECS = [
'**/48-summary-hover-selection.spec.ts',
];
+/**
+ * PROBATION (2026-07-20): specs that run on every push but do NOT gate the
+ * Core E2E verdict. CI runs the suite in two passes per shard, selected by
+ * PULSE_E2E_TIER: "stable" (everything not listed here — gating) and
+ * "probation" (this list — reported, continue-on-error). Locally, with
+ * PULSE_E2E_TIER unset, both tiers run together exactly as before.
+ *
+ * Seeded from per-spec failure data mined out of the "Core E2E Tests"
+ * workflow's failed-shard logs for the 31 completed main runs between the
+ * 2026-07-18 quarantine delist and 2026-07-20: every spec that failed or
+ * retry-flaked within the 10 most recent completed runs starts here; specs
+ * whose last incident is older already satisfy the promotion rule below.
+ *
+ * Promotion rule — a spec earns its way OUT of this list (into the gating
+ * stable tier) after 10 consecutive Core E2E runs on main in which it
+ * neither failed nor went flaky (a retry-pass reported as "flaky" counts as
+ * an incident — the retry hid it from the verdict, not from this ledger).
+ * Demotion rule — one flake on main demotes a stable spec back to this
+ * list, restarting its count. A spec leaves the suite only via QUARANTINE
+ * (still-rotted, doesn't run) or deliberate deletion; probation is for
+ * specs that run green sometimes but haven't yet proven they always do.
+ */
+const PROBATION_SPECS = [
+ '**/01-core-e2e.spec.ts',
+ '**/02-navigation-perf.spec.ts',
+ '**/04-mobile.spec.ts',
+ '**/05-settings-mobile-audit.spec.ts',
+ '**/11-first-session.spec.ts',
+ '**/15-settings-shell-consistency.spec.ts',
+ '**/20-local-doc-links.spec.ts',
+ '**/21-truenas-connections-workspace.spec.ts',
+ '**/38-vmware-ai-chat-mentions.spec.ts',
+ '**/39-vmware-resource-detail-drawer.spec.ts',
+ '**/40-vmware-storage-source-filter.spec.ts',
+ '**/41-vmware-phase1-exclusion-integrity.spec.ts',
+ '**/42-vmware-ai-chat-read-recovery.spec.ts',
+ '**/43-platform-mock-runtime.spec.ts',
+ '**/44-workloads-chart-spacing.spec.ts',
+ '**/45-workloads-memory-tail.spec.ts',
+ '**/46-storage-summary-continuity.spec.ts',
+ '**/49-demo-scenario-curation.spec.ts',
+ '**/50-storage-physical-disk-io-history.spec.ts',
+ '**/56-pulse-account-upgrade-bootstrap.spec.ts',
+ '**/59-workloads-column-layout.spec.ts',
+ '**/62-storage-growth-column.spec.ts',
+ '**/64-workloads-proxmox-refresh-stability.spec.ts',
+ '**/68-platform-pages-shell.spec.ts',
+ '**/77-msp-isolation.spec.ts',
+ '**/79-update-flow.spec.ts',
+];
+
+const E2E_TIER = String(process.env.PULSE_E2E_TIER || '')
+ .trim()
+ .toLowerCase();
+if (E2E_TIER && E2E_TIER !== 'stable' && E2E_TIER !== 'probation') {
+ throw new Error(
+ `PULSE_E2E_TIER must be "stable", "probation", or unset (got "${E2E_TIER}")`,
+ );
+}
+// Stable tier ignores probation specs; probation tier runs only them.
+const TIER_IGNORE = E2E_TIER === 'stable' ? PROBATION_SPECS : [];
+
+// CI runs both tiers inside one job; separate output roots keep the
+// probation pass from clobbering the stable pass's report and artifacts.
+const REPORT_DIR = process.env.PULSE_E2E_REPORT_DIR || 'playwright-report';
+const RESULTS_DIR = process.env.PULSE_E2E_RESULTS_DIR || 'test-results';
+
/**
* Playwright configuration for Pulse update integration tests
* See https://playwright.dev/docs/test-configuration
@@ -28,6 +95,10 @@ const QUARANTINED_SPECS = [
export default defineConfig({
testDir: './tests',
+ ...(E2E_TIER === 'probation' ? { testMatch: PROBATION_SPECS } : {}),
+
+ outputDir: RESULTS_DIR,
+
/* Run tests in files in parallel */
fullyParallel: false, // Update tests should run sequentially
@@ -49,9 +120,9 @@ export default defineConfig({
/* Reporter to use */
reporter: [
- ['html', { outputFolder: 'playwright-report', open: 'never' }],
+ ['html', { outputFolder: REPORT_DIR, open: 'never' }],
['list'],
- ['junit', { outputFile: 'test-results/junit.xml' }]
+ ['junit', { outputFile: `${RESULTS_DIR}/junit.xml` }]
],
/* Shared test timeout */
@@ -95,7 +166,7 @@ export default defineConfig({
},
// Mobile-specific tests are intentionally excluded from the desktop project;
// they rely on mobile viewports where md:hidden nav is visible, tables overflow, etc.
- testIgnore: [...QUARANTINED_SPECS, '**/04-mobile.spec.ts'],
+ testIgnore: [...QUARANTINED_SPECS, ...TIER_IGNORE, '**/04-mobile.spec.ts'],
},
{
name: 'mobile-chrome',
@@ -106,14 +177,24 @@ export default defineConfig({
// so exclude them to avoid unnecessary browser launches. The visual
// crawl takes 5+ minutes per project; one desktop pass is the budgeted
// coverage, and dedicated mobile specs cover mobile layout.
- testIgnore: [...QUARANTINED_SPECS, '**/journeys/**', '**/99-visual-crawl.spec.ts'],
+ testIgnore: [
+ ...QUARANTINED_SPECS,
+ ...TIER_IGNORE,
+ '**/journeys/**',
+ '**/99-visual-crawl.spec.ts',
+ ],
},
{
name: 'mobile-safari',
use: {
...devices['iPhone 12'],
},
- testIgnore: [...QUARANTINED_SPECS, '**/journeys/**', '**/99-visual-crawl.spec.ts'],
+ testIgnore: [
+ ...QUARANTINED_SPECS,
+ ...TIER_IGNORE,
+ '**/journeys/**',
+ '**/99-visual-crawl.spec.ts',
+ ],
},
// Uncomment to test on Firefox and WebKit