Job timeout risk: spec/features/projects/new_project_spec.rb ran much longer than expected
Why was this issue created?
spec/features/projects/new_project_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/new_project_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 2717008 created at
2024-04-30T23:29:04Z
Field |
Value |
Job URL |
rspec-system-pg14-single-db-6-32 |
Job total RSpec suite run time |
expected: 22 minutes 6.43 seconds , actual: 79 minutes 53.3 seconds
|
Spec file run time |
expected: 1 minute 51.6 seconds , actual: 27 minutes 25.86 seconds
|
Spec file weight |
34.34% of total suite run time |
- Reported from pipeline 2717008 created at
2024-04-30T23:29:04Z
Field |
Value |
Job URL |
rspec-system-pg14-6-32 |
Job total RSpec suite run time |
expected: 22 minutes 6.43 seconds , actual: 82 minutes 32.75 seconds
|
Spec file run time |
expected: 1 minute 51.6 seconds , actual: 22 minutes 47.33 seconds
|
Spec file weight |
27.61% of total suite run time |
- Reported from pipeline 2717011 created at
2024-04-30T23:30:05Z
Field |
Value |
Job URL |
rspec-system-pg14-6-32 |
Job total RSpec suite run time |
expected: 22 minutes 6.43 seconds , actual: 80 minutes 17.3 seconds
|
Spec file run time |
expected: 1 minute 51.6 seconds , actual: 22 minutes 16.12 seconds
|
Spec file weight |
27.74% of total suite run time |