<#17619 Add support for `--shard` to `lint`/`fix`/...
# github-notifications
q
#17619 Add support for `--shard` to `lint`/`fix`/`fmt`/`check` New issue created by danxmoran Is your feature request related to a problem? Please describe. For some large codebases,
./pants lint ::
and
./pants check ::
can take too long to run effectively as a single job in CI. You can run with
--changed-since
to mitigate this, but that introduces its own overhead and you can still end up running effectively everything for certain diffs. Describe the solution you'd like
./pants test
exposes a
--shard=k/N
option to help mitigate the same problem. I think it'd make sense to add the same flag to
lint
and
check
(and
fix
and
fmt
to keep parity with
lint
). Describe alternatives you've considered I could recreate the
--shard
calculation using
./pants list
and some creative shell - I suspect it'd be messy. pantsbuild/pants