Skip to content

travis: Prevent timeouts with travis_wait #14653

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

Merged
merged 1 commit into from
Jun 6, 2014

Conversation

alexcrichton
Copy link
Member

The most frequent failure for our travis builds is running into the timeout
limits when building the compiler itself. Building librustc takes a very long
amount of time, often hitting the 10 minutes with no output threshold that
travis imposes on us.

This commit switches the relevant make step to being wrapped in the
travis_wait command 1. This command will print something once a minute so as
to not time out a build.

This will hopefully enable us to have fewer flaky builds on travis!

@lilyball
Copy link
Contributor

lilyball commented Jun 4, 2014

If the problem is no output, what if you added a RUST_LOG setting that would produce regular but infrequent output (such that the build log isn't swamped, but enough to keep Travis from timing out)?

The most frequent failure for our travis builds is running into the timeout
limits when building the compiler itself. Building librustc takes a very long
amount of time, often hitting the 10 minutes with no output threshold that
travis imposes on us.

This commit switches the relevant `make` step to being wrapped in the
`travis_wait` command [1]. This command will print something once a minute so as
to not time out a build.

This will hopefully enable us to have fewer flaky builds on travis!

[1]: http://docs.travis-ci.com/user/build-timeouts/
@alexcrichton
Copy link
Member Author

Aha, after some more research it appears that travis has a command for exactly this: http://docs.travis-ci.com/user/build-timeouts/

@lilyball
Copy link
Contributor

lilyball commented Jun 5, 2014

That works. I was suggesting a RUST_LOG because that would continue emitting output for as long as rust is actually doing work, but that travis command should extend the timeout to 30 minutes which is probably sufficient.

@alexcrichton alexcrichton changed the title travis: Build with --opt-level=1 instead of 2 travis: Prevent timeouts with travis_wait Jun 5, 2014
bors added a commit that referenced this pull request Jun 6, 2014
The most frequent failure for our travis builds is running into the timeout
limits when building the compiler itself. Building librustc takes a very long
amount of time, often hitting the 10 minutes with no output threshold that
travis imposes on us.

This commit switches the relevant `make` step to being wrapped in the
`travis_wait` command [1]. This command will print something once a minute so as
to not time out a build.

This will hopefully enable us to have fewer flaky builds on travis!

[1]: http://docs.travis-ci.com/user/build-timeouts/
@bors bors closed this Jun 6, 2014
@bors bors merged commit bc17897 into rust-lang:master Jun 6, 2014
@alexcrichton alexcrichton deleted the travis-opt branch June 6, 2014 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants