Job timeout risk: spec/requests/api/integrations_spec.rb ran much longer than expected
Why was this issue created?
spec/requests/api/integrations_spec.rb was reported to have:
- exceeded Knapsack's expected runtime by at least 50%, and
- been identified as a notable pipeline bottleneck and a job timeout risk
Suggested steps for investigation
- To reproduce in CI by running test files in the same order, you can follow the steps listed here.
- 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/integrations_spec.rb
and view the elapsed time after each test case in the proceeding lines starting with[RSpecRunTime]
. - If the test file is large, consider refactoring it into multiple files to allow better test parallelization across runners.
- If the run time cannot be fixed in time, consider quarantine the spec(s) to restore performance.
Run time details
- Reported from pipeline 3139511 created at
2024-08-25T01:16:24Z
Field | Value |
---|---|
Job URL | rspec-integration-pg14-single-db-8-20 |
Job total RSpec suite run time | expected: 36 minutes 14.9 seconds , actual: 72 minutes 50.97 seconds
|
Spec file run time | expected: 13 minutes 26.15 seconds , actual: 24 minutes 4.97 seconds
|
Spec file weight |
33.06% of total suite run time |
- Reported from pipeline 3229773 created at
2024-09-20T01:15:43Z
Field | Value |
---|---|
Job URL | rspec-integration-pg15-8-20 |
Job total RSpec suite run time | expected: 36 minutes 35.77 seconds , actual: 74 minutes 52.81 seconds
|
Spec file run time | expected: 12 minutes 43.91 seconds , actual: 27 minutes 31.66 seconds
|
Spec file weight |
36.76% of total suite run time |
- Reported from pipeline 3248526 created at
2024-09-26T01:15:52Z
Field | Value |
---|---|
Job URL | rspec-integration-pg14-single-redis-6-20 |
Job total RSpec suite run time | expected: 36 minutes 40.73 seconds , actual: 77 minutes 22.64 seconds
|
Spec file run time | expected: 13 minutes 47.54 seconds , actual: 29 minutes 11.17 seconds
|
Spec file weight |
37.72% of total suite run time |
- Reported from pipeline 4057837 created at
2025-04-17T17:12:08Z
Field | Value |
---|---|
Job URL | rspec-integration-pg16-1-20 |
Job total RSpec suite run time | expected: 25 minutes 16.85 seconds , actual: 73 minutes 14.93 seconds
|
Spec file run time | expected: 15 minutes 55.98 seconds , actual: 45 minutes 58.65 seconds
|
Spec file weight |
62.77% of total suite run time |
Edited by KNAPSACK_REPORT_ISSUES_PROJECT_TOKEN