Repository navigation
ci: compile the offline runtime rebuild alongside the Docker live tests - #13001
Merged
Merged
Conversation
Contributor
Collaborator
Author
|
Measured in this PR's run, 38170709225, which includes #12995. Every job passed.
In the AMD64 JUnit report, the rebuild ran from 0 to 133 s, while the Docker tests ran one after another from 0 to 127 s. The compile slowed some of them: the Docker proxy test took 62 s instead of 41 s, and The image job also ran slower this time, finishing at +446 s instead of +382 s, so the gain on required checks is smaller than the job's. AMD64 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Failure
Linux AMD64's
Live / Dockerjob decides how long required checks take. In #12995's run (38137587218), its tests took 313 s. One test,runtime::tests::retained_runtime_rebuilds_offline_without_protobuf_or_a_dependency_cache, took 163 s of that on AMD64 and 113 s of 232 s on ARM64.The
live-dockerprofile runs one test at a time because the tests share one Docker engine. That test uses no engine at all: it compiles the runtime in release mode from its retained source archive, offline, with an emptyCARGO_HOMEand noprotoc. It's in this profile only because it needs Linux, yet every Docker test waits behind it.Decision
docker-enginenextest group that allows one test at a time. An override for thelive-dockerprofile puts every test except the rebuild in it.testing.mdto say so.The runner's later commands each select one gateway test, so they're unchanged. On AMD64, the first command should drop from about 250 s to roughly the rebuild's 163 s plus however much the compile slows the Docker tests on a 4-CPU runner. This PR's own run measures that, because
.config/nextest.tomlis a live input.This doesn't depend on #12995, which shares the live images.
Validation
cargo nextest show-config test-groups --profile live-docker --run-ignored onlyputs the other nine tests indocker-engineand leaves the rebuild outside it.cargo ci live-dockerpassed all 10 tests on Linux ARM64 in 258 s. In its JUnit report, the rebuild ran from 0 to 39 s while the Docker tests ran one after another, and the first command took 143 s instead of 178 s. This machine compiles much faster than a hosted runner, so CI should save more.cargo cipassed in 472 s: 1,336 workspace tests and 127 lifecycle tests. Afterwards, the documentation tests passed again with thetesting.mdchange.