Skip to content

Failure in qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb | 500 Internal Server error on Resource::Repository::ProjectPush.fabricate!

Summary

Failures on ProjectPush.fabricate!, 500 internal server error contacting API with GET on test group. This fails intermittently in this environment.

Passed in https://ops.gitlab.net/gitlab-org/gitlab-qa/-/jobs/4401400 and multiple other jobs.

Found in dev.gitlab.org: https://ops.gitlab.net/gitlab-org/gitlab-qa/-/jobs/4403458

Stack trace

Failure/Error:
       project_push = Resource::Repository::ProjectPush.fabricate! do |push|
         push.file_name = 'README.md'
         push.file_content = '# This is a test project'
         push.commit_message = 'Add README.md'
       end
     
     QA::Resource::ApiFabricator::InternalServerError:
       Failed to GET http://gitlab-gitaly-cluster.test/api/v4/groups/gitlab-qa-sandbox-group%2Fqa-test-2021-07-21-18-34-32-b62f43f9ea986fd0?private_token=[****] - (500): `{"message":"500 Internal Server Error"}`.
     # ./qa/resource/api_fabricator.rb:90:in `api_get_from'
     # ./qa/resource/api_fabricator.rb:82:in `api_get'
     # ./qa/resource/group.rb:50:in `fabricate_via_api!'
     # ./qa/resource/base.rb:50:in `block (2 levels) in fabricate_via_api!'

Screenshot / HTML page

NA

Possible fixes