-
- Downloads
Merge branch 'fix/async-pipeline-processing-stale-data' into 'master'
Fix ci pipeline processing with async jobs ## What does this MR do? This MR fixes CI pipeline processing with asynchronous jobs called from `around_transition` provided by state machine. For details see https://github.com/pluginaweek/state_machine/issues/191 and commit f68acbac. ## Why was this MR needed? Recently merged https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6650 introduced problem with asynchronous job being deployed when `around_transition` still held transaction, which caused race condition that prevented pipeline status to change in a proper way. ## What are the relevant issue numbers? Closes #23111 See merge request !6736
No related branches found
No related tags found
Showing
- app/models/commit_status.rb 21 additions, 11 deletionsapp/models/commit_status.rb
- app/services/ci/process_pipeline_service.rb 2 additions, 0 deletionsapp/services/ci/process_pipeline_service.rb
- spec/services/merge_requests/merge_when_build_succeeds_service_spec.rb 19 additions, 5 deletions.../merge_requests/merge_when_build_succeeds_service_spec.rb
Please register or sign in to comment