Repository navigation
perf(ci): build the Service image once for its test shards - #5079
Merged
Merged
Conversation
A new job, Service Image Build, builds the service stage once and uploads it as an artifact. Each of the six Service Image Tests shards needs that job, downloads the archive and runs docker load, so no shard builds the image. Before, the Buildx setup, the build and their post steps took 100.5 s of each shard on average. The build step uploads no build record, because a failed artifact service held a shard for 631 s in that upload. The shards print their 10 slowest tests and the reason for each skip, and they restore no tooling cache: setup-toolchain skips its cache step on empty paths. The #1643 invariant accepts the image that a needed job exports and the shard loads, and fails when a shard builds the image again. Closes #4642
Owner
Author
Measurements (Actions API)Before: 15 successful Service Image Tests runs of 2026-11-12 (90 shard jobs). After: run 43230528359 of this pull request.
fail-to-pass
Owner stepsNone. |
dan-petty
marked this pull request as ready for review
November 12, 2026 14:09
2 tasks done
This was referenced Nov 12, 2026
Owner
Author
|
Review findings for this pull request, and what I did. The pull request was merged, so the fix is in a follow-up pull request.
|
dan-petty
added a commit
that referenced
this pull request
Nov 12, 2026
The shard test step of Service Image Tests gave pytest `-rs` (#5079). The `-r` option of pytest replaces its default report characters `fE`, so the short summary of a failed shard gave only the skip reasons and did not name the failed and error tests. The step now gives `-rfEs`: the summary gives each skip reason and names each failed and error test again. The workflow shape test builds the expected option from `CONST_CI_SHARD_SUMMARY_CHARS`, the summary characters of the `devops ci` shard row (#4673), so the two kinds of shard keep one summary. `docs/SDLC.md` and the `ci-service-image-tests` spec say that a shard names each failed test. Closes #5103 Change: `openspec/changes/archive/2026-11-12-5103-keep-failed-test-ids-in-the/`
dan-petty
pushed a commit
that referenced
this pull request
Nov 12, 2026
🤖 I have created a release *beep* *boop* --- ## [0.119.0](v0.118.0...v0.119.0) (2026-11-12) ### Features * **repos:** the claim sets In Progress ([#5111](#5111)) ([06ef1c6](06ef1c6)) * **roadmap:** a fix-plan step repairs a plan PR with open findings ([#5104](#5104)) ([ca5b16d](ca5b16d)) * **roadmap:** extend stage review rounds while open findings drop ([#5090](#5090)) ([bacf713](bacf713)) * **roadmap:** re-anchor a stale citation that matches one line ([#5040](#5040)) ([16356d8](16356d8)) ### Bug Fixes * **ci:** keep failed test IDs in the service image shard summary ([#5106](#5106)) ([88589ef](88589ef)) * **github:** count each page of a paginated GitHub read ([#5070](#5070)) ([908e24a](908e24a)) * **github:** keep the metrics permissions out of the runner Job token ([#5064](#5064)) ([fb549ff](fb549ff)) * **github:** pace mutations through the clock seam ([#5063](#5063)) ([2bd87bc](2bd87bc)) * **k8s:** delete the CoreDNS files that k3s never applies ([#5055](#5055)) ([463f601](463f601)) * **monitoring:** tidy LLM stack windows, units and lines ([#5052](#5052)) ([375d724](375d724)) * **roadmap:** a refused kept plan uses no stage gate return ([#4983](#4983)) ([b8adbca](b8adbca)) * **roadmap:** count a command as removed only when MUST NOT governs it ([#4985](#4985)) ([2e6f407](2e6f407)) * **roadmap:** cut prose after a cited stage command ([#4982](#4982)) ([a172563](a172563)) * **roadmap:** name every module of a group with no named test ([#5089](#5089)) ([27a0e79](27a0e79)) * **roadmap:** stage returns every open review finding to the planner ([#5067](#5067)) ([21b116e](21b116e)) * **roadmap:** the alternatives check reads the tools in use ([#5062](#5062)) ([8903233](8903233)) * **roadmap:** the constants gate reads 6_500 and no new value ([#5080](#5080)) ([8a7b113](8a7b113)) * **roadmap:** the constants gate reads only a stated value ([#5042](#5042)) ([cf4733e](cf4733e)) * **telemetry:** read repository traffic as the GitHub App ([#4932](#4932)) ([7c42823](7c42823)) * **tests:** close the UDP, DNS and git gaps of the network floor ([#5101](#5101)) ([047ee48](047ee48)) * **tests:** repair the bwrap contract suite and gate it ([#5110](#5110)) ([9a0659d](9a0659d)), closes [#4715](#4715) ### Performance Improvements * **ci:** build the Service image once for its test shards ([#5079](#5079)) ([dcf5bd5](dcf5bd5)) * **ci:** run only the required checks on the release PR ([#5057](#5057)) ([8174071](8174071)) * **ci:** stop the cache export of pull request image builds ([#5113](#5113)) ([ba30820](ba30820)) * **roadmap:** consolidate keeps its vectors in the shared tiers ([#5099](#5099)) ([2a8bf1a](2a8bf1a)) ### Code Refactoring * **roadmap:** one Status writer for every job ([#5109](#5109)) ([24cfedc](24cfedc)) --- 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>
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.
Each of the six Service Image Tests shards built the
servicestage again. A new job,Service Image Build, builds it once and uploads it as an artifact, as the Docker guide "Share built image between jobs" does. Each shard needs that job and runsdocker load, so no shard has a build step.The build step uploads no build record: a failed artifact service once held a shard for 631 s in that upload. The shards print their 10 slowest tests and each skip reason (
--durations=10,-rs). They restore no tooling cache:setup-toolchainskips its cache step on empty paths. The #1643 invariant accepts the image that a needed job exports, and fails when a shard builds again.Closes #4642
Change:
openspec/changes/archive/2026-11-12-4642-build-the-service-image-once-for/