[go: up one dir, main page]

Job timeout risk: spec/requests/api/graphql/project/merge_requests_spec.rb ran much longer than expected

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Why was this issue created?

spec/requests/api/graphql/project/merge_requests_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/graphql/project/merge_requests_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 4291233 created at 2025-06-21T01:16:19Z
Field Value
Job URL rspec-integration-pg16-single-db-17-20
Job total RSpec suite run time expected: 26 minutes 29.34 seconds, actual: 74 minutes 18.5 seconds
Spec file run time expected: 4 minutes 26.38 seconds, actual: 15 minutes 50.64 seconds
Spec file weight 21.32% of total suite run time
  • Reported from pipeline 4872743 created at 2025-11-18T17:27:40Z
Field Value
Job URL rspec-integration-pg16-10-20
Job total RSpec suite run time expected: 34 minutes 53.63 seconds, actual: 70 minutes 20.98 seconds
Spec file run time expected: 4 minutes 38.97 seconds, actual: 10 minutes 41.85 seconds
Spec file weight 15.21% of total suite run time
  • Reported from pipeline 4896578 created at 2025-11-24T13:33:02Z
Field Value
Job URL rspec-integration-pg16-16-20
Job total RSpec suite run time expected: 29 minutes 54.83 seconds, actual: 72 minutes 16.78 seconds
Spec file run time expected: 4 minutes 48.65 seconds, actual: 13 minutes 41.92 seconds
Spec file weight 18.95% of total suite run time