Skip to content

Verify zero-to-hero deploy dry-run#4330

Merged
asim merged 1 commit into
masterfrom
codex/increment-4329
Jul 8, 2026
Merged

Verify zero-to-hero deploy dry-run#4330
asim merged 1 commit into
masterfrom
codex/increment-4329

Conversation

@asim

@asim asim commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary:

  • Add a CI smoke test that builds the micro CLI and runs the documented micro deploy --dry-run prod command against a hermetic deploy target.
  • Wire the new check into the zero-to-hero harness and document the focused command in the 0→hero guide.

Testing:

  • PASS: go build ./...
  • PASS: go test ./internal/harness/zero-to-hero-ci -run TestZeroToHeroDeployDryRunCommandSmoke -count=1
  • WARN: go test ./... (environment blocks loopback grpc targets; atlascloud live provider env returned 400)
  • PASS: golangci-lint run ./...

Closes #4309
Closes #4329

@asim asim added the codex label Jul 8, 2026
Copilot AI review requested due to automatic review settings July 8, 2026 08:26
@asim asim merged commit 7734f56 into master Jul 8, 2026
9 checks passed

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

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 micro CLI and runs micro deploy --dry-run prod against a temporary micro.mu deploy 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")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loop: build increment #134 CI-verify zero-to-hero deploy dry-run path

3 participants