SAMZA-1725: Set travis build idle time out to 20 minutes.
authorShanthoosh Venkataraman <santhoshvenkat1988@gmail.com>
Thu, 24 May 2018 02:27:48 +0000 (19:27 -0700)
committerBoris S <bshkolnik@linkedin.com>
Thu, 24 May 2018 02:27:48 +0000 (19:27 -0700)
**Problem:**
Currently, average build time of samza codebase is 15 to 20 minutes. However, travis has a build idle timeout of 10 minutes and fails the build if the gradle build command doesn't log anything to console
for 10 minutes(occurs when running tests in samza-test module).

Sample travis build failure error:
```
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received
```

**Fix:**
Increasing the build idle-wait timeout value to 20 minutes.

Author: Shanthoosh Venkataraman <santhoshvenkat1988@gmail.com>

Reviewers: Daniel Nishimura <dnishimura@linkedin.com>

Closes #530 from shanthoosh/increase_travis_build_wait_time

.travis.yml
build.gradle

index 05760fd..ef112f2 100644 (file)
@@ -30,7 +30,8 @@ jdk:
   - oraclejdk8
 
 script:
-  - ./gradlew clean build
+  ## travis_wait increases build idle-wait time from 10 minutes to 20 minutes.
+  - travis_wait 20 ./gradlew clean build
   - type sonar-scanner &>/dev/null; if [ $? -eq 0 ]; then sonar-scanner; else echo "Not running sonar"; fi
 
 before_cache:
index 0b4dae5..6872354 100644 (file)
@@ -52,6 +52,7 @@ rat {
     '**/*.svg',
     '**/*.ttf',
     '**/*.woff',
+    '*.log',
     '**/hs_err_pid*.log',
     '**/.classpath',
     '**/.cache/**',