vitest.e2e.config.ts:
Read VITEST_RETRY env var (default 0) to set the global retry count.
Local runs keep retry=0; per-test withRetry() stays the precise tool
for known flaky paths. CI sets retry=2 to handle transient server 500s.
cli-e2e.yml:
Pass VITEST_RETRY=2 to the test step so each failing test gets up to
2 automatic retries before being reported as a failure.