Skip to content

ci(ci): mount the smoke home tmpfs with mode=1777 - #6509

Merged
dan-petty merged 2 commits into
mainfrom
ci/6468-portable-smoke-tmpfs
Nov 20, 2026
Merged

dan-petty merged 2 commits into
mainfrom
ci/6468-portable-smoke-tmpfs

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The image smoke steps of ci.yml and release.yml mounted the home with --tmpfs /home/devops:uid=1000,gid=1000. Docker gives these options to the kernel, but Podman refuses them (unknown mount option "uid=1000"), so the steps did not run in the devcontainer, where docker is podman-docker. The steps now use --tmpfs /home/devops:mode=1777, which Docker and Podman both accept. The home is then root 1777, so user 1000 still writes its files there, like it writes the emptyDir home of a pod. The two runner commands keep exec,size=3g.

Closes #6468

Change: openspec/changes/archive/2026-11-20-6468-portable-smoke-tmpfs/

Podman refuses the uid=1000,gid=1000 tmpfs options of the image smoke
steps. The mode option works with Docker and with Podman.
@dan-petty dan-petty added type/infra Type infra: the build, CI, images or cluster scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 20, 2026
@dan-petty

dan-petty commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner Author

Proof of the change

Podman: the devcontainer of #6414

Engine: rootless Podman 5.8.6, through podman-docker. I built the 2 images from Dockerfile at commit 2cecf81, as ci.yml builds them:

Command Exit
docker build -f Dockerfile -t devops-cli-service:local . 0 (211 s)
docker build -f Dockerfile --target runner -t devops-cli-runner:local . 0 (103 s)

A script took the run: block of each smoke step from .github/workflows/ci.yml and ran all its lines in one bash shell with set -euo pipefail, with IMAGE set as the step sets it. The script printed the exit code after each command. A failure stops the script.

Step Commands Changed commands Result
Run Service Image Smoke Test 11 1 (docker run -d --name svc ... --tmpfs /home/devops:mode=1777 ...), 8 (Python probe with --tmpfs /home/devops:mode=1777) each command exit 0; /healthz returned "status":"ok"
Run Runner Image Smoke Test 8 6 (Python probe with --tmpfs /home/devops:mode=1777), 8 (--tmpfs /home/devops:mode=1777,exec,size=3g, then uv run --locked ruff --version) each command exit 0; command 8 printed ruff 0.17.6

Control, on the same Service image:

Command Exit
docker run --rm --read-only --tmpfs /tmp --tmpfs /home/devops:uid=1000,gid=1000 ... --entrypoint id "$IMAGE" -u 125: Error: unknown mount option "uid=1000": invalid mount option
docker run --rm --read-only --tmpfs /tmp --tmpfs /home/devops:mode=1777 ... --entrypoint python "$IMAGE" -c "<stat of the home>" 0: uid 1000, home owner 0, mode 0o1777, data directory under the home True

Thus user 1000 writes probe.txt to the data directory under /home/devops, and runs git init in /home/devops/probe. After the run, I removed the 2 images, their build layers and the 4 base images that the build pulled.

Docker: GitHub-hosted runner

The image-change filters of the jobs service-image and runner-image of ci.yml watch .github/workflows/ci.yml. Thus this pull request runs both smoke steps, and a change to the workflow needs no other trigger. On head 2cecf81 (CI Quality Gate run 44732800736, runner label ubuntu-26.04):

Job Detect Image Content Changes Build and Load Smoke Test
Service Image success success success
Runner Image success success success

On head 1b33207 (the archive commit, run 44733950970, runner label ubuntu-26.04), both smoke steps ran again and passed.

release.yml runs the same commands at the next release. tests/commands/test_ci.py::test_service_image_smoke_test_parity and tests/invariants/test_runner_image.py make sure that the smoke steps of ci.yml and release.yml stay the same text.

Local checks

Command Exit
uv run devops ci --check --only actionlint,zizmor 0
uv run devops ci test tests/commands/test_ci.py tests/invariants/test_runner_image.py 0 (124 passed)
! git grep -n 'home/devops:uid=' -- .github/workflows 0
uv run devops openspec archive 6468-portable-smoke-tmpfs 0

@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: 1b33207e994e96d349776a8d8491607cb484c678

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Trivy success run
CodeQL success run
Plan Check skipped run
Tests on Main skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Analyze (python) success run
Analyze (actions) success run
Static Analysis success run
Tests & Coverage (shard 5 of 5) success run
Tests & Coverage (shard 3 of 5) success run
Tests & Coverage (shard 4 of 5) success run
Tests & Coverage (shard 1 of 5) success run
Tests & Coverage (shard 2 of 5) success run
Service Image success run
Runner Image success run
MCP Server Image success run
Design Tokens success run
Changed-Test Independence success run
Semantic PR title success run

Skipped check: Plan Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Dependency Freshness

@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 12:22
@dan-petty
dan-petty merged commit a72556a into main Nov 20, 2026
24 checks passed
@dan-petty
dan-petty deleted the ci/6468-portable-smoke-tmpfs branch November 20, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners 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 image smoke steps under Podman as well as Docker

1 participant