Skip to content

Draft: Use persisted downstream project in Ci::BridgePolicy

What does this MR do and why?

Ci::Bridge#downstream_project reads from the build options and expands variables. This can be very expensive when rendering a many multi-project bridge jobs.

But if the bridge has been persisted, then the associated downstream pipeline should also have the project, and we should be able to use that instead.

See https://gitlab.com/gitlab-org/gitlab/-/pipelines/1156524794/stage.json?stage=test&performance_bar=flamegraph&stackprof_mode=wall for an example.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Edited by Hordur Freyr Yngvason

Merge request reports