Measure the impact of using merge request specific ref (`refs/merge-requests/:iid/head`)
Tl;dr;
This issue is preliminary work for https://gitlab.com/gitlab-org/gitlab-ee/issues/7380. This issue has to be solved either way and considered as a checkpoint in the big picture.
Problem to Solve
Currently, GitLab Runner can fetch source code from only branch/tag refs, such as refs/heads/branch_name
or refs/tags/tag_name
. However, in order to support https://gitlab.com/gitlab-org/gitlab-ee/issues/7380 workflow, GitLab Runner has to be able to fetch source code from custom refs.
Today, we have a custom ref on the merge request context. This ref is formatted refs/merge-requests/:iid/head
and it points to the HEAD sha of the source branch. We should use this ref sooner than later because it's quite breaking change as it could break the other functionlities e.g. https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/25504#note_145792438. We should measure the impact before we stepping into https://gitlab.com/gitlab-org/gitlab-ee/issues/7380, which uses refs/merge-requests/:iid/merge
ref.
Design and design requirements
FE design specs!
Merge request widget
Relies on the same logic that would be implemented with https://gitlab.com/gitlab-org/gitlab-ce/issues/40246
Merge request widget pipeline block
Pipeline list view
Pipeline detail view widget
Job detail view sidebar
Merge request list view
Project settings merge request settings
Requirements | Mockups |
---|---|
|
![]() |
Put the feature behind the feature flag
ci_detached_pipeline