/spec/lib/gitlab/usage/metrics/aggregates/aggregate_spec.rb failing

Job https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/3160021076

Failures:
  1) Gitlab::Usage::Metrics::Aggregates::Aggregate aggregated_metrics_data allows for YAML aliases in aggregated metrics configs
     Failure/Error: expect(YAML).to receive(:safe_load).with(kind_of(String), aliases: true).at_least(:once)
       (Psych).safe_load(kind of String, {:aliases=>true})
           expected: at least 1 time with arguments: (kind of String, {:aliases=>true})
           received: 0 times
     # ./spec/lib/gitlab/usage/metrics/aggregates/aggregate_spec.rb:239:in `block (3 levels) in <main>'
     # ./spec/spec_helper.rb:417:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:409:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:405:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:58:in `with_raw_context'
     # ./spec/spec_helper.rb:405: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/redis.rb:17:in `block (3 levels) in <main>'
     # ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <main>'
     # ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
     # ./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 <main>'
Finished in 8.02 seconds (files took 27.42 seconds to load)
8 examples, 1 failure
Failed examples:
rspec ./spec/lib/gitlab/usage/metrics/aggregates/aggregate_spec.rb:238 # Gitlab::Usage::Metrics::Aggregates::Aggregate aggregated_metrics_data allows for YAML aliases in aggregated metrics configs
[TEST PROF INFO] Time spent in factories: 00:04.082 (40.04% of total time)