Skip to content

story(issue-70): add Check terminal to Go.Ci#76

Merged
Zaba505 merged 2 commits into
mainfrom
worktree-issue-70
May 20, 2026
Merged

story(issue-70): add Check terminal to Go.Ci#76
Zaba505 merged 2 commits into
mainfrom
worktree-issue-70

Conversation

@Zaba505
Copy link
Copy Markdown
Member

@Zaba505 Zaba505 commented May 20, 2026

Summary

  • Extract the stage-1 parallel checks (Fmt, Vet, Lint, Test) from Ci.Run into a new public terminal Check(ctx) error on daggerverse/go/ci.go.
  • Refactor Run to delegate: Check(ctx)runBuild(ctx). No behavior change to existing callers.
  • Add CiCheckRunsEnabledChecksAndSkipsBuild to daggerverse/go/tests/main.go and register it in Tests.All.

Motivation: the upcoming z5labs multi-arch GoApp pipeline needs to run the checks once and build per platform — exposing Check independently avoids re-running fmt/vet/lint/test N times.

Closes #70.

Test plan

  • dagger -m daggerverse/go call ci --help lists check alongside run.
  • dagger -m daggerverse/go/tests call ci-check-runs-enabled-checks-and-skips-build --go-image-tag="" passes.
  • dagger -m daggerverse/go/tests call ci-run-vet-bad-aggregates --go-image-tag="" passes (error aggregation preserved through RunCheck).
  • dagger -m daggerverse/go/tests call ci-run-hello-all-stages --go-image-tag="" passes (build still runs from Run).
  • dagger -m daggerverse/go/tests call all --go-image-tag="" --parallel=0 passes.

🤖 Generated with Claude Code

Extracts the stage-1 parallel checks from Ci.Run into its own public
terminal Check(ctx) error so multi-platform pipelines can run the
checks once and build per platform. Run now delegates to Check then
runBuild; no behavior change to existing callers.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Zaba505 Zaba505 self-assigned this May 20, 2026
@Zaba505 Zaba505 added the enhancement New feature or request label May 20, 2026
@Zaba505 Zaba505 requested a review from Copilot May 20, 2026 21:40
Copy link
Copy Markdown

Copilot AI left a comment

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 extends the daggerverse/go module’s CI chained builder by introducing a new terminal, Ci.Check(ctx) error, so downstream pipelines can run the stage-1 checks once and then perform builds separately (e.g., per-platform) without re-running fmt/vet/lint/test.

Changes:

  • Extracted the stage-1 parallel checks into a new Ci.Check(ctx) error terminal and refactored Ci.Run to delegate to Check before building.
  • Updated Ci user-facing docs to mention the new Check terminal.
  • Added a new test entry CiCheckRunsEnabledChecksAndSkipsBuild and registered it in the tests suite.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
daggerverse/go/ci.go Adds Ci.Check and refactors Run to call Check then build.
daggerverse/go/tests/main.go Registers and implements a new test that exercises Ci.Check on a clean fixture.

Comment thread daggerverse/go/tests/main.go
Address review feedback on #76: the prior test only enforced "build
output not returned" structurally. Configure WithBuild with a
non-existent package path so any internal runBuild invocation would
surface as a `go build` failure. A nil return now proves both that
the checks passed and that the build was skipped.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Zaba505 Zaba505 merged commit af602c9 into main May 20, 2026
1 check passed
@Zaba505 Zaba505 deleted the worktree-issue-70 branch May 20, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

story(daggerverse): add Check terminal to Go.Ci

2 participants