Fix bridge status not inheriting canceled
What does this MR do and why?
CI bridges using strategy: depend should reflect the status of the downstream pipeline. We have a bug where a canceled downstream shows as a failed bridge. This MR fixes that behavior so the bridge status correctly shows as canceled.
Screenshots or screen recordings
Screen_Recording_2023-05-10_at_14.03.57
How to set up and validate locally
- You need 2 projects to validate this - Project A and Project B
- In Project B, add a simple CI config:
downstream_job: script: sleep 120 - In Project A's CI config, trigger the pipeline in Project B using
strategy: depend:trigger_pipeline: trigger: project: root/projecty branch: main strategy: depend - Run a pipeline in Project A
- Cancel the running job in the downstream pipeline
- See that the status of the bridge is also "canceled"
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #220794 (closed)