-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous CI was strangely relying on workflows to split the CI and have it run in parallel. A lot of the work was made several times: e.g. installing rust stable + nightly, installing packages, starting our builder image etc. Overall it was done x6 times. It was strongly overkill considering some of the steps run in (<1s). After this refactoring we run in two "jobs" with a different set of steps. - Lint runs clippy + all of the smaller jobs (cargo fmt, cargo deny, checking the license) - Test runs the unit test. In addition, we stop relying on the builder image and the associated confusion. For instance, the rust stable installed in the CI workflow was actually not used. The quickwit-builder image one was taken because of the rust-toolchain.toml. After the PR, we run on stock ubuntu-latest directly. We then rely on rustup to install the right version of cargo/rust as define in the rust-toolchain. Updating the rust version does not require any extra changes. cargo deny / cargo nextest need to be build unfortunately. That step is however cached.
- Loading branch information
1 parent
adfff7f
commit f1a25a4
Showing
3 changed files
with
85 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
[toolchain] | ||
channel = "1.70" | ||
components = ["cargo", "clippy", "rustfmt", "rust-docs"] | ||
|