Skip to content
Snippets Groups Projects
Commit 3c05e5cd authored by Mayra Cabrera's avatar Mayra Cabrera :zero:
Browse files

Update stable branch check tooling

There are multiple `e2e:packag-and-test` pipelines, including
`follow-up-e2e:package-and-test-ee`. This MR updates the stable branch
tooling logic to search for an exact match to prevent false positives in
Danger.
parent 9253f07f
No related branches found
No related tags found
1 merge request!137316Update stable branch check tooling
......@@ -121,6 +121,7 @@ trigger-omnibus as-if-foss:
# Override gitlab repository so that omnibus doesn't use foss repository for CE build
GITLAB_ALTERNATIVE_REPO: $CI_PROJECT_URL
# If a rename is required for this job, please notify the Delivery team (`@gitlab-org/delivery`)
e2e:package-and-test-ee:
extends:
- .e2e-trigger-base
......
......@@ -251,6 +251,31 @@
end
end
context 'with multiple package-and-test pipelines' do
let(:pipeline_bridges_response) do
[
{
'name' => 'e2e:package-and-test-ee',
'status' => 'success',
'downstream_pipeline' => {
'id' => '123',
'status' => package_and_qa_state
}
},
{
'name' => 'follow-up-e2e:package-and-test-ee',
'status' => 'failed',
'downstream_pipeline' => {
'id' => '456',
'status' => 'failed'
}
}
]
end
it_behaves_like 'without a failure'
end
context 'when the version API request fails' do
let(:response_success) { false }
......
......@@ -108,7 +108,7 @@ def package_and_test_bridge(mr_head_pipeline_id)
gitlab
.api
.pipeline_bridges(helper.mr_target_project_id, mr_head_pipeline_id)
&.find { |bridge| bridge['name'].include?('package-and-test-ee') }
&.find { |bridge| bridge['name'] == 'e2e:package-and-test-ee' }
end
def stable_target_branch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment