Repository navigation
perf(ci): install a small package delta on the prepared Tier 2 runtime (#1592) - #2085
Merged
Merged
Conversation
#1592) One zlib update since the image was made sent every test job to the stock path (75 s of apt). Up to 16 changed packages now install on top of the prepared image; the whole closure is still verified.
zackees
force-pushed
the
infra/1592-prepared-delta
branch
from
October 24, 2026 07:46
f90b1ba to
7492eaa
Compare
Member
Author
|
PR run 40075452627: all four test jobs logged |
3 of 4 tasks
6 tasks
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.
Refs #1592. Part of #2072 / #930.
Why
The prepared Tier 2 runtime (#1717) cut test-job setup to 20-30 s, but it is used only when the artifact's package closure matches its inventory exactly. Since a zlib security update (
zlib1g1ubuntu3.1->1ubuntu3.2, 1 of 224 packages), every Tier 2 test job logsRuntime selection: stock (current package closure differs)and spends 75-80 s installing the whole closure into the stock base (queue run 06:13 UTC, PR run 40073566086).What
ci-runtime.pynow computes the delta between the closure and the prepared inventory (runtime-selection.py: delta()):MAX_DELTA= 16 changed or missing packages: load the prepared image,apt-get update, install exactly thosename=versionrecords, then verify the whole closure as before (a delta that does not install fails, it does not fall back);The measurement JSON records the delta. Corrupt archives and identity mismatches still fail closed.
Expected
About 75 s -> 30-40 s setup per Tier 2 test job (prepared load plus one small apt transaction), on every runner, until the image is refreshed. To be confirmed from this PR's run (look for
Runtime selection: prepared plus zlib1g:amd64=...).Tests
ci/test_tier2_runtime_delta.py(5 cases) errors: nodelta(), nodownload_prepared, noMAX_DELTA../lintpasses.test_tier2_ci_runtime.py's fallback case now uses a closure overMAX_DELTA(the intended rule change).