Verify zero-to-hero deploy dry-run#4330
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a hermetic CI smoke test to ensure the documented 0→hero deploy boundary (micro deploy --dry-run prod) continues to work without secrets or external services, and wires that check into the existing zero-to-hero CI harness and guide.
Changes:
- Added a new Go smoke test that builds the
microCLI and runsmicro deploy --dry-run prodagainst a temporarymicro.mudeploy target. - Updated the zero-to-hero CI runner script to include the new smoke test.
- Updated the 0→hero guide to document the focused smoke-test command and the specific dry-run deploy target (
prod).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| internal/website/docs/guides/zero-to-hero.md | Updates the documented deploy dry-run boundary and adds the focused CI command for the new smoke test. |
| internal/harness/zero-to-hero-ci/run.sh | Includes the new deploy dry-run smoke test in the zero-to-hero CI harness run list. |
| internal/harness/zero-to-hero-ci/docs_test.go | Adds a hermetic smoke test that builds micro and validates micro deploy --dry-run prod output and documentation alignment. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| cmd := exec.Command(bin, "deploy", "--dry-run", "prod") | ||
| cmd.Dir = workspace | ||
| cmd.Env = append(os.Environ(), "MICRO_CONFIG_FILE="+filepath.Join(workspace, "micro.mu")) |
Comment on lines
+72
to
+77
| bin := filepath.Join(t.TempDir(), "micro") | ||
| build := exec.Command("go", "build", "-o", bin, "./cmd/micro") | ||
| build.Dir = absRoot | ||
| if out, err := build.CombinedOutput(); err != nil { | ||
| t.Fatalf("build micro CLI for deploy dry-run smoke: %v\n%s", err, out) | ||
| } |
Comment on lines
+115
to
+118
| guide := readFile(t, filepath.Join(absRoot, "internal", "website", "docs", "guides", "zero-to-hero.md")) | ||
| if !strings.Contains(guide, "micro deploy --dry-run prod") { | ||
| t.Fatal("0→hero guide must document the same deploy dry-run command covered by CI") | ||
| } |
This was referenced Jul 8, 2026
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:
micro deploy --dry-run prodcommand against a hermetic deploy target.Testing:
Closes #4309
Closes #4329