mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-26 11:49:16 +00:00
ci: retry E2E tests in CI to absorb flaky real-Docker timing (#1396)
The E2E suite includes real-Docker deploy and health-gate specs whose timing varies on shared CI runners (cold image pulls, gate observation windows). With no retries configured, a single transient timing blip failed the whole Playwright job. Enable 2 retries in CI only; local runs stay at 0 for fast, deterministic feedback. The existing trace: 'on-first-retry' now captures the retried attempt for triage.
This commit is contained in:
@@ -19,6 +19,10 @@ export default defineConfig({
|
||||
expect: { timeout: 5_000 },
|
||||
// Run tests serially - Sencho is a single-user app and tests share DB state
|
||||
workers: 1,
|
||||
// Retry only in CI: the deploy/health-gate specs drive real Docker container
|
||||
// runs, so image-pull and gate-window timing varies on shared runners. A retry
|
||||
// absorbs the transient blip; trace: 'on-first-retry' captures the retried run.
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
reporter: [['list'], ['html', { outputFolder: 'e2e/report', open: 'never' }]],
|
||||
|
||||
use: {
|
||||
|
||||
Reference in New Issue
Block a user