Skip to content

ci: verify Docker build and HTTP health - #25

Merged
DinneK merged 2 commits into
mainfrom
dk/verify-docker-build
Nov 20, 2026
Merged

DinneK merged 2 commits into
mainfrom
dk/verify-docker-build

Conversation

@DinneK

@DinneK DinneK commented Nov 20, 2026 •

Copy link
Copy Markdown

ci: verify Docker build and HTTP health

Problem

The Dockerfile now installs dependencies from uv.lock, but the updated image has not been built or started because Docker is unavailable locally.

Solution

Add a separate GitHub Actions job that builds the image, starts a container, checks /health, prints container logs, and removes the container.

Result

Container packaging and HTTP startup will be checked on pull requests to main and pushes to main. The job requires no Databricks credentials and does not publish an image.

Test Plan

  • git diff --check passed before the final newline edit.
  • Formatting and lint checks passed.
  • All 153 tests passed locally; CI test job passed.
  • Docker image built, container started, and /health check passed in CI.
  • CodeQL checks passed.
  • Databricks MCP verification remains blocked by PrivateLink.

AI Assistance

I developed this change with ChatGPT’s help as part of learning the codebase, implementation, and testing practices. I made the edits and ran the reported checks locally.

Signed-off-by: Dinne Kopelevich <dinne.kopelevich1@cms.hhs.gov>
@DinneK
DinneK requested review from decause-gov and natalialuzuriaga and a balanced review from Copilot November 20, 2026 23:14
@DinneK DinneK self-assigned this Nov 20, 2026

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.

🟢 Approval recommended

No active review issues are reported for the Docker smoke-test CI addition.

No open issues 🎉

What changed in this PR

Adds a separate Docker smoke-test job alongside existing CI tests to check image builds and HTTP startup without Databricks credentials. It does not validate MCP calls or warehouse access.

Changes:

  • Builds the image and starts a container with port 8080 published on localhost.
  • Checks /health with retries to allow for startup.
  • Collects container logs and removes the container regardless of success.
File Description
.github/​workflows/​ci.yml Adds the Docker build, HTTP health check, logging, and cleanup job with a 15-minute timeout.

Review effort: Balanced

Signed-off-by: Dinne Kopelevich <dinne.kopelevich1@cms.hhs.gov>

@natalialuzuriaga natalialuzuriaga 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.

Found a nit otherwise, LGTM!

Comment on lines +43 to +44
"DoD",
"DoE",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

If case sensitive, change to DOD and DOE

@DinneK
DinneK merged commit 7829a17 into main Nov 20, 2026
4 checks passed
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.

3 participants