forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more conservative about caching incremental compiles
We like allowing folks to write to a local buildcache to handle cases where they miss the remote cache for some reason, but unfortunately this can allow for caching of bugs in incremental compilation, which can get pretty sticky. To bias toward correctness, this patch adds an option to control whether incremental compiles (defined as having an analysis file present) are written to the cache. Internally, we will disable incremental compile caching on laptops, but enable it in CI where we guarantee a `clean-all` after every source change. - Add a flag to be more conservative about caching of incremental compiles - Skip the cache write when we've hit the cache during a double check Testing Done: pantsbuild#2335 Bugs closed: 2335 Reviewed at https://rbcommons.com/s/twitter/r/2940/
- Loading branch information
Showing
4 changed files
with
88 additions
and
12 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
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