From 1d05b0f238b242bd105514b01fc4468d2ed7d184 Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Wed, 14 Jan 2026 17:21:01 +0000 Subject: [PATCH] Fix integration tests running when deploy fails Changed 'when: always' to 'when: on_success' in integration test rules. This ensures tests only run after successful deployments, not after failures where they would hit stale environments. --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30232b4..339378b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -102,7 +102,7 @@ integration_test_stage: BASE_URL: https://orchard-stage.common.global.bsf.tools rules: - if: '$CI_COMMIT_BRANCH == "main"' - when: always + when: on_success # Integration tests for feature deployment integration_test_feature: @@ -112,7 +112,7 @@ integration_test_feature: BASE_URL: https://orchard-$CI_COMMIT_REF_SLUG.common.global.bsf.tools rules: - if: '$CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != "main"' - when: always + when: on_success # Run Python backend tests python_tests: