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.
Remove the global codegen strategy from simple_codegen_task
We had noticed a few issues with versioned target invalidation, first in antlr and then in the newly ported scrooge task. Now that all consumers are ported to isolated codegen, we can fix and prevent those issues by switching away from the manual caching strategy. - Drop codegen strategies entirely - Detect duplicate sources using the synthetic targets, rather than re-scanning the workdirs - Prune duplicate sources from disk when they are "allowed", to avoid having to deal with them in subsequent incremental runs - Deprecate but preserve the strategy flag - Enable `cache_target_dirs` for simpler/more-correct caching/invalidation - In test_simple_codegen_task: move DummyTask and DummyTarget to top level classes in order to add the `ensure_cached` annotation Testing Done: pantsbuild#2386 For a context containing 1549 gen targets, the time to execute the task improves signficantly: Clean: Before: 777 seconds After: 220 seconds Noop: Before: 25 seconds After: 12 seconds Bugs closed: 2337, 2386 Reviewed at https://rbcommons.com/s/twitter/r/2985/
- Loading branch information
Showing
19 changed files
with
544 additions
and
959 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
Oops, something went wrong.