ci: the Test step has a 75-minute cap (#5267)
0dbdc7481's macOS Test step (run 43656468676) printed its last package
line at 00:54:42 (internal/libc) and nothing more until it was cancelled
by hand at 01:38:41: internal/library, next in order, neither finished
nor hit go test's -timeout 30m panic, so no stack came out. Main's runs
don't cancel each other, so 97e6ac36c's run waited behind it. With the
cap a hang fails the step and the queue moves.
The cap: Test took 11 minutes on ubuntu in that run and 31 on macOS in
the run before (6e6a18eda, where the gateway's 30m alarm ended it);
75 leaves room for a slow macOS runner. The hang itself is #5267's
(internal/library past its timeout in testenv's warm-up run); this
doesn't fix it.
Run: the workflow parses (python yaml.safe_load). Not run: the workflow
itself; this push's own run is its check.
This commit is contained in:
@@ -71,8 +71,14 @@ jobs:
|
||||
# hung (#2191). It grew from 450-600s on 10-28, so a longer timeout
|
||||
# would only be met again. Its plain run goes in chunks, one process
|
||||
# per core, as the Race step's does; the other packages run as before.
|
||||
# A step cap as well: on 0dbdc7481's macOS run internal/library printed
|
||||
# nothing for 44 minutes past go test's own -timeout 30m (no panic, no
|
||||
# stack, #5267), and main's later runs queued behind it until it was
|
||||
# cancelled by hand. Test took 11 minutes on ubuntu there and 31 on
|
||||
# macOS the run before; the cap leaves room for a slow macOS runner.
|
||||
- name: Test
|
||||
if: runner.os != 'Windows'
|
||||
timeout-minutes: 75
|
||||
shell: bash
|
||||
run: |
|
||||
go test -timeout 30m -tags "${{ steps.tags.outputs.tags }}" $(go list -tags "${{ steps.tags.outputs.tags }}" ./... | grep -v '/internal/gateway$')
|
||||
|
||||
Reference in New Issue
Block a user