Job timeout risk: spec/features/projects/branches/user_views_branches_spec.rb ran much longer than expected
Why was this issue created?
spec/features/projects/branches/user_views_branches_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/features/projects/branches/user_views_branches_spec.rband 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 4151411 created at
2025-05-13T20:37:11Z
| Field | Value |
|---|---|
| Job URL | rspec-system-pg16-15-32 |
| Job total RSpec suite run time | expected: 24 minutes 49.33 seconds, actual: 81 minutes 52.41 seconds
|
| Spec file run time | expected: 1 minute 7.51 seconds, actual: 34 minutes 5.5 seconds
|
| Spec file weight |
41.64% of total suite run time |
- Reported from pipeline 4219067 created at
2025-06-02T05:33:02Z
| Field | Value |
|---|---|
| Job URL | rspec-system-pg16-single-redis-11-32 |
| Job total RSpec suite run time | expected: 25 minutes 2.17 seconds, actual: 82 minutes 45.97 seconds
|
| Spec file run time | expected: 1 minute 10.13 seconds, actual: 34 minutes 4.42 seconds
|
| Spec file weight |
41.17% of total suite run time |
- Reported from pipeline 4932593 created at
2025-12-03T14:27:48Z
| Field | Value |
|---|---|
| Job URL | rspec-system-pg16-29-32 |
| Job total RSpec suite run time | expected: 32 minutes 35.04 seconds, actual: 80 minutes 43.74 seconds
|
| Spec file run time | expected: 1 minute 15.76 seconds, actual: 36 minutes 2.96 seconds
|
| Spec file weight |
44.65% of total suite run time |
Edited by KNAPSACK_REPORT_ISSUES_PROJECT_TOKEN