Quarantined test: ee/spec/services/ci/runners/reset_registration_token_service_spec.rb
Job #2490581423 failed for fb0e194b:
Failures:
1) Ci::Runners::ResetRegistrationTokenService#execute with instance scope behaves like a registration token reset operation without user does not audit and returns false
Failure/Error: !invalidations.empty? || !cached_html_up_to_date?(markdown_field)
NoMethodError:
undefined method `ensure_registered' for #<RSpec::Mocks::RootSpace:0x00007f240bed5e50>
Shared Example Group: "a registration token reset operation" called from ./ee/spec/services/ci/runners/reset_registration_token_service_spec.rb:64
# ./app/models/concerns/cache_markdown_field.rb:223:in `block in cache_markdown_field'
# ./app/models/concerns/cache_markdown_field.rb:98:in `attribute_invalidated?'
# ./app/models/concerns/cache_markdown_field.rb:94:in `block in invalidated_markdown_cache?'
# ./app/models/concerns/cache_markdown_field.rb:94:in `any?'
# ./app/models/concerns/cache_markdown_field.rb:94:in `invalidated_markdown_cache?'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:70:in `transaction'
# ./ee/spec/services/ci/runners/reset_registration_token_service_spec.rb:57:in `block (3 levels) in <top (required)>'
2) Ci::Runners::ResetRegistrationTokenService#execute with instance scope behaves like a registration token reset operation with unauthorized user does not audit and returns false
Failure/Error: !invalidations.empty? || !cached_html_up_to_date?(markdown_field)
NoMethodError:
undefined method `ensure_registered' for #<RSpec::Mocks::RootSpace:0x00007f240bed5e50>
Shared Example Group: "a registration token reset operation" called from ./ee/spec/services/ci/runners/reset_registration_token_service_spec.rb:64
# ./app/models/concerns/cache_markdown_field.rb:223:in `block in cache_markdown_field'
# ./app/models/concerns/cache_markdown_field.rb:98:in `attribute_invalidated?'
# ./app/models/concerns/cache_markdown_field.rb:94:in `block in invalidated_markdown_cache?'
# ./app/models/concerns/cache_markdown_field.rb:94:in `any?'
# ./app/models/concerns/cache_markdown_field.rb:94:in `invalidated_markdown_cache?'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:70:in `transaction'
# ./ee/spec/services/ci/runners/reset_registration_token_service_spec.rb:57:in `block (3 levels) in <top (required)>'
3) Ci::Runners::ResetRegistrationTokenService#execute with instance scope behaves like a registration token reset operation with admin user calls security_event on RunnersTokenAuditEventService and returns the new token
Failure/Error: !invalidations.empty? || !cached_html_up_to_date?(markdown_field)
NoMethodError:
undefined method `ensure_registered' for #<RSpec::Mocks::RootSpace:0x00007f240bed5e50>
Shared Example Group: "a registration token reset operation" called from ./ee/spec/services/ci/runners/reset_registration_token_service_spec.rb:64
# ./app/models/concerns/cache_markdown_field.rb:223:in `block in cache_markdown_field'
# ./app/models/concerns/cache_markdown_field.rb:98:in `attribute_invalidated?'
# ./app/models/concerns/cache_markdown_field.rb:94:in `block in invalidated_markdown_cache?'
# ./app/models/concerns/cache_markdown_field.rb:94:in `any?'
# ./app/models/concerns/cache_markdown_field.rb:94:in `invalidated_markdown_cache?'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:119:in `block in write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:112:in `block in read_write'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:172:in `retry_with_backoff'
# ./lib/gitlab/database/load_balancing/load_balancer.rb:110:in `read_write'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:118:in `write_using_load_balancer'
# ./lib/gitlab/database/load_balancing/connection_proxy.rb:70:in `transaction'
# ./ee/spec/services/ci/runners/reset_registration_token_service_spec.rb:57:in `block (3 levels) in <top (required)>'
Finished in 2 minutes 46.9 seconds (files took 1 minute 0.86 seconds to load)
166 examples, 3 failures
Failed examples:
rspec './ee/spec/services/ci/runners/reset_registration_token_service_spec.rb[1:1:1:1:1]' # Ci::Runners::ResetRegistrationTokenService#execute with instance scope behaves like a registration token reset operation without user does not audit and returns false
rspec './ee/spec/services/ci/runners/reset_registration_token_service_spec.rb[1:1:1:2:1]' # Ci::Runners::ResetRegistrationTokenService#execute with instance scope behaves like a registration token reset operation with unauthorized user does not audit and returns false
rspec './ee/spec/services/ci/runners/reset_registration_token_service_spec.rb[1:1:1:3:1]' # Ci::Runners::ResetRegistrationTokenService#execute with instance scope behaves like a registration token reset operation with admin user calls security_event on RunnersTokenAuditEventService and returns the new token
bundle exec rspec ee/spec/services/ee/members/create_service_spec.rb ee/spec/services/ci/runners/reset_registration_token_service_spec.rb
causes this failure
Edited by Kyle Wiebers