Failure in browser_ui/3_create/repository/move_project_create_fork_spec.rb | Create Gitaly repository storage creates a 2nd fork after moving the parent project
Full description
Create Gitaly repository storage creates a 2nd fork after moving the parent project
File path
./qa/specs/features/browser_ui/3_create/repository/move_project_create_fork_spec.rb
Stack trace
Failure/Error:
Resource::Repository::ProjectPush.fabricate! do |push|
push.project = second_fork_project
push.file_name = 'new_file'
push.file_content = '# This is a new file'
push.commit_message = 'Add new file'
push.new_branch = false
end.project.visit!
QA::Support::Run::CommandError:
The command HOME="/tmp/qa-netrc-credentials/38" git push http://root@gitlab.test/gitlab-qa-user1/second-fork-of-parent-project-97152c568a521f1d.git main:main 2>&1 failed (1) with the following output:
remote: GitLab: You are not allowed to push code to protected branches on this project.
To http://gitlab.test/gitlab-qa-user1/second-fork-of-parent-project-97152c568a521f1d.git
! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'http://gitlab.test/gitlab-qa-user1/second-fork-of-parent-project-97152c568a521f1d.git'
First happened in https://gitlab.com/gitlab-org/gitlab/-/jobs/4220675945.
Related test case: https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347787.