Run integration test against Python 3 #6732
As we push towards python 3 support for pants, we want more than our unit tests to run against python 3.
Run integration tests against python 3
Eric-Arellano left a comment •
This looks great. Thanks Mathieu!
John / others, we yesterday tested out how the cron job works. In Travis's dashboard, we choose a branch and set it to run "daily". It will run every 24 hours after the first setup. So, once we merge this PR, we will set up a cron job agains the master branch. With Mathieu's .travis.yml config, that Cron job will only run the Py2 integration shards. See below image for config and yesterday's test we ran.
We'll need to decide when is the ideal time to run the cron job? Something like 2 am? PST or EST?
### Problem As we push towards python 3 support for pants, we need integration tests to also run against python 3. ### Solution Run integration tests against python 3 ### Notes: - As the cost of running integration test against both python 2 and 3 is too costly, it was decided we would switch CI to run python 3 only with a daily cron job running same tests against python 2. This Cron job is managed in the Travis dashboard. - We have a blacklist at `build-support/known_py3_integration_failures.txt` for all tests failing in python3. We do run those tests against python2. - We added 1 shard and reshuffled integration shards. So we now have 8 integration tests shards, 6 for python 3 and 2 for python 2 (blacklisted tests).