No output logged when using `travis_wait` command


#1

We are running CI on Xenial with Python 3.4 and are having issues with the travis_wait command. The command that we are trying to extend has been failing as soon as it’s executed. (It can’t persist). As soon as the command fails, the CI run does fail as whole as well, which is expected. However, there is never any output logged. This has been failing for a while now and we haven’t been able to figure it out because there is no error logs in the CI run. When the command was successful it would print the log, but never when the command fails. I even fixed the script to have it error after 15 seconds and it still didn’t output anything.

So in summary, the travis_wait command seems to output logs fine when successful, but if the command fails it suppresses the logs and never prints them.

Relevant run:
https://travis-ci.org/bitcoin/bitcoin/jobs/481036172

After that last gpg: command it’s running another script with travis_wait and there is no output. If you go to the raw log, you can see only a message that says:

Still running (1 of 50): contrib/verify-commits/verify-commits.py --clean-merge=2

but never any output from the script.


#2

This has nothing to do with the use of travis_wait. You are setting the errexit option on the bash:

and this means that any command that exits with a nonzero status will terminate the build immediately.

travis_wait does not have a chance to dump the logs it is collecting.


#3

Doh! Thanks for catching that. That makes a lot of sense. I’ll look into resolving it that way. Thanks!