Transient failures in qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb
Summary
Failures in
rspec ./qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb:46 # Create Commit data user views raw email patch
rspec ./qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb:56 # Create Commit data user views raw commit diff
https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/1179857 retried at https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/1180241.
Stack trace
1) Create Commit data user views raw email patch
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::Git::Repository::RepositoryCommandError:
The command HOME="/tmp/qa-netrc-credentials/23" git push https://gitlab-qa@staging.gitlab.com/gitlab-qa-sandbox-group/qa-test-2020-05-12-09-43-36-95158f8496b22279/project-with-code-544a8ce277748b6f.git master:master 2>&1 failed (128) with the following output:
fatal: unable to access 'https://gitlab-qa@staging.gitlab.com/gitlab-qa-sandbox-group/qa-test-2020-05-12-09-43-36-95158f8496b22279/project-with-code-544a8ce277748b6f.git/': gnutls_handshake() failed: Error in the push function.
# ./qa/git/repository.rb:221:in `run'
# ./qa/git/repository.rb:116:in `push_changes'
# ./qa/resource/repository/push.rb:98:in `block in fabricate!'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/git/repository.rb:33:in `block (2 levels) in perform'
# ./qa/git/repository.rb:33:in `chdir'
# ./qa/git/repository.rb:33:in `block in perform'
# ./qa/git/repository.rb:32:in `perform'
# ./qa/resource/repository/push.rb:50:in `fabricate!'
# ./qa/resource/repository/project_push.rb:38:in `fabricate!'
# ./qa/resource/base.rb:30:in `block (2 levels) in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:135:in `log_fabrication'
# ./qa/resource/base.rb:30:in `block in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:118:in `do_fabricate!'
# ./qa/resource/base.rb:29:in `fabricate_via_browser_ui!'
# ./qa/resource/base.rb:21:in `rescue in fabricate!'
# ./qa/resource/base.rb:18:in `fabricate!'
# ./qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb:12:in `block (3 levels) in <module:QA>'
# ./qa/specs/runner.rb:71: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: ---
# NotImplementedError:
# NotImplementedError
# ./qa/resource/base.rb:41:in `fabricate_via_api!'
2) Create Commit data user views raw commit diff
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::Git::Repository::RepositoryCommandError:
The command HOME="/tmp/qa-netrc-credentials/23" git push https://gitlab-qa@staging.gitlab.com/gitlab-qa-sandbox-group/qa-test-2020-05-12-09-43-36-95158f8496b22279/project-with-code-544a8ce277748b6f.git master:master 2>&1 failed (128) with the following output:
fatal: unable to access 'https://gitlab-qa@staging.gitlab.com/gitlab-qa-sandbox-group/qa-test-2020-05-12-09-43-36-95158f8496b22279/project-with-code-544a8ce277748b6f.git/': gnutls_handshake() failed: Error in the push function.
# ./qa/git/repository.rb:221:in `run'
# ./qa/git/repository.rb:116:in `push_changes'
# ./qa/resource/repository/push.rb:98:in `block in fabricate!'
# ./qa/scenario/actable.rb:16:in `perform'
# ./qa/git/repository.rb:33:in `block (2 levels) in perform'
# ./qa/git/repository.rb:33:in `chdir'
# ./qa/git/repository.rb:33:in `block in perform'
# ./qa/git/repository.rb:32:in `perform'
# ./qa/resource/repository/push.rb:50:in `fabricate!'
# ./qa/resource/repository/project_push.rb:38:in `fabricate!'
# ./qa/resource/base.rb:30:in `block (2 levels) in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:135:in `log_fabrication'
# ./qa/resource/base.rb:30:in `block in fabricate_via_browser_ui!'
# ./qa/resource/base.rb:118:in `do_fabricate!'
# ./qa/resource/base.rb:29:in `fabricate_via_browser_ui!'
# ./qa/resource/base.rb:21:in `rescue in fabricate!'
# ./qa/resource/base.rb:18:in `fabricate!'
/usr/local/bundle/gems/gitlab-qa-5.10.1/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_PRAEFECT_REPOSITORY_STORAGE="$QA_PRAEFECT_REPOSITORY_STORAGE" --env QA_DEBUG="$QA_DEBUG" --env QA_LOG_PATH="$QA_LOG_PATH" --env QA_CAN_TEST_ADMIN_FEATURES="$QA_CAN_TEST_ADMIN_FEATURES" --env QA_CAN_TEST_GIT_PROTOCOL_V2="$QA_CAN_TEST_GIT_PROTOCOL_V2" --env QA_CAN_TEST_PRAEFECT="$QA_CAN_TEST_PRAEFECT" --env GITLAB_QA_PASSWORD_1="$GITLAB_QA_PASSWORD_1" --env GITLAB_QA_PASSWORD_2="$GITLAB_QA_PASSWORD_2" --env GITHUB_USERNAME="$GITHUB_USERNAME" --env GITHUB_PASSWORD="$GITHUB_PASSWORD" --env CI="$CI" --env CI_RUNNER_ID="$CI_RUNNER_ID" --env CI_SERVER_HOST="$CI_SERVER_HOST" --env CI_NODE_TOTAL="$CI_NODE_TOTAL" --env GITLAB_CI="$GITLAB_CI" --env CI_SLACK_WEBHOOK_URL="$CI_SLACK_WEBHOOK_URL" --env GITLAB_QA_FORMLESS_LOGIN_TOKEN="$GITLAB_QA_FORMLESS_LOGIN_TOKEN" --volume /var/run/docker.sock:/var/run/docker.sock:z --volume /builds/gitlab-org/quality/staging/gitlab-qa-run-2020-05-12-09-42-00-2df645b4/gitlab-ee-qa-d457390e:/home/gitlab/qa/tmp:z --name gitlab-ee-qa-d457390e dev.gitlab.org:5005/gitlab/omnibus-gitlab/gitlab-ee-qa:13.0-ac8870f0325 Test::Instance::All https://staging.gitlab.com -- qa/specs/features/browser_ui/3_create --format RspecJunitFormatter --out "tmp/rspec-1179857.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-5.10.1/lib/gitlab/qa/docker/shellout.rb:19:in `execute!'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/docker/command.rb:36:in `execute!'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/docker/engine.rb:22:in `block in run'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/docker/engine.rb:16:in `tap'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/docker/engine.rb:16:in `run'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/component/specs.rb:37:in `perform'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/scenario/template.rb:8:in `block in perform'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/scenario/template.rb:6:in `tap'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/scenario/template.rb:6:in `perform'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/scenario/test/instance/deployment_base.rb:26:in `perform'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/scenario/template.rb:8:in `block in perform'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/scenario/template.rb:6:in `tap'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/scenario/template.rb:6:in `perform'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/lib/gitlab/qa/runner.rb:42:in `run'
from /usr/local/bundle/gems/gitlab-qa-5.10.1/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>'
# ./qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb:12:in `block (3 levels) in <module:QA>'
# ./qa/specs/runner.rb:71: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: ---
# NotImplementedError:
# NotImplementedError
# ./qa/resource/base.rb:41:in `fabricate_via_api!'
Top 10 slowest examples (345.89 seconds, 48.1% of total time):
Create Merge request creation from fork user forks a project, submits a merge request and maintainer merges it
54.76 seconds ./qa/specs/features/browser_ui/3_create/merge_request/merge_merge_request_from_fork_spec.rb:6
Create Push mirror a repository over HTTP configures and syncs a (push) mirrored repository
48 seconds ./qa/specs/features/browser_ui/3_create/repository/push_mirroring_over_http_spec.rb:6
Create Review a merge request in Web IDE opens and edits a merge request in Web IDE
45.61 seconds ./qa/specs/features/browser_ui/3_create/web_ide/review_merge_request_spec.rb:23
Create push after setting the file size limit via admin/application_settings push successful when the file size is under the limit
41.55 seconds ./qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb:23
Create push after setting the file size limit via admin/application_settings push fails when the file size is above the limit
29.41 seconds ./qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb:33
Create Create, list, and delete branches via web lists branches correctly after CRUD operations
26.35 seconds ./qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb:58
Create Files management user creates, edits and deletes a file via the Web
25.59 seconds ./qa/specs/features/browser_ui/3_create/repository/create_edit_delete_file_via_web_spec.rb:6
Create Wiki management user creates, edits, clones, and pushes to the wiki
25.42 seconds ./qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb:6
Create Git push over HTTP user using a personal access token pushes code to the repository
24.63 seconds ./qa/specs/features/browser_ui/3_create/repository/push_http_private_token_spec.rb:6
Create Merge request squashing user squashes commits while merging
24.58 seconds ./qa/specs/features/browser_ui/3_create/merge_request/squash_merge_request_spec.rb:6
Top 10 slowest example groups:
Create
54.77 seconds average (54.77 seconds / 1 example) ./qa/specs/features/browser_ui/3_create/merge_request/merge_merge_request_from_fork_spec.rb:4
Create
48.01 seconds average (48.01 seconds / 1 example) ./qa/specs/features/browser_ui/3_create/repository/push_mirroring_over_http_spec.rb:4
Create
45.62 seconds average (45.62 seconds / 1 example) ./qa/specs/features/browser_ui/3_create/web_ide/review_merge_request_spec.rb:4
Create
38.79 seconds average (77.57 seconds / 2 examples) ./qa/specs/features/browser_ui/3_create/repository/push_over_http_file_size_spec.rb:4
Create
26.36 seconds average (26.36 seconds / 1 example) ./qa/specs/features/browser_ui/3_create/repository/add_list_delete_branches_spec.rb:4
Create
25.6 seconds average (25.6 seconds / 1 example) ./qa/specs/features/browser_ui/3_create/repository/create_edit_delete_file_via_web_spec.rb:4
Create
25.42 seconds average (25.42 seconds / 1 example) ./qa/specs/features/browser_ui/3_create/wiki/create_edit_clone_push_wiki_spec.rb:4
Create
24.63 seconds average (24.63 seconds / 1 example) ./qa/specs/features/browser_ui/3_create/repository/push_http_private_token_spec.rb:4
Create
24.59 seconds average (24.59 seconds / 1 example) ./qa/specs/features/browser_ui/3_create/merge_request/squash_merge_request_spec.rb:4
Create
23.88 seconds average (23.88 seconds / 1 example) ./qa/specs/features/browser_ui/3_create/repository/use_ssh_key_spec.rb:4
Finished in 11 minutes 59 seconds (files took 2.84 seconds to load)
36 examples, 2 failures, 1 pending
Failed examples:
rspec ./qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb:46 # Create Commit data user views raw email patch
rspec ./qa/specs/features/browser_ui/3_create/repository/user_views_commit_diff_patch_spec.rb:56 # Create Commit data user views raw commit diff
Screenshot / HTML page
No screenshot as the error occurs in the before(:context)
block.
Possible fixes
/cc @mlapierre @at.ramya
Edited by Rémy Coutable