From c47c6f29098571d9c1318110e682dc7891b9ee9a Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Wed, 31 Dec 2025 09:54:56 -0300 Subject: [PATCH] perf: optimize postgres health check in all CI workflows (#26343) * perf: optimize postgres health check in e2e workflow Co-Authored-By: keith@cal.com * perf: optimize postgres health check in all e2e workflows Co-Authored-By: keith@cal.com --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/api-v1-production-build.yml | 9 +++++---- .github/workflows/e2e-api-v2.yml | 9 +++++---- .github/workflows/e2e-app-store.yml | 9 +++++---- .github/workflows/e2e-embed-react.yml | 9 +++++---- .github/workflows/e2e-embed.yml | 9 +++++---- .github/workflows/e2e.yml | 9 +++++---- 6 files changed, 30 insertions(+), 24 deletions(-) diff --git a/.github/workflows/api-v1-production-build.yml b/.github/workflows/api-v1-production-build.yml index d3a35bc8f4..8f59aa5480 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 1eb9495971..d080eb8e29 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 01952477b3..8a4ca30454 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 d82982fadb..80112c3e4b 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 170270fb11..614b098d93 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 9498cd5515..a5132a89d1 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: