Skip to content

chore(docker): run test suite inside service image in CI - #4425

Merged
dan-petty merged 4 commits into
mainfrom
chore/1643-align-service-image-base-with-devcontainer
Nov 10, 2026
Merged

dan-petty merged 4 commits into
mainfrom
chore/1643-align-service-image-base-with-devcontainer

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

This change runs the sharded test suite inside the built devops-cli-service:local image in CI and enforces the Debian base-image contract. Dockerfile uses python:3.14-slim-trixie, while .devcontainer/Dockerfile uses debian:sid and CI test-shard runs on ubuntu-26.04. Running pytest inside the built service image exercises the Debian trixie userland and the installed /app/.venv wheel before merge. The service-image-test job mounts locked development packages and pinned test tools read-only so the shipped service stage keeps its minimal image. An invariant test checks that stages inside each Dockerfile match and that cross-Dockerfile release differences keep service-image-test in .github/workflows/ci.yml.

Closes #1643

Change: openspec/changes/archive/2026-11-10-1643-align-service-image-base-with-devcontainer/

@dan-petty dan-petty added type/chore Type chore: maintenance, such as a dependency update scope/docker Docker and Podman commands and cleanup labels Nov 10, 2026
@dan-petty
dan-petty force-pushed the chore/1643-align-service-image-base-with-devcontainer branch from 6c16232 to ea175fd Compare November 10, 2026 21:01
@dan-petty
dan-petty marked this pull request as ready for review November 10, 2026 21:27
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results

Head commit: c148aa5cb63b0df97a081a812bf526b0f9373e7d

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
CodeQL success run
Test Job Duration skipped run
Dependency Freshness skipped run
Image Pins success run
Service Image Tests (shard 2 of 6) success run
Service Image Tests (shard 3 of 6) success run
Service Image Tests (shard 5 of 6) success run
Service Image Tests (shard 4 of 6) success run
Third-Party Image Scan success run
Service Image Tests (shard 1 of 6) success run
Tests & Coverage (shard 4 of 4) success run
DevContainer Image success run
Rule Pack Tests success run
Docs Site Build success run
Tests & Coverage (shard 2 of 4) success run
Tests & Coverage (shard 3 of 4) success run
Changed-Test Independence success run
Service Image Tests (shard 6 of 6) success run
Runner Image success run
Tests & Coverage (shard 1 of 4) success run
Static Analysis success run
MCP Server Image success run
Service Image success run
Plan Check skipped run
Semantic PR title success run
Analyze (python) success run
Analyze (actions) success run

Skipped check: Test Job Duration
Skipped check: Dependency Freshness
Skipped check: Plan Check

@dan-petty
dan-petty merged commit 48812f5 into main Nov 10, 2026
31 checks passed
@dan-petty
dan-petty deleted the chore/1643-align-service-image-base-with-devcontainer branch November 10, 2026 21:36
dan-petty added a commit that referenced this pull request Nov 11, 2026
A What Changes item of the plan of #3462 named `src/devops_cli/core/test_selection.py` in a code span, and no group changes that file, so the stage gate refused the plan. The item now names the function and the module in words. The plan states what the shared test-module test does without the claim that a full run of `devops ci test` agrees with it, because pytest also collects `*_test.py` there. The Dependencies section drops #4425, which is merged, and long sentences are split.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/docker Docker and Podman commands and cleanup type/chore Type chore: maintenance, such as a dependency update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(docker): Align service image base with devcontainer

1 participant