spec/lib/gitlab/usage_data_spec.rb failing on GitLab Foss
Summary
spec/lib/gitlab/usage_data_spec.rb is failing on gitlab-org/gitlab-foss
like Job #2758532546 failed for 632d0734:
1) Gitlab::UsageData redis_hll_counters has all known_events
Failure/Error: expect(subject[:redis_hll_counters][category].keys).to match_array(metrics)
expected collection contained: ["i_search_total_monthly", "i_search_total_weekly", "search_total_unique_counts_monthly", "search_total_unique_counts_weekly"]
actual collection contained: ["i_search_total_monthly", "i_search_total_weekly"]
the missing elements were: ["search_total_unique_counts_monthly", "search_total_unique_counts_weekly"]
# ./spec/lib/gitlab/usage_data_spec.rb:1226:in `block (4 levels) in <top (required)>'
# ./spec/lib/gitlab/usage_data_spec.rb:1216:in `each'
# ./spec/lib/gitlab/usage_data_spec.rb:1216:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:426:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:417:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:413:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:52:in `with_raw_context'
# ./spec/spec_helper.rb:413:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:264:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7: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)>'
Steps to reproduce
FOSS_ONLY=1 bundle exec rspec spec/lib/gitlab/usage_data_spec.rb
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.