Job timeout risk: spec/requests/git_http_spec.rb ran much longer than expected

Why was this issue created?

spec/requests/git_http_spec.rb was reported to have:

  1. exceeded Knapsack's expected runtime by at least 50%, and
  2. been identified as a notable pipeline bottleneck and a job timeout risk

Suggested steps for investigation

  1. To reproduce in CI by running test files in the same order, you can follow the steps listed here.
  2. Identify if a specific test case is stalling the run time. Hint: You can search the job's log for Starting example group spec/requests/git_http_spec.rb and view the elapsed time after each test case in the proceeding lines starting with [RSpecRunTime].
  3. If the test file is large, consider refactoring it into multiple files to allow better test parallelization across runners.
  4. If the run time cannot be fixed in time, consider quarantine the spec(s) to restore performance.

Run time details

  • Reported from pipeline 3925269 created at 2025-03-15T01:16:03Z
Field Value
Job URL rspec-integration-pg16-single-db-10-20
Job total RSpec suite run time expected: 24 minutes 29.75 seconds, actual: 70 minutes 33.56 seconds
Spec file run time expected: 7 minutes 49.77 seconds, actual: 19 minutes 53.2 seconds
Spec file weight 28.18% of total suite run time
  • Reported from pipeline 4181407 created at 2025-05-21T11:27:17Z
Field Value
Job URL rspec-integration-pg16-10-20
Job total RSpec suite run time expected: 23 minutes 59.49 seconds, actual: 71 minutes 28.6 seconds
Spec file run time expected: 6 minutes 56.55 seconds, actual: 20 minutes 49.54 seconds
Spec file weight 29.14% of total suite run time
  • Reported from pipeline 4741802 created at 2025-10-16T15:31:51Z
Field Value
Job URL rspec-integration-pg16-8-20
Job total RSpec suite run time expected: 32 minutes 0.01 second, actual: 73 minutes 53.38 seconds
Spec file run time expected: 9 minutes 31.25 seconds, actual: 18 minutes 20.37 seconds
Spec file weight 24.82% of total suite run time
  • Reported from pipeline 5002642 created at 2025-12-17T23:32:39Z
Field Value
Job URL rspec-integration-pg16-no-gitaly-transactions-5-20
Job total RSpec suite run time expected: 33 minutes 14.01 seconds, actual: 75 minutes 45.21 seconds
Spec file run time expected: 12 minutes 48.35 seconds, actual: 21 minutes 14.72 seconds
Spec file weight 28.05% of total suite run time
  • Reported from pipeline 5002788 created at 2025-12-18T00:06:13Z
Field Value
Job URL rspec-integration-pg16-7-20
Job total RSpec suite run time expected: 33 minutes 33.43 seconds, actual: 78 minutes 13.41 seconds
Spec file run time expected: 11 minutes 58.74 seconds, actual: 22 minutes 18.29 seconds
Spec file weight 28.51% of total suite run time
  • Reported from pipeline 5002788 created at 2025-12-18T00:06:13Z
Field Value
Job URL rspec-integration-pg16-7-20
Job total RSpec suite run time expected: 33 minutes 33.43 seconds, actual: 72 minutes 49.93 seconds
Spec file run time expected: 11 minutes 58.74 seconds, actual: 22 minutes 25.58 seconds
Spec file weight 30.79% of total suite run time
  • Reported from pipeline 5004084 created at 2025-12-18T08:05:45Z
Field Value
Job URL rspec-integration-pg16-no-gitaly-transactions-7-20
Job total RSpec suite run time expected: 32 minutes 36.14 seconds, actual: 71 minutes 37.47 seconds
Spec file run time expected: 11 minutes 0.56 second, actual: 20 minutes 50.67 seconds
Spec file weight 29.1% of total suite run time