forked from tikv/tikv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests has been built slowly lately. That's because we use multiple compile command to build tests for different crates. Things go worse when cdc is split as a component. On my local machine, running `make test`, cargo will be invoked 6 times. 4 of them takes minutes to finish. The reason why we try to run multiple compile command is to get around the problem mentioned in tikv#6097, which is introduced when trying to support prost and protobuf in tests at the same time. But in practice, we don't run tests with prost. Hence overhead is introduced with just potential benefit. In fact, after tikv#6317, it's impossible to run tests by `PROST=1 make test` due to rust-lang/cargo#6669. It's still possible to build, clippy check or release with prost. Given that tests with PROST=1 does not work, this PR combines all the cargo commands into single one, which save a lot of compile time. Signed-off-by: Jay Lee <[email protected]>
- Loading branch information
Showing
4 changed files
with
16 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters