Skip to content
代码片段 群组 项目
未验证 提交 5703ceed 编辑于 作者: Peter Leitzen's avatar Peter Leitzen
浏览文件

Ensure that merge trains contain a specific list of CI jobs

The list of CI jobs run in "merge train" is static and we should ensure
that it only changes intentionally. Otherwise we could slow down the
merge train by accident (which we did in
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/172742).
上级 4828a060
No related branches found
No related tags found
2 合并请求!3031Merge per-main-jh to main-jh by luzhiyuan,!3030Merge per-main-jh to main-jh
...@@ -122,13 +122,18 @@ ...@@ -122,13 +122,18 @@
RSpec.shared_examples 'merge train pipeline' do RSpec.shared_examples 'merge train pipeline' do
let(:ci_merge_request_event_type) { 'merge_train' } let(:ci_merge_request_event_type) { 'merge_train' }
let(:expected_job_names) do
%w[
dont-interrupt-me
pre-merge-checks
]
end
it "succeeds with expected job" do it "succeeds with expected job" do
expect(pipeline.yaml_errors).to be_nil expect(pipeline.yaml_errors).to be_nil
expect(pipeline.errors).to be_empty expect(pipeline.errors).to be_empty
expect(pipeline.status).to eq('created') expect(pipeline.status).to eq('created')
expect(jobs).to include('pre-merge-checks') expect(jobs).to eq(expected_job_names)
expect(jobs).not_to include('upload-frontend-fixtures')
end end
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册