Skip to content

ci(docker): improve smoke test#32

Merged
dargmuesli merged 1 commit into
mainfrom
ci/docker/smoke-improve
Jul 25, 2026
Merged

ci(docker): improve smoke test#32
dargmuesli merged 1 commit into
mainfrom
ci/docker/smoke-improve

Conversation

@dargmuesli

Copy link
Copy Markdown
Member

This pull request refactors the .github/smoke-test.sh script to simplify container and network naming, improve environment variable handling, and enhance error handling and messaging. The main changes make the script more robust and easier to maintain.

Container and network naming simplification:

  • Renamed Docker containers and network from postgraphile-smoke/postgraphile-smoke-db to smoke/smoke-db, and the network from postgraphile-smoke to smoke.

Environment variable management improvements:

  • Replaced the hardcoded env-vars directory with a dynamically created temporary directory (ENV_DIR) for environment variables, and updated all references accordingly.
  • Updated cleanup logic to remove the temporary environment directory only if it was created.

Robustness and error handling:

  • Improved Docker network creation by checking for existence before creating.
  • Enhanced health check logic to handle containers without a HEALTHCHECK and provide clearer error messages and logs on failure.
  • Updated curl command to include a timeout and improved error handling for failed requests.

Messaging and logging:

  • Updated log and status messages to reflect new container names and clarify output.

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

Refactors the GitHub Actions Docker smoke test script to be more robust and maintainable by simplifying Docker resource naming, improving environment-variable file handling, and strengthening health check and request diagnostics.

Changes:

  • Simplifies container/network naming to smoke, smoke-db, and smoke.
  • Switches env-var file staging to a temporary directory (mktemp -d) and cleans it up on exit.
  • Improves container health checking and adds a request timeout for the GraphQL probe.

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

Comment thread .github/smoke-test.sh
Comment thread .github/smoke-test.sh Outdated
@dargmuesli
dargmuesli force-pushed the ci/docker/smoke-improve branch 5 times, most recently from 6367ac5 to 192d70e Compare July 25, 2026 00:43
@dargmuesli
dargmuesli requested a review from Copilot July 25, 2026 00:43

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread .github/smoke-test.sh
@dargmuesli
dargmuesli force-pushed the ci/docker/smoke-improve branch from 192d70e to 5ec82eb Compare July 25, 2026 00:57
@dargmuesli
dargmuesli merged commit ae6c84d into main Jul 25, 2026
9 checks passed
@dargmuesli
dargmuesli deleted the ci/docker/smoke-improve branch July 25, 2026 01:02
@maevsi-bot

Copy link
Copy Markdown

🎉 This PR is included in version 2.2.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@maevsi-bot

Copy link
Copy Markdown

🎉 This PR is included in version 2.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants