Skip to content

feat: add native container image testing - #1002

Merged
neilime merged 1 commit into
mainfrom
docs/container-image-testing-adr
Nov 28, 2026
Merged

neilime merged 1 commit into
mainfrom
docs/container-image-testing-adr

Conversation

@neilime

@neilime neilime commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Container image tests currently repeat image selection, native execution, report retention and cleanup across repositories. This implements ADR 0014 as actions/docker/test-image: one invocation tests one immutable image and platform with a repository-owned Testcontainers/Node or Goss suite.

  • Detect the engine from root *.test.js or goss.yaml files by default. Reject absent or ambiguous suites, moving tags, invalid platforms, stale reports and runs with no executed tests. Explicit engine selection supports mixed suite directories.
  • Reuse the released Hoverkraft Node runner and upstream dgoss. Preserve the candidate's configured runtime and distinguish registry digests from local image IDs. Maintain pinned tools through Renovate.
  • Follow sibling composite test actions with working-directory, report-file, path-mapping, report-group, the common parser and seven-day native report artifacts. Retain failed-test reports and separate diagnostics; expose validation only after successful execution, reporting and owned-resource cleanup.
  • Add a dedicated action test workflow to the existing shared CI and consolidated reporting. Native fixtures cover successful registry tests, failing local-image tests, timeouts, Goss runtime incompatibility, artifact outputs and preservation of unrelated resources. Intentional failure artifacts use a separate fixture group.
  • Include the same bundled execution path as a local CLI, concise usage and native suite examples in the generated action README, and the accepted ADR. Promotion still forwards original producer metadata under ADR 0006.

Validation completed locally on Linux amd64:

  • Repository make lint for all changed files, documentation links and git diff --check.
  • 11 focused unit tests, including bounded malformed-registry rejection; 9 contract tests against the isolated distribution; reproducible check:dist; npm audit with zero vulnerabilities.
  • Real Docker execution for both engines: passing Node suite about 5 seconds and Goss about 3 seconds. Failed assertions retain JUnit; the 10-second timeout cases finish in about 12-13 seconds with owned containers, networks and volumes removed. An unrelated caller-owned container survives. Goss rejects the pinned short-lived official image in about 3 seconds.

The real engine checks exercise Docker ownership, native lifecycle and JUnit boundaries that unit tests cannot establish. Supported runners are Linux amd64/arm64 with a local Unix Docker socket; arm64 execution has not been validated locally. Workflow callers own their required platform matrix and suite inventory. Broad consumer migration follows release.

The malformed-registry regression timed out at 5 seconds before the fix and passes in about 90 ms after it, including subprocess startup. The bounded subprocess prevents a future synchronous regex regression from blocking the test runner.

CI verification passed both native lifecycle/reporting jobs, unit tests, CodeQL, dependency review, lint, action pinning and host/container distribution checks. CodeQL marks the reported regex alert as fixed.

@github-actions github-actions Bot added the type: documentation Updates documentation label Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Test results

Workflow run and full reports · Commit 97742e6

Jobs: 11 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Test: 263 passed · 0 failed · 0 skipped.

Test details

Test results

Test Results

Status Count
✅ Passed 263
❌ Failed 0
⏭️ Skipped 0
Total 263
Suite Passed Failed Skipped
goss 4 0 0
Unknown Suite 259 0 0

✅ Pass Rate: 100.0%

Job results and report availability
Job Result Report artifacts
lint success 1
test-action-helm-generate-docs success 1
test-action-helm-prepare-chart success 1
test-action-helm-prepare-release success 1
test-action-helm-lint-chart success 1
test-action-helm-test-chart success 1
test-action-helm-release-chart success 1
test-action-docker-promote-images success 1
test-action-docker-verify-images success 1
test-action-docker-test-image success 3
test-action-docker-prune-pull-requests-image-tags success 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Code coverage

Workflow run and full reports · Commit 97742e6

Jobs: 11 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Coverage: 10 source report(s); percentages remain separate.

Coverage details

Coverage results

ci-reports-1-test-action-docker-promote-images-actions-docker-promote-images-4d03775c-380e-4fcc-82a1-884e1c5ea9f1/lcov.info

Coverage

Metric Covered Total Percentage
Lines 488 494 98.79%
Branches 82 83 98.80%
Functions 23 24 95.83%

Overall: 98.79% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-action-docker-prune-pull-requests-image-tags-actions-docker-prune-pull-requests-image-tags-18f60c46-4ae7-449c-a92c-6fcb5b7e4555/lcov.info

Coverage

Metric Covered Total Percentage
Lines 192 230 83.48%
Branches 31 39 79.49%
Functions 13 14 92.86%

Overall: 83.48% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜⬜⬜

ci-reports-1-test-action-docker-test-image-actions-docker-test-image-5c1901fb-0aed-457e-97bc-ded108e4d17a/lcov.info

Coverage

Metric Covered Total Percentage
Lines 460 759 60.61%
Branches 131 164 79.88%
Functions 41 52 78.85%

Overall: 60.61% 🟡
🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨⬜⬜⬜⬜⬜⬜⬜⬜

ci-reports-1-test-action-docker-verify-images-actions-docker-verify-images-e3a90824-cf18-4336-9f9e-b80e5d0dfc66/lcov.info

Coverage

Metric Covered Total Percentage
Lines 78 78 100.00%
Branches 16 16 100.00%
Functions 3 3 100.00%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-action-helm-generate-docs-actions-helm-generate-docs-78aed9c0-9423-4f58-91d2-454644a3e70b/lcov.info

Coverage

Metric Covered Total Percentage
Lines 368 386 95.34%
Branches 130 140 92.86%
Functions 29 30 96.67%

Overall: 95.34% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜

ci-reports-1-test-action-helm-lint-chart-actions-helm-lint-chart-c0b94723-54c8-4272-82ad-b96844aa727a/lcov.info

Coverage

Metric Covered Total Percentage
Lines 193 200 96.50%
Branches 45 51 88.24%
Functions 11 13 84.62%

Overall: 96.50% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜

ci-reports-1-test-action-helm-prepare-chart-actions-helm-prepare-chart-92d1e29a-8230-46ce-bdb2-0e6bcf316fa3/lcov.info

Coverage

Metric Covered Total Percentage
Lines 204 232 87.93%
Branches 60 75 80.00%
Functions 20 24 83.33%

Overall: 87.93% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜⬜

ci-reports-1-test-action-helm-prepare-release-actions-helm-prepare-release-e55f6b17-f1b8-4799-b7b5-afa783c041b4/lcov.info

Coverage

Metric Covered Total Percentage
Lines 173 183 94.54%
Branches 48 55 87.27%
Functions 6 6 100.00%

Overall: 94.54% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩⬜

ci-reports-1-test-action-helm-release-chart-actions-helm-release-chart-a23230d7-f9e6-441b-95a3-0cf253f4b221/lcov.info

Coverage

Metric Covered Total Percentage
Lines 200 200 100.00%
Branches 51 55 92.73%
Functions 5 6 83.33%

Overall: 100.00% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

ci-reports-1-test-action-helm-test-chart-actions-helm-test-chart-c004e232-2d9b-4319-9c22-574258de980b/lcov.info

Coverage

Metric Covered Total Percentage
Lines 257 260 98.85%
Branches 58 62 93.55%
Functions 13 13 100.00%

Overall: 98.85% 🟢
🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩

Job results and report availability
Job Result Report artifacts
lint success 1
test-action-helm-generate-docs success 1
test-action-helm-prepare-chart success 1
test-action-helm-prepare-release success 1
test-action-helm-lint-chart success 1
test-action-helm-test-chart success 1
test-action-helm-release-chart success 1
test-action-docker-promote-images success 1
test-action-docker-verify-images success 1
test-action-docker-test-image success 3
test-action-docker-prune-pull-requests-image-tags success 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Internal - Pull request - Continuous Integration - Lint results

Workflow run and full reports · Commit 97742e6

Jobs: 11 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Lint: Collected diagnostics and Super-Linter summaries. Execution status is included in the job outcomes.

Super-Linter details

Super-linter summary

Language Validation result
BIOME_FORMAT Pass ✅
BIOME_LINT Pass ✅
CHECKOV Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_COMMITLINT Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSCPD Pass ✅
MARKDOWN Pass ✅
MARKDOWN_PRETTIER Pass ✅
NATURAL_LANGUAGE Pass ✅
PRE_COMMIT Pass ✅
RENOVATE Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter
Super-linter revision: 2da136927bd4a73596db63044b504547c62cb854
Super-linter version: 9.0.0

Job results and report availability
Job Result Report artifacts
lint success 1
test-action-helm-generate-docs success 1
test-action-helm-prepare-chart success 1
test-action-helm-prepare-release success 1
test-action-helm-lint-chart success 1
test-action-helm-test-chart success 1
test-action-helm-release-chart success 1
test-action-docker-promote-images success 1
test-action-docker-verify-images success 1
test-action-docker-test-image success 3
test-action-docker-prune-pull-requests-image-tags success 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@neilime neilime changed the title docs: define shared container image testing feat: add native container image testing Nov 26, 2026
@github-actions github-actions Bot added the type: feature Introduces a new feature label Nov 26, 2026
@neilime
neilime marked this pull request as ready for review November 26, 2026 11:03
Comment thread docs/usage/container-image-tests.md Resolved
Comment thread docs/README.md Resolved
@neilime
neilime force-pushed the docs/container-image-testing-adr branch from 12ca428 to aa38c10 Compare November 26, 2026 13:39
@neilime
neilime merged commit d3b17dc into main Nov 28, 2026
348 checks passed
@neilime
neilime deleted the docs/container-image-testing-adr branch November 28, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: documentation Updates documentation type: feature Introduces a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants