2 Commits

Author SHA1 Message Date
Mondo Diaz
f4648ed7b1 Add auto_stop_in for feature environment cleanup
Feature branch environments will automatically stop after 1 week,
triggering the cleanup_feature job. This ensures orphaned deployments
are cleaned up even if the branch deletion doesn't trigger cleanup.
2026-01-14 17:35:33 +00:00
Mondo Diaz
1d05b0f238 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.
2026-01-14 17:21:01 +00:00

View File

@@ -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:
@@ -294,6 +294,7 @@ deploy_feature:
name: review/$CI_COMMIT_REF_SLUG
url: https://orchard-$CI_COMMIT_REF_SLUG.common.global.bsf.tools
on_stop: cleanup_feature
auto_stop_in: 1 week
kubernetes:
agent: esv/bsf/bsf-integration/orchard/orchard-mvp:orchard
rules: