E2E test for MR with CODEOWNERS and Squash Commits

This test is a reaction to the repeated failure of a specific use case

  1. gitlab-org/gitlab#217125 (closed)
  2. gitlab-com/gl-infra/production#2985 (closed)

Steps

  1. Enable the gitaly_go_user_merge_branch feature flag.
  2. Create a repository with .gitlab/CODEOWNERS with * @root (or some user).
  3. Set the Protected Branches to this:

image

  1. Create a merge request with 2 commits.
  2. Click merge and be sure to click on "Squash commits".

Please see this comment specifically for more clarity: gitlab-com/gl-infra/production#2985 (comment 442783452)

Edited by Tomislav Nikić