Skip to content

Commit

Permalink
Merge pull request #47 from Manishearth/chunking
Browse files Browse the repository at this point in the history
Add support for chunking; use clap for arg parsing
  • Loading branch information
Manishearth committed Jul 31, 2023
2 parents 8983423 + 98524e0 commit 9071203
Show file tree
Hide file tree
Showing 6 changed files with 408 additions and 19 deletions.
299 changes: 298 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ path = "src/bin/cargo-test-all-features.rs"
json = "0.12"
itertools = "0.10"
termcolor = "1"
clap = { version = "4.3.19", features = ["derive"] }
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ max_combination_size = 4
allowlist = ["foo", "bar"]
```

The project also supports chunking: `--n-chunks 3 --chunks 1` will split the crates being tested into three sets (alphabetically, currently), and run the requested command for the first set of crates only. This is useful for splitting up CI jobs or performing disk cleanups since for large workspaces `check-all-features` and friends can take a very long time and produce a ton of artifacts.

## License

Licensed under either of
Expand Down
Loading

0 comments on commit 9071203

Please sign in to comment.