Repository navigation
perf(k8s): put the dependencies in their own image layers - #4872
Conversation
Measurements (local BuildKit v0.34.2, 2026-11-11)Each build used
On Image sizes ( Checks run on the images
Tests
Steps after the mergeNo manifest, ConfigMap or Secret changes. After the first release with this change rolls out:
The first |
The lock stage exports the runtime and dev requirements of uv.lock without the project, so a release keeps the dependency layers. The runner and Service images build on cached stages that hold every dependency, and their final stages add only the apt upgrade and the project.
9d8d356 to
67fde66
Compare
Checks after the second push31 of 32 checks pass, the three required checks included. The fixes of the second push: the lock files now go to
|
Review findings after the mergeThis pull request merged before the fix of its review finding was pushed, so the finding is now issue #4928.
Evidence of the check:
Live step that stays with a person: the 10 s container start check of #4550 needs the release after the #4928 fix, because until then a release can build the dependency stages again. |
🤖 I have created a release *beep* *boop* --- ## [0.116.0](v0.115.0...v0.116.0) (2026-11-12) ### Features * **gh:** name the gh groups issue, run, label and secret ([#4923](#4923)) ([2dd4c97](2dd4c97)) ### Bug Fixes * **ci:** set job timeouts from the measured run times ([#4892](#4892)) ([e26dde5](e26dde5)) * **design:** check the design test bound and source hex values ([#4922](#4922)) ([e2c1a5a](e2c1a5a)) * **k8s:** check the credential sync context as a kubeconfig name ([#4916](#4916)) ([8797c88](8797c88)) * **roadmap:** bound the stage gate returns and start no return in a drain ([#4925](#4925)) ([77eed38](77eed38)) * **roadmap:** count each implement outcome once with its repo ([#4903](#4903)) ([c17f71f](c17f71f)) * **roadmap:** refine looks again at a wait that older rules set ([#4919](#4919)) ([e6f7cb9](e6f7cb9)) ### Performance Improvements * **k8s:** put the dependencies in their own image layers ([#4872](#4872)) ([48dc866](48dc866)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Each release changed 1.2 GB of the Service image layers and 1.7 GB of the runner image layers, so each node pulled them again. Now a release changes only the project layer, about 32 MB.
A new
lockstage exports the requirements ofuv.lockwithout the project, so a version bump keeps the cache of the dependency stages.runner-depsandservice-depshold every dependency layer. The final stages, which CI and the release never cache, add only the apt upgrade and the project, in oneCOPY --parents. Each uv install mounts the uv cache, so no layer holds it.The wheel directory with
UV_FIND_LINKSis left out:uv sync --locked --offlinedoes not read it for a locked package. #4814 takes the offline venv.Closes #4550
Change:
openspec/changes/archive/2026-11-11-4550-put-the-dependencies-in-their-own/