Transient failure in qa/specs/features/browser_ui/3_create/repository/push_mirroring_lfs_over_http_spec.rb:6 # Create Push mirror a repository over HTTP configures and syncs LFS objects for a (push) mirrored repository
Summary
I believe the test added in !40137 (diffs, comment 415135195) cannot be run in production since an admin user is needed to enable/disable feature flags.
Stack trace
1) Create Push mirror a repository over HTTP configures and syncs LFS objects for a (push) mirrored repository
Failure/Error: Runtime::Feature.enable_and_verify('push_mirror_syncs_lfs')
QA::Runtime::Feature::AuthorizationError:
Administrator access is required to enable/disable feature flags. User 'root' is not an administrator.
# ./qa/runtime/feature.rb:62:in `api_client'
# ./qa/runtime/feature.rb:92:in `set_feature'
# ./qa/runtime/feature.rb:14:in `enable'
# ./qa/runtime/feature.rb:76:in `block in set_and_verify'
# ./qa/support/retrier.rb:26:in `block in retry_on_exception'
# ./qa/support/repeater.rb:22:in `repeat_until'
# ./qa/support/retrier.rb:20:in `retry_on_exception'
# ./qa/runtime/feature.rb:75:in `set_and_verify'
# ./qa/runtime/feature.rb:31:in `enable_and_verify'
# ./qa/specs/features/browser_ui/3_create/repository/push_mirroring_lfs_over_http_spec.rb:7: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:70: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: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:35: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!'
It also fails with:
QA::Git::Repository::RepositoryCommandError:
The command HOME="/tmp/qa-netrc-credentials/22" git push http://root@gitlab.test/gitlab-qa-sandbox-group/qa-test-2020-09-20-20-26-08-74f5f091eab2509c/project-with-code-0547c2af5f7b2003.git master:master 2>&1 failed (1) with the following output:
WARNING: Authentication error: Authentication required: Access forbidden. Check your access level.
batch response: Access forbidden. Check your access level.
error: failed to push some refs to 'http://root@gitlab.test/gitlab-qa-sandbox-group/qa-test-2020-09-20-20-26-08-74f5f091eab2509c/project-with-code-0547c2af5f7b2003.git'
Which should be fixed by !43233 (merged)
Possible fixes
Edited by Mark Lapierre