[go: up one dir, main page]

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

Why was this issue created?

spec/requests/api/repositories_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/api/repositories_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 3105717 created at 2024-08-14T01:16:06Z
Field Value
Job URL rspec-integration-pg14-single-db-16-20
Job total RSpec suite run time expected: 37 minutes 5.09 seconds, actual: 76 minutes 1.84 seconds
Spec file run time expected: 7 minutes 10.74 seconds, actual: 12 minutes 44.74 seconds
Spec file weight 16.76% of total suite run time
  • Reported from pipeline 4157851 created at 2025-05-15T00:06:00Z
Field Value
Job URL rspec-integration-pg16-no-gitaly-transactions-10-20
Job total RSpec suite run time expected: 25 minutes 32.91 seconds, actual: 75 minutes 10.34 seconds
Spec file run time expected: 7 minutes 4.92 seconds, actual: 20 minutes 3.93 seconds
Spec file weight 26.69% of total suite run time
  • Reported from pipeline 4873128 created at 2025-11-18T19:08:23Z
Field Value
Job URL rspec-integration-pg16-single-db-ci-connection-8-20
Job total RSpec suite run time expected: 36 minutes 30.71 seconds, actual: 73 minutes 36.83 seconds
Spec file run time expected: 10 minutes 53.55 seconds, actual: 24 minutes 19.42 seconds
Spec file weight 33.04% of total suite run time
  • Reported from pipeline 4922866 created at 2025-12-01T17:46:32Z
Field Value
Job URL rspec-integration-pg16-8-20
Job total RSpec suite run time expected: 32 minutes 34.08 seconds, actual: 72 minutes 36.79 seconds
Spec file run time expected: 10 minutes 19.99 seconds, actual: 21 minutes 26.18 seconds
Spec file weight 29.52% of total suite run time