Skip to content

Transient failures in qa/spec/features/api/3_create/repository specs

Pipeline: https://ops.gitlab.net/gitlab-org/quality/staging/pipelines/94568 Job: https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/750334

Failures in:

qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb:27 # Create Compare archives of different user projects with the same name and check they're different download archives of each user project then check they are different

qa/specs/features/api/3_create/repository/files_spec.rb:14 # API basics user creates a project with a file and deletes them afterwards

These may be related to the ongoing staging API issue. #36900 (closed)

Failures:

  1) Create Compare archives of different user projects with the same name and check they're different download archives of each user project then check they are different
     Failure/Error:
       project = Resource::Project.fabricate_via_api! do |project|
         project.standalone = true
         project.add_name_uuid = false
         project.name = project_name
         project.path_with_namespace = "#{user.username}/#{project_name}"
         project.user = user
         project.api_client = api_client
       end
     
     Errno::ECONNRESET:
       Connection reset by peer - SSL_connect
     # /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient/request.rb:715:in `transmit'
/usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/docker/shellout.rb:31:in `block in execute!': Docker command `docker run -t --rm --net=bridge --env QA_REMOTE_GRID_USERNAME="$QA_REMOTE_GRID_USERNAME" --env QA_REMOTE_GRID_ACCESS_KEY="$QA_REMOTE_GRID_ACCESS_KEY" --env QA_REMOTE_GRID_PROTOCOL="$QA_REMOTE_GRID_PROTOCOL" --env GITLAB_ADMIN_USERNAME="$GITLAB_ADMIN_USERNAME" --env GITLAB_ADMIN_PASSWORD="$GITLAB_ADMIN_PASSWORD" --env GITLAB_USERNAME="$GITLAB_USERNAME" --env GITLAB_PASSWORD="$GITLAB_PASSWORD" --env GITLAB_FORKER_USERNAME="$GITLAB_FORKER_USERNAME" --env GITLAB_FORKER_PASSWORD="$GITLAB_FORKER_PASSWORD" --env GITLAB_QA_ACCESS_TOKEN="$GITLAB_QA_ACCESS_TOKEN" --env GITLAB_QA_ADMIN_ACCESS_TOKEN="$GITLAB_QA_ADMIN_ACCESS_TOKEN" --env GITHUB_ACCESS_TOKEN="$GITHUB_ACCESS_TOKEN" --env GCLOUD_ACCOUNT_EMAIL="$GCLOUD_ACCOUNT_EMAIL" --env GCLOUD_ACCOUNT_KEY="$GCLOUD_ACCOUNT_KEY" --env CLOUDSDK_CORE_PROJECT="$CLOUDSDK_CORE_PROJECT" --env GCLOUD_REGION="$GCLOUD_REGION" --env SIGNUP_DISABLED="$SIGNUP_DISABLED" --env QA_DEBUG="$QA_DEBUG" --env QA_LOG_PATH="$QA_LOG_PATH" --env QA_CAN_TEST_GIT_PROTOCOL_V2="$QA_CAN_TEST_GIT_PROTOCOL_V2" --env GITLAB_QA_PASSWORD_1="$GITLAB_QA_PASSWORD_1" --env GITLAB_QA_PASSWORD_2="$GITLAB_QA_PASSWORD_2" --env GITHUB_OAUTH_APP_ID="$GITHUB_OAUTH_APP_ID" --env GITHUB_OAUTH_APP_SECRET="$GITHUB_OAUTH_APP_SECRET" --env GITHUB_USERNAME="$GITHUB_USERNAME" --env GITHUB_PASSWORD="$GITHUB_PASSWORD" --env CI="$CI" --env CI_NODE_TOTAL="$CI_NODE_TOTAL" --env GITLAB_CI="$GITLAB_CI" --env QA_CAN_TEST_ADMIN_FEATURES="$QA_CAN_TEST_ADMIN_FEATURES" --volume /var/run/docker.sock:/var/run/docker.sock:z --volume /builds/gitlab-org/quality/staging/gitlab-qa-run-2019-11-20-20-23-52-f100ebd0/gitlab-ee-qa-441d7702:/home/gitlab/qa/tmp:z --name gitlab-ee-qa-441d7702 dev.gitlab.org:5005/gitlab/omnibus-gitlab/gitlab-ee-qa:12.6-11d24afc8dc Test::Instance::All https://staging.gitlab.com -- qa/specs/features/api --format RspecJunitFormatter --out "tmp/rspec-750334.xml" --format html --out "tmp/rspec-$(echo $CI_JOB_NAME | sed 's/[ /]/_/g').htm" --color --format documentation` failed! (Gitlab::QA::Docker::Shellout::StatusError)
	from /usr/local/lib/ruby/2.6.0/open3.rb:219:in `popen_run'
	from /usr/local/lib/ruby/2.6.0/open3.rb:208:in `popen2e'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/docker/shellout.rb:19:in `execute!'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/docker/command.rb:36:in `execute!'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/docker/engine.rb:22:in `block in run'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/docker/engine.rb:16:in `tap'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/docker/engine.rb:16:in `run'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/component/specs.rb:36:in `perform'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/scenario/template.rb:8:in `block in perform'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/scenario/template.rb:6:in `tap'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/scenario/template.rb:6:in `perform'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/scenario/test/instance/deployment_base.rb:21:in `perform'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/scenario/template.rb:8:in `block in perform'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/scenario/template.rb:6:in `tap'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/scenario/template.rb:6:in `perform'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/lib/gitlab/qa/runner.rb:42:in `run'
	from /usr/local/bundle/gems/gitlab-qa-4.11.0/exe/gitlab-qa:8:in `<top (required)>'
	from /usr/local/bundle/bin/gitlab-qa:23:in `load'
	from /usr/local/bundle/bin/gitlab-qa:23:in `<main>'
     # /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient/request.rb:145:in `execute'
     # /usr/local/bundle/gems/rest-client-2.0.2/lib/restclient/request.rb:52:in `execute'
     # ./qa/support/api.rb:11:in `post'
     # ./qa/resource/api_fabricator.rb:76:in `api_post'
     # ./qa/resource/api_fabricator.rb:31:in `fabricate_via_api!'
     # ./qa/resource/project.rb:78:in `rescue in fabricate_via_api!'
     # ./qa/resource/project.rb:75:in `fabricate_via_api!'
     # ./qa/resource/base.rb:46:in `block (2 levels) in fabricate_via_api!'
     # ./qa/resource/base.rb:129:in `log_fabrication'
     # ./qa/resource/base.rb:46:in `block in fabricate_via_api!'
     # ./qa/resource/base.rb:112:in `do_fabricate!'
     # ./qa/resource/base.rb:45:in `fabricate_via_api!'
     # ./qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb:45:in `create_project'
     # ./qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb:23:in `block (4 levels) in <module:QA>'
     # ./qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb:19:in `each'
     # ./qa/specs/features/api/3_create/repository/project_archive_compare_spec.rb:19:in `block (3 levels) in <module:QA>'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
     # ./spec/spec_helper.rb:68:in `block (2 levels) in <top (required)>'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
     # ./qa/specs/runner.rb:69:in `perform'
     # ./qa/scenario/template.rb:10:in `block in perform'
     # ./qa/scenario/template.rb:8:in `tap'
     # ./qa/scenario/template.rb:8:in `perform'
     # ./qa/scenario/template.rb:33:in `perform'
     # ./qa/scenario/template.rb:10:in `block in perform'
     # ./qa/scenario/template.rb:8:in `tap'
     # ./qa/scenario/template.rb:8:in `perform'
     # ./qa/scenario/bootable.rb:28:in `launch!'
     # ------------------
     # --- Caused by: ---
     # QA::Resource::ApiFabricator::ResourceNotFoundError:
     #   Resource at https://staging.gitlab.com/api/v4/projects/gitlab-qa-user1%2Fproject-archive-download-14667b25ae99e2b5?private_token=SobyJRMGMsNzPg854LsT could not be found (404): `{"message":"404 Project Not Found"}`.
     #   ./qa/resource/api_fabricator.rb:69:in `api_get_from'

  2) API basics user creates a project with a file and deletes them afterwards
     Failure/Error: expect_status(201)
     
       expected: 201
            got: 400
     
       (compared using ==)
     # /usr/local/bundle/gems/airborne-0.2.13/lib/airborne/request_expectations.rb:36:in `expect_status'
     # ./qa/specs/features/api/3_create/repository/files_spec.rb:26:in `block (2 levels) in <module:QA>'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
     # ./spec/spec_helper.rb:68:in `block (2 levels) in <top (required)>'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:123:in `block in run'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `loop'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:110:in `run'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
     # /usr/local/bundle/gems/rspec-retry-0.6.1/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
     # ./qa/specs/runner.rb:69:in `perform'
     # ./qa/scenario/template.rb:10:in `block in perform'
     # ./qa/scenario/template.rb:8:in `tap'
     # ./qa/scenario/template.rb:8:in `perform'
     # ./qa/scenario/template.rb:33:in `perform'
     # ./qa/scenario/template.rb:10:in `block in perform'
     # ./qa/scenario/template.rb:8:in `tap'
     # ./qa/scenario/template.rb:8:in `perform'
     # ./qa/scenario/bootable.rb:28:in `launch!'

debug-qa-triggers-api.log

The screenshot is a little less than helpful, but here it is for thoroughness' sake: project_archive_compare_spec.rb_2019-11-20-20-25-51.216

Edited by Zeff Morgan