Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timeout failure in travis CI. #429

Closed
wants to merge 1 commit into from

Conversation

toyboxman
Copy link
Member

Build times out because no output was received.

'travis_wait mvn clean verify -q' will spawn a process to deal with mvn task
-q,--quiet Quiet output - only show errors

-q probably leads no output caught by travis, so timeout failure happens

refer to:
https://docs.travis-ci.com/user/common-build-problems/#limitations-of-travis_wait

@toyboxman toyboxman force-pushed the build/tarvis branch 3 times, most recently from b6fdbf2 to ef98679 Compare October 1, 2018 13:18
Build times out because no output was received.

'travis_wait mvn clean verify -q' will spawn a process to deal with mvn task
-q,--quiet     Quiet output - only show errors

When using caches, it may be useful to shrink downloading time and solve timeout

refer to:
https://docs.travis-ci.com/user/caching/#caching-directories-bundler-dependencies
https://docs.travis-ci.com/user/common-build-problems/#limitations-of-travis_wait
@guoyuepeng
Copy link
Contributor

so that means we don't need to wait 30 minutes?
@toyboxman @chemikadze

@chemikadze
Copy link
Member

Just removing -q can produce a lot of output. I did few experiments yesterday:

Was hesitant introduce another problems with caching or with increasing verbosity, so decided to just bump timeout. "Downloading..." bloats logs a lot and even can fail the build with "The job exceeded the maximum log length, and has been terminated." error. From other hand travis_wait still would be required if it's suppressed, as resolving dependencies takes most of the time when timeout happens.

Root cause of these timeouts seems to be in repo sonatype-apache responding very slowly, did not find way to disable it yet.

@chemikadze
Copy link
Member

@guoyuepeng disabling -q hits maximum log length, from other hand suppressing download progress without travis_wait still can hit 10 minute silence timeout

@toyboxman
Copy link
Member Author

@guoyuepeng @chemikadze

I agree to keeping -q parameter, as travis only permit 4M log file size.

please see latest update, decrease git pull/clone log output, I think it should be merged with #428
913c9de

@guoyuepeng
Copy link
Contributor

ok, I will keep both 30m wait time and git quiet option.
will verify and then might reopen it later.

@asfgit asfgit closed this in 3a09899 Oct 2, 2018
@toyboxman toyboxman deleted the build/tarvis branch October 8, 2018 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants