Multiple QA failures on Staging Ref due to 500 error on "gitlab-qa-sandbox-group" API request
Summary
500 error when navigating to the group via API https://staging-ref.gitlab.com/api/v4/groups/gitlab-qa-sandbox-group, however when navigating to it via Web https://staging-ref.gitlab.com/gitlab-qa-sandbox-group - it works fine. Needs further investigation.
Failing job(s): https://ops.gitlab.net/gitlab-org/quality/staging-ref/-/pipelines/1198793
Failing spec(s): multiple specs
Sentry: https://sentry.gitlab.net/gitlab/staging-ref/issues/3279777/?query=is%3Aunresolved - the error first appeared on May 12 around 1 AM based on Sentry.
TypeError
no implicit conversion of nil into String
app/models/project.rb in join at line 1409
def readme_url
readme_path = repository.readme_path
if readme_path
Gitlab::Routing.url_helpers.project_blob_url(self, File.join(default_branch, readme_path))
end
end
Stack trace
4) Create Git push over HTTP user pushes code to the repository
Failure/Error:
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.project.visit!
QA::Resource::Errors::InternalServerError:
Failed to GET https://staging-ref.gitlab.com/api/v4/groups/gitlab-qa-sandbox-group?private_token=[****] - (500): `{"message":"500 Internal Server Error"}`.
Correlation Id: 01G2VNNWAY0HETX3M9TESFBQ5D
Sentry Url: https://sentry.gitlab.net/gitlab/staging-ref/?environment=gstg-ref&query=correlation_id%3A%2201G2VNNWAY0HETX3M9TESFBQ5D%22
# ./qa/resource/api_fabricator.rb:94:in `api_get_from'
# ./qa/resource/api_fabricator.rb:86:in `api_get'
# ./qa/resource/sandbox.rb:51:in `fabricate_via_api!'
# ./qa/resource/base.rb:51:in `block (2 levels) in fabricate_via_api!'
# ./qa/resource/base.rb:82:in `log_and_record_fabrication'