Multiple master end-to-end test failures because of custom hooks

Summary

Failing job(s):

Failing spec(s):

  • qa/specs/features/api/1_manage/project_access_token_spec.rb
  • 4_verify/pipeline_subscription_with_group_owned_project_spec.rb
  • qa/specs/features/shared_contexts/variable_inheritance_shared_context.rb
  • ...

Corresponding test case(s):

Stack trace

QA::Resource::Errors::ResourceFabricationFailedError:
        Fabrication of QA::Resource::Repository::Commit using the API failed (400) with `{"message":"denied by custom hooks"}`
expected no Exception, got #<QA::Resource::Errors::ResourceFabricationFailedError: Fabrication of QA::Resource::File using the A...ailed (400) with `{"message":"denied by custom hooks"}`>
The command HOME="/tmp/qa-netrc-credentials/39" git push http://root@gitlab-gitaly-cluster.test/gitlab-qa-sandbox-group-5/qa-test-2023-05-11-15-56-43-bc42dc380cff744c/project-with-secure-0d40b86483bbe1d6.git secure-mr:secure-mr 2>&1 failed (1) with the following output:
        remote: GitLab: 500 Internal Server Error
        To http://gitlab-gitaly-cluster.test/gitlab-qa-sandbox-group-5/qa-test-2023-05-11-15-56-43-bc42dc380cff744c/project-with-secure-0d40b86483bbe1d6.git
         ! [remote rejected] secure-mr -> secure-mr (pre-receive hook declined)

Screenshot / HTML page

verify_pipeline_editor_can_create_merge_request_2023-05-11-16-01-32.703

Possible fixes