Skip to content

Scheduling infrastructure for absolutely everyone.

perf: optimize postgres health check in all CI workflows (#26343)

Keith Williamsc47c6f290985
diff --git a/.github/workflows/api-v1-production-build.yml b/.github/workflows/api-v1-production-build.yml
index d3a35bc8f43..8f59aa5480f 100644
--- a/.github/workflows/api-v1-production-build.yml
+++ b/.github/workflows/api-v1-production-build.yml
@@ -56,10 +56,11 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: calendso
options: >-
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
+ --health-cmd "pg_isready -h 127.0.0.1 -U postgres"
+ --health-interval 2s
+ --health-timeout 3s
+ --health-retries 15
+ --health-start-period 2s
ports:
- 5432:5432
steps:
diff --git a/.github/workflows/e2e-api-v2.yml b/.github/workflows/e2e-api-v2.yml
index 1eb94959711..d080eb8e298 100644
--- a/.github/workflows/e2e-api-v2.yml
+++ b/.github/workflows/e2e-api-v2.yml
@@ -43,10 +43,11 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: calendso
options: >-
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
+ --health-cmd "pg_isready -h 127.0.0.1 -U postgres"
+ --health-interval 2s
+ --health-timeout 3s
+ --health-retries 15
+ --health-start-period 2s
ports:
- 5432:5432
redis:
diff --git a/.github/workflows/e2e-app-store.yml b/.github/workflows/e2e-app-store.yml
index 01952477b34..8a4ca30454f 100644
--- a/.github/workflows/e2e-app-store.yml
+++ b/.github/workflows/e2e-app-store.yml
@@ -57,10 +57,11 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: calendso
options: >-
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
+ --health-cmd "pg_isready -h 127.0.0.1 -U postgres"
+ --health-interval 2s
+ --health-timeout 3s
+ --health-retries 15
+ --health-start-period 2s
ports:
- 5432:5432
mailhog:
diff --git a/.github/workflows/e2e-embed-react.yml b/.github/workflows/e2e-embed-react.yml
index d82982fadb8..80112c3e4b4 100644
--- a/.github/workflows/e2e-embed-react.yml
+++ b/.github/workflows/e2e-embed-react.yml
@@ -57,10 +57,11 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: calendso
options: >-
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
+ --health-cmd "pg_isready -h 127.0.0.1 -U postgres"
+ --health-interval 2s
+ --health-timeout 3s
+ --health-retries 15
+ --health-start-period 2s
ports:
- 5432:5432
strategy:
diff --git a/.github/workflows/e2e-embed.yml b/.github/workflows/e2e-embed.yml
index 170270fb113..614b098d935 100644
--- a/.github/workflows/e2e-embed.yml
+++ b/.github/workflows/e2e-embed.yml
@@ -57,10 +57,11 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: calendso
options: >-
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
+ --health-cmd "pg_isready -h 127.0.0.1 -U postgres"
+ --health-interval 2s
+ --health-timeout 3s
+ --health-retries 15
+ --health-start-period 2s
ports:
- 5432:5432
mailhog:
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 9498cd55153..a5132a89d11 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -57,10 +57,11 @@ jobs:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: calendso
options: >-
- --health-cmd pg_isready
- --health-interval 10s
- --health-timeout 5s
- --health-retries 5
+ --health-cmd "pg_isready -h 127.0.0.1 -U postgres"
+ --health-interval 2s
+ --health-timeout 3s
+ --health-retries 15
+ --health-start-period 2s
ports:
- 5432:5432
mailhog: