Flaky tests ee/spec/lib/gitlab/usage_data_metrics_spec.rb
Job #1715393231 failed for 9bb55889:
1) Gitlab::UsageDataMetrics.uncached_data with instrumentation_class includes top level keys
Failure/Error: expect(subject).to include(:license_md5)
expected {} to include :license_md5
Diff:
@@ -1,2 +1 @@
-[:license_md5]
# ./ee/spec/lib/gitlab/usage_data_metrics_spec.rb:21:in `block (4 levels) in <top (required)>'
# ./ee/spec/lib/gitlab/usage_data_metrics_spec.rb:11:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:408:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:399:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:395:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:395:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:56:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (2 levels) in <top (required)>'
2) Gitlab::UsageDataMetrics.uncached_data with instrumentation_class Redis_HLL_counters is included in the Usage Ping hash structure
Failure/Error: expect(metric_files_key_paths).to match_array(service_ping_key_paths)
expected collection contained: []
actual collection contained: ["redis_hll_counters.analytics.analytics_total_unique_counts_monthly", "redis_hll_counters.analytics....unique_counts_monthly", "redis_hll_counters.user_packages.user_packages_total_unique_counts_weekly"]
the extra elements were: ["redis_hll_counters.analytics.analytics_total_unique_counts_monthly", "redis_hll_counters.analytics....unique_counts_monthly", "redis_hll_counters.user_packages.user_packages_total_unique_counts_weekly"]
# ./ee/spec/lib/gitlab/usage_data_metrics_spec.rb:54:in `block (5 levels) in <top (required)>'
# ./ee/spec/lib/gitlab/usage_data_metrics_spec.rb:11:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:408:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:399:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:395:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:31:in `with_raw_context'
# ./spec/spec_helper.rb:395:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:56:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:102:in `block (2 levels) in <top (required)>'
Finished in 24 minutes 50 seconds (files took 48.62 seconds to load)
2137 examples, 2 failures, 8 pending
Failed examples:
rspec ./ee/spec/lib/gitlab/usage_data_metrics_spec.rb:20 # Gitlab::UsageDataMetrics.uncached_data with instrumentation_class includes top level keys
rspec ./ee/spec/lib/gitlab/usage_data_metrics_spec.rb:53 # Gitlab::UsageDataMetrics.uncached_data with instrumentation_class Redis_HLL_counters is included in the Usage Ping hash structure