diff --git a/.github/workflows/js-ci.yml b/.github/workflows/js-ci.yml index 9753fe779a2..415fcdab895 100644 --- a/.github/workflows/js-ci.yml +++ b/.github/workflows/js-ci.yml @@ -11,6 +11,7 @@ on: env: MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25" + RETRY_COUNT: 3 concurrency: # Only cancel jobs for PR updates diff --git a/js/apps/account-ui/playwright.config.ts b/js/apps/account-ui/playwright.config.ts index 8580ab472ad..b6d8e2308bb 100644 --- a/js/apps/account-ui/playwright.config.ts +++ b/js/apps/account-ui/playwright.config.ts @@ -2,6 +2,8 @@ import { defineConfig, devices } from "@playwright/test"; import { getAccountUrl } from "./test/utils"; +const retryCount = parseInt(process.env.RETRY_COUNT || "0"); + /** * See https://playwright.dev/docs/test-configuration. */ @@ -9,7 +11,7 @@ export default defineConfig({ testDir: "./test", fullyParallel: true, forbidOnly: !!process.env.CI, - retries: process.env.CI ? 2 : 0, + retries: retryCount, workers: 1, reporter: process.env.CI ? [["github"], ["html"]] : "list", expect: { diff --git a/js/apps/admin-ui/cypress.config.ts b/js/apps/admin-ui/cypress.config.ts index 31fd952fe4d..bb8452c28ee 100644 --- a/js/apps/admin-ui/cypress.config.ts +++ b/js/apps/admin-ui/cypress.config.ts @@ -4,6 +4,7 @@ import fs from "node:fs"; import { isAsyncFunction } from "node:util/types"; const isCI = process.env.CI === "true"; +const retryCount = parseInt(process.env.RETRY_COUNT || "0"); export default defineConfig({ video: isCI, @@ -16,7 +17,7 @@ export default defineConfig({ experimentalMemoryManagement: true, retries: { - runMode: 3, + runMode: retryCount, }, e2e: {