diff options
author | 2018-06-20 15:58:39 -0700 | |
---|---|---|
committer | 2018-06-20 16:00:03 -0700 | |
commit | 97293aaa4dca0bd1d9ed9282324a9fc9b54780f3 (patch) | |
tree | cfb0eec80b7bbf8dfcc0ad4583c5bf0a4eba0ff2 /src/test/java/com/google/devtools/build/lib/exec | |
parent | c19284e3e8db5ed57097ed908c76dc902392c7ee (diff) |
Be more generous with user time and sys time bounds in execution statistics tests.
RELNOTES: None.
PiperOrigin-RevId: 201432990
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/exec')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java b/src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java index 63048fc108..35f7365afa 100644 --- a/src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java +++ b/src/test/java/com/google/devtools/build/lib/exec/local/LocalSpawnRunnerTest.java @@ -817,10 +817,14 @@ public class LocalSpawnRunnerTest { Duration minimumWallTimeToSpend = Duration.ofSeconds(10); Duration minimumUserTimeToSpend = minimumWallTimeToSpend; - Duration maximumUserTimeToSpend = minimumUserTimeToSpend.plus(Duration.ofSeconds(5)); + // Under normal loads we should be able to use a much lower bound for maxUserTime, but be + // generous here in case of hardware issues. + Duration maximumUserTimeToSpend = minimumUserTimeToSpend.plus(Duration.ofSeconds(20)); Duration minimumSystemTimeToSpend = Duration.ZERO; - Duration maximumSystemTimeToSpend = minimumSystemTimeToSpend.plus(Duration.ofSeconds(5)); + // Under normal loads we should be able to use a much lower bound for maxSysTime, but be + // generous here in case of hardware issues. + Duration maximumSystemTimeToSpend = minimumSystemTimeToSpend.plus(Duration.ofSeconds(20)); Path execRoot = getTemporaryExecRoot(fs); copyProcessWrapperIntoExecRoot(execRoot); |