You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
0 commit comments