Skip to content

Move smoke test to make target, reuse for CI#117

Merged
EdGeraghty merged 3 commits into
developfrom
make-smoke
Jun 18, 2026
Merged

Move smoke test to make target, reuse for CI#117
EdGeraghty merged 3 commits into
developfrom
make-smoke

Conversation

@EdGeraghty

Copy link
Copy Markdown
Member

This pull request refactors how smoke tests are run in CI and locally by moving the Docker-based smoke test logic into a reusable smoke-test Makefile target. This change simplifies the GitHub Actions workflow and makes it easier to run smoke tests outside of CI.

CI/CD workflow simplification:

  • The .github/workflows/build-with-smoke-tests.yml workflow now uses make smoke-test instead of manually scripting Docker build/run/smoke-test steps, removing a large block of duplicated shell code.

Makefile enhancements:

  • Added a new smoke-test target to the Makefile, encapsulating all Docker build, run, and smoke test steps. This target includes robust cleanup, version checks, port checks, admin GUI readiness checks, and content verification.
  • Introduced environment variable defaults (DEFAULT_SMOKE_TEST_IMAGE, DEFAULT_SMOKE_TEST_CONTAINER, etc.) to make the smoke test easily configurable and portable.
  • Updated the Makefile help output to document the new smoke-test target.

Overall, this refactor improves maintainability, reduces duplication, and makes smoke testing more accessible for local development and CI.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the Docker-based smoke test so it can be run consistently in CI and locally via a new make smoke-test target, and updates the GitHub Actions workflow to call that target instead of duplicating shell logic.

Changes:

  • Added a smoke-test Makefile target that builds the image, runs a container, and performs basic HTTP/content checks.
  • Simplified the CI workflow by replacing inline Docker/run/check steps with make smoke-test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Makefile Adds smoke-test target and documents it in help; introduces default smoke-test configuration variables.
.github/workflows/build-with-smoke-tests.yml Removes duplicated Docker/build/run/check steps and runs the new make smoke-test target.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Makefile Outdated
Comment thread Makefile Outdated
EdGeraghty and others added 2 commits June 18, 2026 14:54
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Otherwise if we had a production setting in the environment it would reuse it for the smoke test

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@EdGeraghty EdGeraghty merged commit 49a1f58 into develop Jun 18, 2026
8 checks passed
@EdGeraghty EdGeraghty deleted the make-smoke branch June 19, 2026 09:32
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.

2 participants