mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 23:12:06 -03:30
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:
parent
1f278b75fc
commit
f8f2b476a1
1
.github/workflows/js-ci.yml
vendored
1
.github/workflows/js-ci.yml
vendored
@ -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
|
||||
|
||||
@ -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: {
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user