Skip to content

ci: run the image smoke steps under Podman as well as Docker #6468

Closed

Description

@dan-petty

Problem

The image smoke steps of .github/workflows/ci.yml (the service image and the runner image) and of .github/workflows/release.yml start containers with --tmpfs /home/devops:uid=1000,gid=1000. Docker gives these options to the kernel. Podman checks the options and refuses them: in the devcontainer of #6414, where docker is podman-docker, rootless docker run and rootful sudo docker run with Podman 5.8.6 both stop with Error: unknown mount option "uid=1000": invalid mount option. The steps without --tmpfs ...:uid= work there (docker run --rm --entrypoint id "$IMAGE" -u). So these steps run on a GitHub-hosted runner, but not in the devcontainer, and the rule "every CI job runs in the devcontainer and on a stock GitHub-hosted runner" (docs/SDLC.md) does not hold for them.

Expected

  • Each docker run step of the image smoke checks runs with Docker on a GitHub-hosted runner and with Podman through podman-docker in the devcontainer, and the user 1000 of the image can write its tmpfs home. Podman has --tmpfs <path>:U and Docker has no such option, so the form that works on both is a decision of this item.

Proof

Source: #6414

Alternatives check of 2026-11-20: not-applicable.
Class: ci, no search.
Tool: none found.

Proposed design

Problem statement

Replace --tmpfs /home/devops:uid=1000,gid=1000 with --tmpfs /home/devops:mode=1777 in each image smoke step of .github/workflows/ci.yml and .github/workflows/release.yml. One pull request delivers the change. The devcontainer of #6414 is the Podman gate, and the CI Quality Gate workflow is the Docker gate. Docker gives uid=1000,gid=1000 to the kernel. Podman 5.8.6 stops with Error: unknown mount option "uid=1000": invalid mount option, so the steps fail in the devcontainer of #6414. The rule in docs/SDLC.md says every CI job runs in the devcontainer and on a stock GitHub-hosted runner. The steps break that rule.

Acceptance criteria

Requirement: Portable home tmpfs

Each image smoke step of .github/workflows/ci.yml and .github/workflows/release.yml SHALL mount /home/devops with --tmpfs /home/devops:mode=1777.

Scenario: Podman devcontainer smoke check

Requirement: Docker runner smoke check

The image smoke steps of .github/workflows/ci.yml MUST exit 0 on a stock GitHub-hosted runner with Docker.

Scenario: CI runner smoke check

  • WHEN the CI Quality Gate workflow runs on a stock GitHub-hosted runner for a pull request that changes image content
  • THEN each image smoke step of .github/workflows/ci.yml exits 0.

Requirement: Workflow validation

The changed workflows MUST pass the workflow validators.

Scenario: actionlint and zizmor

  • WHEN uv run devops ci --check --only actionlint,zizmor runs
  • THEN the command exits 0 and reports no workflow error.

Existing Tool Considered

The alternatives check of 2026-11-20 records not-applicable for class ci with no search, and it names no tool; see the alternatives block in the issue body. The need is a container engine, and the workflows already use Docker and Podman through podman-docker; no other open, maintained tool or library covers it. The change builds no code, so it has no build cost.

Key questions

  • Which tmpfs form works on Docker and on Podman and lets user 1000 write /home/devops?: Use --tmpfs /home/devops:mode=1777. Docker passes mode to the kernel, and Podman accepts the mode mount option. Mode 1777 is world-writable with the sticky bit, so user 1000 can create its files. Do not use uid=1000,gid=1000, because Podman 5.8.6 stops with Error: unknown mount option "uid=1000": invalid mount option. Do not use U, because Docker has no U option. (best practice) [sources: .github/workflows/ci.yml, .github/workflows/release.yml, docs/SDLC.md]
    • Chosen: mode=1777. Both engines accept the kernel mode option, and the world-writable mode lets user 1000 write the home.
    • Rejected: uid=1000,gid=1000. Podman 5.8.6 rejects uid=1000 with unknown mount option.
    • Rejected: U. Podman accepts U, but Docker has no such option.
    • Rejected: No tmpfs option. The step does not state the default mode, and the explicit mode states the permission that user 1000 needs.
    • Rejected: Engine-conditional docker run. It adds a branch to each smoke step and two forms to keep in sync.
  • Do the smoke steps need a second, engine-conditional form for Podman?: No. One form works on both engines. A branch on the engine adds a second form to each step and two forms to keep in sync. (best practice) [sources: .github/workflows/ci.yml, .github/workflows/release.yml]
    • Chosen: One portable form. One form removes the engine branch and the second form from each step.
    • Rejected: Engine-conditional form. It adds a branch to each smoke step and two forms to keep in sync.
  • Do the smoke steps keep a tmpfs home for user 1000?: Yes. --read-only makes the image's /home/devops read-only, and user 1000 must write its home for the probe. The tmpfs gives a writable home. (best practice) [sources: .github/workflows/ci.yml]
    • Chosen: Keep a writable tmpfs. The probe runs as user 1000 and writes its file, so the home must be writable.
    • Rejected: Remove the home tmpfs. The image's /home/devops is read-only under --read-only, so the probe cannot write.
  • Do the release workflow smoke steps use the same tmpfs form as the CI workflow smoke steps?: Yes. Both workflows run the same smoke commands, and the change edits the --tmpfs option in each one. [sources: .github/workflows/release.yml]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/infra
    source/agent
    status/new
    value/medium
    effort/low
    on Nov 19, 2026
  2. dan-petty commented on Nov 19, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 19, 2026
  4. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  5. added
    status/ready
    and removed
    status/new
    on Nov 20, 2026
  6. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  7. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor

    Evidence of 2026-11-20 in the devtools devcontainer (rootless Podman 5.8.6), on the published service image, with the Python probe of the Service Image Smoke Test:

    Home mount Result
    --tmpfs /home/devops:uid=1000,gid=1000 Error: unknown mount option "uid=1000"
    --tmpfs /home/devops:U exit 0 (Podman only; Docker passes U to the kernel, which refuses it)
    --tmpfs /home/devops:mode=1777 exit 0
    --mount type=tmpfs,destination=/home/devops,tmpfs-mode=1777 exit 0

    mode=1777 is a tmpfs option of the kernel that Docker and Podman both accept. The home is then root 1777, like the emptyDir of a pod (mode 0777), so the probe still proves that the user devops writes to a home it does not own. The 8 lines are in ci.yml (498, 505, 606, 609) and release.yml (359, 366, 494, 497).

  8. added
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/in-progress
    on Nov 20, 2026
  9. removed
    status/in-review
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumsource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions