Skip to content

Commit 92a45e4

Browse files
committed
cmd/coordinator: include command output in timeout failures
Fixes golang/go#34576 Change-Id: I77d85c311612bdbdcff665051659c2609a0af760 Reviewed-on: https://go-review.googlesource.com/c/build/+/202477 Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 5877195 commit 92a45e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/coordinator/coordinator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3102,7 +3102,7 @@ func (st *buildStatus) runTestsOnBuildlet(bc *buildlet.Client, tis []*testItem,
31023102
ti.numFail++
31033103
st.logf("Execution error running %s on %s: %v (numFails = %d)", ti.name, bc, err, ti.numFail)
31043104
if err == buildlet.ErrTimeout {
3105-
ti.failf("Test %q ran over %v limit (%v)", ti.name, timeout, execDuration)
3105+
ti.failf("Test %q ran over %v limit (%v); saw output:\n%s", ti.name, timeout, execDuration, buf.Bytes())
31063106
} else if ti.numFail >= maxTestExecErrors {
31073107
ti.failf("Failed to schedule %q test after %d tries.\n", ti.name, maxTestExecErrors)
31083108
} else {

0 commit comments

Comments
 (0)