Skip to content

Add install smoke tests for release artifacts and Homebrew#35

Merged
andreagrandi merged 1 commit into
masterfrom
smoke-tests-release-artifacts
Jun 14, 2026
Merged

Add install smoke tests for release artifacts and Homebrew#35
andreagrandi merged 1 commit into
masterfrom
smoke-tests-release-artifacts

Conversation

@andreagrandi

Copy link
Copy Markdown
Owner

This PR adds automated smoke tests for release artifacts and optional Homebrew verification.

Changes:

  • New scripts/smoke-test-release.sh verifies a built binary runs --help, --version, doctor, metadata, and feature list in an isolated temporary HOME, ensuring no user MCP config or credentials are touched.
  • New make smoke-test target builds and runs the smoke tests.
  • CI and release workflows now run smoke tests before uploading artifacts or invoking GoReleaser.
  • README documents how to verify an install, including optional Homebrew-installed copy checks via SMOKE_TEST_HOMEBREW=true.
  • Changelog updated.

Closes #11

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

Adds an automated “install smoke test” layer to validate that built release artifacts start successfully and that core, non-mutating CLI commands work in a clean environment (isolated HOME). This strengthens release/CI confidence by catching packaging/install regressions earlier.

Changes:

  • Introduces scripts/smoke-test-release.sh to run --help, --version, doctor, metadata, and feature list under an isolated HOME, plus optional Homebrew verification.
  • Adds make smoke-test and wires smoke tests into CI and the release workflow prior to publishing artifacts.
  • Documents verification steps in README.md and records the change in CHANGELOG.md.

Reviewed changes

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

Show a summary per file
File Description
scripts/smoke-test-release.sh New smoke test script for validating binaries in an isolated HOME with optional Homebrew checks.
README.md Adds install verification instructions (including Homebrew verification toggle).
Makefile Adds smoke-test target and help output entry.
CHANGELOG.md Notes the new smoke test tooling and workflow integration.
.github/workflows/release.yml Runs smoke tests before invoking GoReleaser.
.github/workflows/ci.yml Runs smoke tests for built binaries in CI.

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

Comment thread scripts/smoke-test-release.sh Outdated
Comment on lines +4 to +6
binary="${1:-bin/mcp-wire}"
homebrew_verify="${SMOKE_TEST_HOMEBREW:-false}"

Comment thread scripts/smoke-test-release.sh Outdated
exit 1
fi

isolated_home=$(mktemp -d)
Comment thread README.md Outdated
To also verify a Homebrew-installed copy when `mcp-wire` is present in your Cellar:

```bash
SMOKE_TEST_HOMEBREW=true ./scripts/smoke-test-release.sh
- Add scripts/smoke-test-release.sh to verify built binaries run
  --help, --version, doctor, metadata, and feature list in an
  isolated HOME without touching user MCP config.
- Add make smoke-test target that builds and smoke-tests bin/mcp-wire.
- Run smoke tests in CI and release workflows before GoReleaser.
- Document verification steps in README.md, including optional
  Homebrew-installed copy checks.

Closes #11
@andreagrandi andreagrandi force-pushed the smoke-tests-release-artifacts branch from c3d60fb to 26383c0 Compare June 14, 2026 19:33
@andreagrandi andreagrandi merged commit 7b5b013 into master Jun 14, 2026
7 checks passed
@andreagrandi andreagrandi deleted the smoke-tests-release-artifacts branch June 14, 2026 19:51
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.

Add install smoke tests for release artifacts and Homebrew

2 participants