From ca46ab1ea04c48dc4223adf9ed7a98a0024fc1bd Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Fri, 23 Jan 2026 19:55:39 +0000 Subject: [PATCH] Make release job wait for stage integration tests Add needs: [integration_test_stage, changelog] to release job override. This ensures the tag (which triggers prod deploy) is only created after stage integration tests pass, preventing race conditions between pipelines. --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2d9a6a5..9de58ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -94,6 +94,11 @@ cve_sbom_analysis: when: never - when: on_success +# Override release job to wait for stage integration tests before creating tag +# This ensures the tag (which triggers prod deploy) is only created after stage passes +release: + needs: [integration_test_stage, changelog] + # Full integration test suite template (for feature/stage deployments) # Runs the complete pytest integration test suite against the deployed environment .integration_test_template: &integration_test_template