From 6ce3412a9816339b59dc40bc8aa1d7ff64abfcc9 Mon Sep 17 00:00:00 2001 From: Manikanth Sai Date: Tue, 20 May 2025 14:03:42 +0100 Subject: [PATCH 1/4] Wait for DT service when profile is set to backend --- .github/actions/hps_services/action.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/actions/hps_services/action.yml b/.github/actions/hps_services/action.yml index c53ab19da..4c947cbf5 100644 --- a/.github/actions/hps_services/action.yml +++ b/.github/actions/hps_services/action.yml @@ -107,12 +107,19 @@ runs: working-directory: ./docker-compose-artifact - name: Wait for services + env: + PROFILE: ${{ inputs.profile }} shell: bash run: | # retry each service max 20 times - wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/jms/api/v1 - wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/fs/api/v1 - wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/rms/api/v1 + if [ "$PROFILE" = "backend" ]; then + wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/dt/api/v1 + else + wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/jms/api/v1 + wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/fs/api/v1 + wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/rms/api/v1 + fi + - name: Set outputs id: set-outputs From 5e702e92177c173a6bb2cb200d904fa6a461605b Mon Sep 17 00:00:00 2001 From: Manikanth Sai Date: Tue, 20 May 2025 14:19:49 +0100 Subject: [PATCH 2/4] change branch for testing --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 510240173..696a356eb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,7 +52,7 @@ jobs: - name: Start HPS services id: hps-services - uses: ansys/pyhps/.github/actions/hps_services@main + uses: ansys/pyhps/.github/actions/hps_services@maint/action with: token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} ghcr-username: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} From 39e3a53e26381dc6f0cecc63aab31056d3dbb0f7 Mon Sep 17 00:00:00 2001 From: Manikanth Sai Date: Tue, 20 May 2025 14:29:35 +0100 Subject: [PATCH 3/4] retry for 502 error --- .github/actions/hps_services/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/hps_services/action.yml b/.github/actions/hps_services/action.yml index 4c947cbf5..6993bab4e 100644 --- a/.github/actions/hps_services/action.yml +++ b/.github/actions/hps_services/action.yml @@ -113,7 +113,7 @@ runs: run: | # retry each service max 20 times if [ "$PROFILE" = "backend" ]; then - wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/dt/api/v1 + wget --retry-connrefused --retry-on-http-error=503,404,502 --no-check-certificate -t 20 -O- https://localhost:8443/hps/dt/api/v1 else wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/jms/api/v1 wget --retry-connrefused --retry-on-http-error=503,404 --no-check-certificate -t 20 -O- https://localhost:8443/hps/fs/api/v1 From 53c3fb119c2d7dc152770d3103162194fbca438c Mon Sep 17 00:00:00 2001 From: Manikanth Sai Date: Tue, 20 May 2025 14:32:57 +0100 Subject: [PATCH 4/4] revert branch --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 696a356eb..510240173 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,7 +52,7 @@ jobs: - name: Start HPS services id: hps-services - uses: ansys/pyhps/.github/actions/hps_services@maint/action + uses: ansys/pyhps/.github/actions/hps_services@main with: token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} ghcr-username: ${{ secrets.PYANSYS_CI_BOT_USERNAME }}