Repository navigation
test: add mytool demo and end-to-end update suite - #10
Merged
Merged
Conversation
Contributor
Author
|
This change is part of the following stack: Change managed by git-spice. |
bfirestone
force-pushed
the
feat/e2e-test-app
branch
from
September 9, 2026 00:25
5cdeea8 to
10252cc
Compare
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.
Stacked on #11. Adds
examples/mytool, the runnable README example, and a private end-to-end suite underinternal/e2e.TestMainbuilds the demo twice with different-ldflagsversions, serves a GitHub-shaped release with a tarball andchecksums.txtfromhttptest, and runsself updateas a subprocess. Eight scenarios prove what the unit suite can't: the running binary is replaced in place, the hooks seev1.0.0before the swap andv1.1.0after it, refusals happen before any download, and on macOS the result passescodesign --verify.go test -short ./...skips the suite.The suite caught a real bug on the way:
replaceFilenever chmod'ed after create, soumask 077produced an owner-only binary. That fix landed on #11.Verify with
go test -count=1 ./...on Linux and macOS.