brave-hair-402
03/09/2023, 11:23 AMhappy-kitchen-89482
03/09/2023, 4:17 PM--test-shard
flag, as explained here: https://www.pantsbuild.org/docs/advanced-target-selection#sharding-the-input-targets
And that also gives an idea of how to shard other goals. But note that this way, any work (e.g., compilation) required by tests across multiple shards will be performed multiple times, so this is one example of why remote execution is the better paradigm.broad-processor-92400
03/09/2023, 7:43 PMpants --filter-tag-regex=foo-bar-.* package ::
to only package targets that have tags=["foo-bar-bar"]
or tags=["foo-bar-123"]
(allowlist), and similarly pants --filter-tag-regex=-foo-bar-.* package ::
to package everything except them (blocklist)
⢠-
prefix on a CLI target https://www.pantsbuild.org/docs/goals#goal-arguments, e.g. pants package :: -path/to/ignored:: -some/other:target
brave-hair-402
03/09/2023, 7:51 PM