Follow-up: Fix failed job
Failed job case: https://jihulab.com/gitlab-cn/gitlab/-/jobs/8044545
log message:
Failures:
1) Every metric definition is included in the Usage Ping hash structure
Failure/Error: expect(expected_metric_files_key_paths).to match_array(usage_ping_key_paths), msg
see https://docs.gitlab.com/ee/development/service_ping/metrics_dictionary.html#metrics-added-dynamic-to-service-ping-payload
Shared Example Group: "every metric definition" called from ./ee/spec/config/metrics/every_metric_definition_spec.rb:10
# ./spec/support/shared_examples/config/metrics/every_metric_definition_shared_examples.rb:83:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:406:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:402:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:402:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:242:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/fast_quarantine.rb:23:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <main>'
# ./jh/spec/spec_helper.rb:30:in `block (3 levels) in <main>'
# ./jh/spec/spec_helper.rb:30:in `block (2 levels) in <main>'
Finished in 56.01 seconds (files took 37.18 seconds to load)
1 example, 1 failure
Failed examples:
rspec './ee/spec/config/metrics/every_metric_definition_spec.rb[1:1]' # Every metric definition is included in the Usage Ping hash structure