Broken spec in master IOError: unmapped file spec/lib/gitlab/metrics/prometheus_spec.rb
Job #1906011396 failed for 16ac36f0:
Failures:
1) Gitlab::Metrics::Prometheus#reset_registry! clears existing metrics
Failure/Error: ::Prometheus::Client.reset!
IOError:
unmapped file
# ./lib/gitlab/metrics/prometheus.rb:32:in `block in reset_registry!'
# ./lib/gitlab/metrics/prometheus.rb:31:in `synchronize'
# ./lib/gitlab/metrics/prometheus.rb:31:in `reset_registry!'
# ./spec/spec_helper.rb:435:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:412:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:403:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:399:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:399:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
2) Gitlab::Metrics::Prometheus#error_detected! disables Prometheus metrics
Failure/Error: ::Prometheus::Client.reset!
IOError:
unmapped file
# ./lib/gitlab/metrics/prometheus.rb:32:in `block in reset_registry!'
# ./lib/gitlab/metrics/prometheus.rb:31:in `synchronize'
# ./lib/gitlab/metrics/prometheus.rb:31:in `reset_registry!'
# ./spec/spec_helper.rb:435:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:412:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:403:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:399:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:399:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
Finished in 46 minutes 53 seconds (files took 1 minute 0.79 seconds to load)
4081 examples, 2 failures, 13 pending
Failed examples:
rspec ./spec/lib/gitlab/metrics/prometheus_spec.rb:14 # Gitlab::Metrics::Prometheus#reset_registry! clears existing metrics
rspec ./spec/lib/gitlab/metrics/prometheus_spec.rb:31 # Gitlab::Metrics::Prometheus#error_detected! disables Prometheus metrics
Edited by Dylan Griffith (ex GitLab)