Skip to content

fix(ci): take the CI job tools from the devtools image - #6543

Merged
dan-petty merged 6 commits into
mainfrom
ci/6416-tool-jobs-in-devtools
Nov 20, 2026
Merged

dan-petty merged 6 commits into
mainfrom
ci/6416-tool-jobs-in-devtools

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

CI jobs installed their tools with devops install-tools, but the
tools now come from the devtools image, and devops-cli is not a
package manager. The new action devtools-commands puts the commands
that a host job names on PATH. It restores them from a cache keyed by
the image digest, and only on a miss exports the devtools-bin stage of
.devcontainer/Dockerfile. Static Analysis (bwrap row), the test shards
(coverage paths), Copilot Setup Steps (GitHub ignores container),
Service Image Tests (Docker Engine) and Image Pins use it. Rule Pack
Tests runs in the image, whose Semgrep is a venv; Copilot gets no
Semgrep. The rule pack drops its Semgrep pin: rules.lock holds no
version, and --check compares none. No workflow runs
devops install-tools now.

Closes #6416

Change: openspec/changes/archive/2026-11-20-6416-tool-jobs-in-devtools/

@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/gate The quality gate and its checks labels Nov 20, 2026
@dan-petty
dan-petty force-pushed the ci/6416-tool-jobs-in-devtools branch from 2a0f992 to f9b5533 Compare November 20, 2026 18:13
@dan-petty
dan-petty force-pushed the ci/6416-tool-jobs-in-devtools branch from f9b5533 to adc6cfd Compare November 20, 2026 19:07
@dan-petty dan-petty changed the title ci(gate): take the CI job tools from the devtools image fix(ci): take the CI job tools from the devtools image Nov 20, 2026
The CI jobs installed their tools with `devops install-tools` from the
release URLs of tools.lock. The jobs on the runner host now take the
commands they name from the devtools-bin stage of
.devcontainer/Dockerfile through the new action
.github/actions/devtools-commands, which caches them under the digest of
the image. Rule Pack Tests runs in the devtools image, and the rule pack
no longer compares a pinned Semgrep version.
@dan-petty
dan-petty force-pushed the ci/6416-tool-jobs-in-devtools branch from adc6cfd to 6883629 Compare November 20, 2026 19:37
@dan-petty

Copy link
Copy Markdown
Owner Author

Status of head 6883629f9 (rebased on b065527fa, after #6536): 34 checks pass, 4 skip, none fail. Rule Pack Tests passes: the rule pack compares no Semgrep version now.

Step of .github/actions/devtools-commands, in seconds:

Job Miss (adc6cfd75) Hit (6883629f9) Old install-tools on main
Static Analysis 39 3 13 (OpenSpec, Trivy, kube-linter)
Tests & Coverage shards 42-55 1-2 5-7
Service Image Tests shards 41-57 1-3 not measured
Image Pins (host, was a container job: 40 s to start) 51 1 not measured
Copilot Setup Steps 59 1 not measured

Rule Pack Tests stays a container job (Semgrep of the image is a venv): Initialize containers took 45 s, the job 92 s.

Tests & Coverage on this head: slowest shard 289 s + join 72 s = 361 s. The tool step of that shard took 1 s. The join spent 18 s in Changed-Line Coverage, which a push to main does not run. The last green push run of main (44801800381) took 281 s + 52 s = 333 s, with 5 s for Install promtool in its slowest shard.

@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 20:05
Image Pins also runs on a push to main that changes its paths, so main
saves the cache entry of kubectl and helm that each pull request
restores. The job only reads, and a push to main has its commit as the
concurrency group. SDLC.md names the full trigger paths, the promtool
docstrings name the devtools image, and the OpenTofu CI scenario says
that the step restores the commands or builds the stage on a miss.
zizmor reports each write of an environment file in a composite action
(github-env), because the action cannot know the trigger of its caller.
The devtools-commands action now only copies the commands and outputs
their directory. Each job that runs the commands on the runner puts
that directory first on PATH in the next step, with the output in env.
The Service Image Tests copy the commands by the output path and run
none of them on the runner, so that job puts nothing on PATH.
@dan-petty
dan-petty merged commit 2e4188f into main Nov 20, 2026
38 checks passed
@dan-petty
dan-petty deleted the ci/6416-tool-jobs-in-devtools branch November 20, 2026 21:58
dan-petty pushed a commit that referenced this pull request Nov 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.185.1](v0.185.0...v0.185.1)
(2026-11-20)


### Bug Fixes

* **ci:** take the CI job tools from the devtools image
([#6543](#6543))
([2e4188f](2e4188f))
* **roadmap:** a Job leaves a stale lock for the agent
([#6558](#6558))
([be35253](be35253)),
closes [#6557](#6557)
* **roadmap:** a wait keeps only real repository paths
([#6546](#6546))
([165463c](165463c))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/gate The quality gate and its checks type/infra Type infra: the build, CI, images or cluster

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: run the tool jobs in the devtools image

2 participants