Multiple failures in qa/specs/features/ee/browser_ui/3_create/repository/push_rules_spec

Summary

There are multiple failures on push_rules_spec on staging - https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/2181637

See the stack trace:

Stack trace

  1) Create Push Rules with commits restricted to verified emails rejects unverified emails
     Failure/Error:
       expect do
         push commit_message: commit_message, branch: branch, file: file, user: user, tag: tag, gpg: gpg
       end.not_to raise_error
     
       expected no Exception, got #<QA::Support::Run::CommandError: The command HOME="/tmp/qa-netrc-credentials/20" git push https://gi...tlab-qa-sandbox-group/qa-test-2020-10-26-12-43-38-cb7266a2bb8d14d3/push_rules-83d21cf99366105e.git'> with backtrace:
...
  2) Create Push Rules using signed commits restricts to signed commits
     Failure/Error:
       expect do
         push commit_message: commit_message, branch: branch, file: file, user: user, tag: tag, gpg: gpg
       end.not_to raise_error
     
       expected no Exception, got #<QA::Support::Run::CommandError: The command HOME="/tmp/qa-netrc-credentials/20" git push https://gi...tlab-qa-sandbox-group/qa-test-2020-10-26-12-43-38-cb7266a2bb8d14d3/push_rules-dd42768ae637baa3.git'> with backtrace:

...
  3) Create Push Rules using non signed commits restricts committing files with secrets
     Failure/Error:
       expect do
         push commit_message: commit_message, branch: branch, file: file, user: user, tag: tag, gpg: gpg
       end.to raise_error(QA::Support::Run::CommandError, /#{error}/)
     
       expected QA::Support::Run::CommandError with message matching /File\ name\ id_rsa\ was\ blacklisted\ by\ the\ pattern\ id_rsa\$/, got #<QA::Support::Run::CommandError: The command HOME="/tmp/qa-netrc-credentials/20" git push https://gi...tlab-qa-sandbox-group/qa-test-2020-10-26-12-43-38-cb7266a2bb8d14d3/push_rules-40af8406ffc00874.git'> with backtrace:
...
 4) Create Push Rules using non signed commits restricts users by email format
     Failure/Error: @project.add_member(gitlab_user, Resource::Members::AccessLevel::MAINTAINER)
     
     QA::Support::Repeater::RetriesExceededError:
       Retry condition not met after 3 attempts
...
  5) Create Push Rules using non signed commits restricts files by name and size
     Failure/Error:
       expect do
         push commit_message: commit_message, branch: branch, file: file, user: user, tag: tag, gpg: gpg
       end.to raise_error(QA::Support::Run::CommandError, /#{error}/)
     
       expected QA::Support::Run::CommandError with message matching /File "file" is larger than the allowed size of 1 MB/, got #<QA::Support::Run::CommandError: The command HOME="/tmp/qa-netrc-credentials/20" git push https://gi...tlab-qa-sandbox-group/qa-test-2020-10-26-12-43-38-cb7266a2bb8d14d3/push_rules-40af8406ffc00874.git'> with backtrace:
...
 6) Create Push Rules using non signed commits allows an unrestricted push
     Failure/Error:
       expect do
         push commit_message: commit_message, branch: branch, file: file, user: user, tag: tag, gpg: gpg
       end.not_to raise_error
     
       expected no Exception, got #<QA::Support::Run::CommandError: The command HOME="/tmp/qa-netrc-credentials/20" git push https://gi...tlab-qa-sandbox-group/qa-test-2020-10-26-12-43-38-cb7266a2bb8d14d3/push_rules-40af8406ffc00874.git'> with backtrace:

Screenshot / HTML page

n/a git push failures

Logs show:

remote: GitLab: Internal API error (502)

502 is a Bad Gateway error. Probably transient infrastructure issues

Possible fixes

Edited by Mark Lapierre