added RETRY_COUNT environment variable (#35318)

* added RETRY_COUNT environment variable

fixes: #35225

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Update js/apps/admin-ui/cypress.config.ts

Co-authored-by: Stian Thorgersen <stian@redhat.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>
Co-authored-by: Stian Thorgersen <stian@redhat.com>
This commit is contained in:
Erik Jan de Wit 2024-12-17 14:10:43 +01:00 committed by GitHub
parent 1f278b75fc
commit f8f2b476a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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: {

View File

@ -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: {