flat-zoo-31952
06/02/2023, 12:54 PMflat-zoo-31952
06/02/2023, 12:56 PMflat-zoo-31952
06/02/2023, 12:57 PMchanged
subsystembitter-ability-32190
06/02/2023, 2:12 PMmypy
thing, that seems different. If you change the mypy
config, that likely wouldn't be invalidating the process runs for tests, unless you have the config modeled in your Pants targets.flat-zoo-31952
06/02/2023, 3:36 PMpants \
--changed-since=main \
--changed-dependeeds=transitive \
lint check test
So if my mypy config gets changed (itself not a pants target), but nothing else, that commands won't trigger any lint check or test actions because according to Pants nothing has changed.flat-zoo-31952
06/02/2023, 3:37 PMpants lint check test
being efficient (and I don't have time to work on that right now)bitter-ability-32190
06/02/2023, 3:38 PMbitter-ability-32190
06/02/2023, 3:38 PMflat-zoo-31952
06/02/2023, 3:38 PMmypy.toml
as a check-only depbitter-ability-32190
06/02/2023, 3:40 PMflat-zoo-31952
06/02/2023, 3:40 PMflat-zoo-31952
06/02/2023, 3:40 PMfile(source="mypy.toml")
bitter-ability-32190
06/02/2023, 3:40 PMflat-zoo-31952
06/02/2023, 3:40 PMflat-zoo-31952
06/02/2023, 3:41 PMbitter-ability-32190
06/02/2023, 3:41 PMfile
thing (or the synthetic target if you're feeling generous) and made a dependency from the mypy
requirement? It may or may not work. ALso try with resource
flat-zoo-31952
06/02/2023, 3:42 PMflat-zoo-31952
06/02/2023, 3:54 PMbitter-ability-32190
06/02/2023, 3:54 PMbitter-ability-32190
06/02/2023, 3:55 PMflat-zoo-31952
06/02/2023, 3:55 PMflat-zoo-31952
06/02/2023, 3:55 PMflat-zoo-31952
06/02/2023, 4:11 PM--changed
subsystem vs relying on caching completely.
Obviously if you just run pants check
and rely on caching to get it right, the mypy configs are part of the cache key for the mypy process executions, so if they change you get a cache miss, and this "just works."
But using --changed
is easier when you don't have the time to invest in getting distributed caching working right. I suppose I could implement a poor man's tagged dependency pluginproud-dentist-22844
06/03/2023, 12:47 AMbitter-ability-32190
06/03/2023, 1:11 AM