From 67b4df1132fc9f4de519fbb18d771c04d3adf1a1 Mon Sep 17 00:00:00 2001 From: SuvabrataChowdhury <114484620+SuvabrataChowdhury@users.noreply.github.com> Date: Wed, 2 Dec 2026 23:42:38 +0530 Subject: [PATCH 1/4] service healthcheck setup --- docker-compose.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index ae88a3d8..f5d88041 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,5 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json + volumes: mysql_data: pipeline_scripts: @@ -84,6 +86,13 @@ services: FEATURE_PROVIDER_URI: http://flagd:8016 ports: - "8080:8080" + healthcheck: + test: ["CMD-SHELL", "curl -f http://localhost:8080/actuator/health || exit 1"] + interval: 15s + timeout: 5s + retries: 3 + start_period: 30s + volumes: - pipeline_scripts:/app/pipeline_scripts - pipeline_build_logs:/app/pipeline_build_logs @@ -113,4 +122,4 @@ services: - app depends_on: pipeline-app: - condition: service_started + condition: service_healthy From e17f888f2638f58873cb73e6114b8e1f8733eea9 Mon Sep 17 00:00:00 2001 From: SuvabrataChowdhury <114484620+SuvabrataChowdhury@users.noreply.github.com> Date: Thu, 3 Dec 2026 00:40:35 +0530 Subject: [PATCH 2/4] added smoke tests step --- .github/workflows/main_ci.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/main_ci.yaml b/.github/workflows/main_ci.yaml index 88cbc997..0e85bb8b 100644 --- a/.github/workflows/main_ci.yaml +++ b/.github/workflows/main_ci.yaml @@ -54,3 +54,22 @@ jobs: env: WORKSPACE_DIR: ${{ github.workspace }} run: bazel test //pipeline-ui:unit_test --test_output=all + + smoke-tests: + runs-on: ubuntu-latest + needs: [pipeline-service-validation, pipeline-ui-validation] + steps: + - uses: actions/checkout@v4 + + - name: Start containers + run: | + docker compose --env-file .env.local up --build --wait + + # TODO: include the happy trivial paths from e2e specs here + - name: Check pipeline service's health + run: | + curl -f http://localhost:8080/actuator/health || exit 1 + + - name: Check pipeline ui's health + run: | + curl -f http://localhost:3000/ From 7091a98ab2c3fafd27fc102a90fa9fa991fd67ec Mon Sep 17 00:00:00 2001 From: SuvabrataChowdhury <114484620+SuvabrataChowdhury@users.noreply.github.com> Date: Thu, 3 Dec 2026 01:07:32 +0530 Subject: [PATCH 3/4] detatched mode docker compose for ci --- .github/workflows/main_ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main_ci.yaml b/.github/workflows/main_ci.yaml index 0e85bb8b..5ccbf216 100644 --- a/.github/workflows/main_ci.yaml +++ b/.github/workflows/main_ci.yaml @@ -63,7 +63,7 @@ jobs: - name: Start containers run: | - docker compose --env-file .env.local up --build --wait + docker compose --env-file .env.local up -d --build --wait # TODO: include the happy trivial paths from e2e specs here - name: Check pipeline service's health From f81e45d98aea68f3b6f75a7031b5a78531417ea0 Mon Sep 17 00:00:00 2001 From: SuvabrataChowdhury <114484620+SuvabrataChowdhury@users.noreply.github.com> Date: Thu, 3 Dec 2026 01:18:30 +0530 Subject: [PATCH 4/4] pipeline UI curl check with retries as native support is not there for now --- .github/workflows/main_ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main_ci.yaml b/.github/workflows/main_ci.yaml index 5ccbf216..4d4dfd64 100644 --- a/.github/workflows/main_ci.yaml +++ b/.github/workflows/main_ci.yaml @@ -72,4 +72,4 @@ jobs: - name: Check pipeline ui's health run: | - curl -f http://localhost:3000/ + curl -fsS --retry 10 --retry-connrefused --retry-delay 1 --max-time 5 -o /dev/null http://localhost:3000/