Skip to content

Conversation

@jnewbery
Copy link
Contributor

Travis has beta support for a new feature called cron jobs. We should hook into this to run our extended functional test suite once per day.

This requires two changes: merging the change to .travis.yml in this PR, and then enabling daily builds of the master branch through Travis settings.

For an example of a cron build see https://travis-ci.org/jnewbery/bitcoin/builds/213827649. This currently fails because:

  • rpcbind_tests.py requires ipv6, which Travis currently doesn't support. I have a workaround for that on the way.
  • pruning.py times out. I've now updated the .travis.yml file to exclude running pruning.

The granularity for cron jobs is very coarse - currently Travis only allows jobs to be run daily, weekly or monthly. There have been lots of requests for more flexible cron schedules in this thread so Travis may add this as an enhancement at some point.

@jnewbery jnewbery changed the title Run extended tests once daily in Travis [test] Run extended tests once daily in Travis Mar 22, 2017
@maflcko
Copy link
Member

maflcko commented Mar 22, 2017 via email

@jnewbery
Copy link
Contributor Author

I think email notifications for cron jobs are the same as for regular branch builds.

In any case, I'm not sure whether that's a bad thing. If the test is really broken, then it's better to know immediately that something's broken it, rather than whenever someone happens to run the extended tests. And if you're worried about the extended tests being unreliable, then we should make them more robust.

@maflcko
Copy link
Member

maflcko commented Mar 22, 2017 via email

@jnewbery
Copy link
Contributor Author

Yes - that could get annoying. I plan to improve travis logging by having it upload detailed logs from failed test cases to an S3 bucket. In the long run we should definitely try to make sure travis runs of extended test cases are reliable, but for now you could manually exclude those test cases which you think are unreliable?

@jtimon
Copy link
Contributor

jtimon commented Mar 23, 2017

Concept ACK

@maflcko maflcko merged commit 88e3aa0 into bitcoin:master Mar 24, 2017
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Mar 24, 2017
88e3aa0 Run extended tests once daily (John Newbery)

Tree-SHA512: 92478ee930b60d8d90d1bf7352ff81853198391559281ce3074748b55145202984ba4150f751d25f3256e696e3fd8f25ea02ecd57b881744736adf505c275178
@jnewbery
Copy link
Contributor Author

Great! Now I need to fix bip9-softforks.py :)

@jnewbery
Copy link
Contributor Author

I believe #10072 should help with bip9-softforks.

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants