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.
This commit is contained in:
Mondo Diaz
2026-01-14 17:21:01 +00:00
parent 5e18fa380d
commit c55c8ca882

View File

@@ -102,7 +102,7 @@ integration_test_stage:
BASE_URL: https://orchard-stage.common.global.bsf.tools BASE_URL: https://orchard-stage.common.global.bsf.tools
rules: rules:
- if: '$CI_COMMIT_BRANCH == "main"' - if: '$CI_COMMIT_BRANCH == "main"'
when: always when: on_success
# Integration tests for feature deployment # Integration tests for feature deployment
integration_test_feature: integration_test_feature:
@@ -112,7 +112,7 @@ integration_test_feature:
BASE_URL: https://orchard-$CI_COMMIT_REF_SLUG.common.global.bsf.tools BASE_URL: https://orchard-$CI_COMMIT_REF_SLUG.common.global.bsf.tools
rules: rules:
- if: '$CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != "main"' - if: '$CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != "main"'
when: always when: on_success
# Run Python backend tests # Run Python backend tests
python_tests: python_tests: