Skip to content

Don't raise BridgeStatusError

Fabio Pitino requested to merge fix-dont-raise-bridge-status-error into master

What does this MR do?

Related to: #205705 (closed)

This fixes a bug that was found on staging while testing child-parent pipelines. For some reasons (still to be investigated) a bridge job could be in non pending state while we try to call pipeline.update_bridge_status!. This call raises Ci::Pipeline::BridgeStatusError if the bridge is not in any active state.

Raising this error caused the Ci::CreateCrossProjectPipelineWorker to retry the operation, causing duplicate child pipelines.

Screenshots

https://gitlab.com/gitlab-org/gitlab/uploads/db8909a8f9429647908b9625c1d7c1fc/image.png

https://gitlab.com/gitlab-org/gitlab/uploads/9744fbcb8caeef60de53fb8e00cfeb04/image.png

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports