cold-branch-54016
04/06/2023, 11:20 AMrefined-addition-53644
04/06/2023, 11:33 AMbatch_compatibility_tag
? These batched tests would then be cached based on these tags. I am not sure if you can pass these tags dynamically though. Worth try using env()
to read them i.e.
batch_compatibility_tag=env('CLUSTER_ID', "default_val")
My assumption is here that CLUSTER_ID
takes only limited fixed number of values.
You can read more about batching etc, if you haven’t used them yet
https://www.pantsbuild.org/docs/python-test-goal#batching-and-parallelismcold-branch-54016
04/06/2023, 12:30 PMcluster_id=1
for the integration tests. I now push some changes that only affect a subset of the test suite.
For this second CI run cluster_id=2
gets selected.
Since the value of the env var we currently use (or in your case the batch_compatibility_tag
changes) the cache gets invalidated for the whole test suite and all tests are run again, instead of the subset of tests that matter based on my changes.
Did I miss something?refined-addition-53644
04/06/2023, 12:47 PMcold-branch-54016
04/06/2023, 12:50 PMrefined-addition-53644
04/06/2023, 12:51 PMcold-branch-54016
04/06/2023, 12:52 PMrefined-addition-53644
04/06/2023, 12:56 PMcold-branch-54016
04/06/2023, 1:00 PMambitious-actor-36781
04/10/2023, 10:52 PMambitious-actor-36781
04/10/2023, 10:55 PM