Pipeline Bug: pre-main-jh merges the unverified code into main-jh
Case
Successful Pipeline on pre-main-jh
: https://jihulab.com/gitlab-cn/gitlab/-/pipelines/2237671
(MR to pre-main-jh: !2163 (merged))
Although there is a successful pipeline, we do not want to trigger the code sync task in .post
stage.
Because this pipeline only contains part of the jobs, there are still failed jobs among the jobs that are not executed.
Specifically, if this job (https://jihulab.com/gitlab-cn/gitlab/-/jobs/11570018) is executed in the pipeline, it will fail too.
How to fix
❌
Plan one Always execute all jobs on pre-main-jh pipelines.
advantage | disadvantage |
---|---|
The pipeline has unified rules | Cannot merge QA fix alone |
Waste more pipeline resources |
✅
Plan two When pipelines on pre-main-jh do not perform necessary jobs, skip code sync job.
disadvantage | advantage |
---|---|
The pipeline has no unified rules | Can merge QA fix alone |
Save more pipeline resources |
由 Baodong 编辑于