Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dedicated cron bootstrap stage to CI to avoid unnecessarily build…
…ing Python 3 (#7353) ### Problem Nightly CI (i.e. the Cron job we run every night around midnight) runs exclusively with Python 2.7, yet we still bootstrap Python 3.6 every time. This adds an unnecessary 40 minutes of CI every night (total CI time, not wall time). Further, once we add Py37 to the cron job in #7261, we will need to avoid bootstrapping Py37 during daily CI (i.e. what we run every time we open a PR or merge to master), else we add 40 minutes of total CI time (not wall time) to every single daily CI run. This PR both helps now and is pre-work for #7261. ### Solution * Introduce new stage `bootstrap_cron` that only runs during cron job. * Set up `bootstrap_cron` to only run the Py27 build engine shards. * Rename `cron` stage to `test_cron` for better parity with daily CI. ### Result * Daily CI will run identically to before. * Nightly CI will run with 2 less bootstrap shards, saving 40 minutes of total CI time: https://travis-ci.org/pantsbuild/pants/builds/504357528.
- Loading branch information
1 parent
01a9f8b
commit 9a46332
Showing
2 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters