Gitlab::Ci::Pipeline::Chain::Command#increment_pipeline_failure_reason_counter failures
Job #1155937173 failed for eb81430a:
bundle exec spec/lib/gitlab/ci/pipeline/chain/command_spec.rb
1) Gitlab::Ci::Pipeline::Chain::Command#increment_pipeline_failure_reason_counter increments the error metric
Failure/Error: expect { subject }.to change { counter.get(reason: reason.to_s) }.by(1)
expected `counter.get(reason: reason.to_s)` to have changed by 1, but was changed by 0.0
# ./spec/lib/gitlab/ci/pipeline/chain/command_spec.rb:333:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:367:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:358:in `block (2 levels) in <top (required)>'
2) Gitlab::Ci::Pipeline::Chain::Command#increment_pipeline_failure_reason_counter when the reason is nil increments the error metric with unknown_failure
Failure/Error: expect { subject }.to change { counter.get(reason: 'unknown_failure') }.by(1)
expected `counter.get(reason: 'unknown_failure')` to have changed by 1, but was changed by 0.0
# ./spec/lib/gitlab/ci/pipeline/chain/command_spec.rb:341:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:367:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:358:in `block (2 levels) in <top (required)>'
Finished in 15 minutes 7 seconds (files took 52.78 seconds to load)
3908 examples, 2 failures
Failed examples:
rspec ./spec/lib/gitlab/ci/pipeline/chain/command_spec.rb:331 # Gitlab::Ci::Pipeline::Chain::Command#increment_pipeline_failure_reason_counter increments the error metric
rspec ./spec/lib/gitlab/ci/pipeline/chain/command_spec.rb:339 # Gitlab::Ci::Pipeline::Chain::Command#increment_pipeline_failure_reason_counter when the reason is nil increments the error metric with unknown_failure
Alternatively
Failures:
1) Gitlab::Ci::Pipeline::Chain::Limit::Deployments when pipeline deployments limit is exceeded when saving incompleted pipelines calls increment_pipeline_failure_reason_counter
Failure/Error: expect { perform }.to change { counter.get(reason: 'deployments_limit_exceeded') }.by(1)
expected `counter.get(reason: 'deployments_limit_exceeded')` to have changed by 1, but was changed by 0.0
# ./spec/lib/gitlab/ci/pipeline/chain/limit/deployments_spec.rb:55:in `block (4 levels) in <top (required)>'
# ./spec/spec_helper.rb:367:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:358:in `block (2 levels) in <top (required)>'
Finished in 13 minutes 44 seconds (files took 50.98 seconds to load)
4383 examples, 1 failure, 6 pending
Failed examples:
rspec ./spec/lib/gitlab/ci/pipeline/chain/limit/deployments_spec.rb:53 # Gitlab::Ci::Pipeline::Chain::Limit::Deployments when pipeline deployments limit is exceeded when saving incompleted pipelines calls increment_pipeline_failure_reason_counter
Edited by Peter Leitzen