Flaky test spec/lib/gitlab/seeders/ci/runner/runner_fleet_pipeline_seeder_spec.rb:31 # Gitlab::Seeders::Ci::Runner::RunnerFleetPipelineSeeder#seed with job_count specified creates expected jobs

Summary

Steps to reproduce

Please refer to Flaky tests documentation to learn more about how to reproduce them.

Proposed Resolution

Please refer to the Resolution guidance to learn more about resolution of broken master.

Once the flaky failure has been fixed on the default branch, open merge requests to cherry-pick the fix to the active stable branches.

Job #3880426602 failed for 2ab200be:

Failures:
  1) Gitlab::Seeders::Ci::Runner::RunnerFleetPipelineSeeder#seed with job_count specified creates expected jobs
     Failure/Error: expect(Ci::Pipeline.where.not(started_at: nil).map(&:queued_duration)).to all(be < 5.minutes)
       expected [117, 263, 300] to all be < 300
          object at index 2 failed to match:
             expected: < 5 minutes
                  got:   300
     # ./spec/lib/gitlab/seeders/ci/runner/runner_fleet_pipeline_seeder_spec.rb:35:in `block (4 levels) in <main>'
     # ./spec/spec_helper.rb:506:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:498:in `block (2 levels) in <top (required)>'
     # ./spec/spec_helper.rb:494:in `block (3 levels) in <top (required)>'
     # ./lib/gitlab/application_context.rb:59:in `with_raw_context'
     # ./spec/spec_helper.rb:494: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/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>'
Finished in 8.61 seconds (files took 1 minute 24.1 seconds to load)
3 examples, 1 failure
Failed examples:
rspec ./spec/lib/gitlab/seeders/ci/runner/runner_fleet_pipeline_seeder_spec.rb:31 # Gitlab::Seeders::Ci::Runner::RunnerFleetPipelineSeeder#seed with job_count specified creates expected jobs
Randomized with seed 36427
[TEST PROF INFO] Time spent in factories: 00:03.030 (9.05% of total time)