Add install smoke tests for release artifacts and Homebrew - #54
Merged
Conversation
Verify built binaries and published archives respond to --version, --help, and the no-credential context/schema commands so packaging regressions surface before users hit them. - scripts/smoke-test.sh: credential-free smoke test for a binary - make smoke-test target - CI smoke-tests bin/logbasset after build - release workflow smoke-tests the published Linux archive - expanded Homebrew formula test block Closes #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds credential-free install smoke tests so packaging regressions surface in CI and at release time instead of reaching users. Closes #44.
scripts/smoke-test.sh— portable smoke test for alogbassetbinary: checks--versionoutput, that top-level--helplists every core command, per-command--help, and the no-authcontext/schema/completioncommands. Exits non-zero on the first failure.make smoke-test— builds then runs the script.ci.yml) — smoke-testsbin/logbassetaftermake buildon every PR/push, across all Go versions. This is the pre-merge gate.release.yml) — extracts the publishedlogbasset_Linux_x86_64.tar.gzand smoke-tests the actual artifact after GoReleaser, catching issues like broken version injection.testblock from just--versionto also cover--helpandschema, sobrew test logbassetverifies the formula automatically.[Unreleased]entry, AGENTS.md make-target list.Acceptance criteria
brew test) and documented as a manual check.Test plan
make smoke-testpasses locallymake test,make vet,gofmt -s -lclean