Skip to content

feat: add optional smoke test step to docker-build workflow#263

Open
DeepDiver1975 wants to merge 3 commits intomasterfrom
feat/smoke-test
Open

feat: add optional smoke test step to docker-build workflow#263
DeepDiver1975 wants to merge 3 commits intomasterfrom
feat/smoke-test

Conversation

@DeepDiver1975
Copy link
Copy Markdown
Contributor

Summary

  • Adds 5 optional inputs to docker-build.yml: smoke-test-port, smoke-test-url, smoke-test-env, smoke-test-entrypoint-cmd, smoke-test-version-jq
  • When smoke-test-url is empty (default), the Smoke test step is skipped — no change for existing callers
  • When set, the step starts 127.0.0.1:5000/image:temp from the local registry, polls the URL every 2s for up to 60s, and fails with container logs on timeout
  • smoke-test-entrypoint-cmd overrides the entrypoint to /bin/sh -c "<cmd>" for images that need an init step (e.g. oCIS: ocis init || true; exec ocis server)
  • smoke-test-version-jq optionally asserts a jq-extracted field from the response JSON equals docker-tag
  • All inputs are bound to env: vars in the run: block — no inline expression interpolation

🤖 Generated with Claude Code

DeepDiver1975 and others added 2 commits April 23, 2026 13:29
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace unquoted ARGS string with bash array to prevent word-splitting
- Add description to smoke-test-port input documenting host==container port
- Fix poll loop: pre-declare STATUS, check after loop, accurate timing
- Guard against empty CID after docker run
- Add comment clarifying smoke-test-entrypoint-cmd is an entrypoint override

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a smoke-test-cmd input to docker-build.yml for images that have no
HTTP endpoint (e.g. base images). The command runs inside the container
and must exit 0. Wires it up in main.yml to assert the Ubuntu version
matches the matrix tag via /etc/os-release.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant