Commit 48f2a55
committed
cmd/go: treat cached test results as satisfying any timeout
We want test caching to work even for people with scripts
that set a non-default test timeout. But then that raises the
question of what to do about runs with different timeouts:
is a cached success with one timeout available for use when
asked to run the test with a different timeout?
This CL answers that question by saying that the timeout applies
to the overall execution of either running the test or displaying
the cached result, and displaying a cached result takes no time.
So it's always OK to record a cached result, regardless of timeout,
and it's always OK to display a cached result, again regardless of timeout.
Fixes #22633.
Change-Id: Iaef3602710e3be107602267bbc6dba9a2250796c
Reviewed-on: https://go-review.googlesource.com/76552
Run-TryBot: Russ Cox <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: roger peppe <[email protected]>
Reviewed-by: David Crawshaw <[email protected]>1 parent 5993251 commit 48f2a55
2 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4823 | 4823 | | |
4824 | 4824 | | |
4825 | 4825 | | |
4826 | | - | |
| 4826 | + | |
| 4827 | + | |
| 4828 | + | |
4827 | 4829 | | |
4828 | 4830 | | |
4829 | 4831 | | |
| |||
4835 | 4837 | | |
4836 | 4838 | | |
4837 | 4839 | | |
| 4840 | + | |
| 4841 | + | |
| 4842 | + | |
| 4843 | + | |
4838 | 4844 | | |
4839 | 4845 | | |
4840 | 4846 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
1346 | 1348 | | |
1347 | 1349 | | |
1348 | 1350 | | |
| 1351 | + | |
1349 | 1352 | | |
1350 | 1353 | | |
1351 | 1354 | | |
| |||
1362 | 1365 | | |
1363 | 1366 | | |
1364 | 1367 | | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
1365 | 1374 | | |
1366 | 1375 | | |
1367 | 1376 | | |
| |||
1375 | 1384 | | |
1376 | 1385 | | |
1377 | 1386 | | |
1378 | | - | |
| 1387 | + | |
1379 | 1388 | | |
1380 | 1389 | | |
1381 | 1390 | | |
| |||
0 commit comments