Repository navigation
build: verify native Go release archives (#171) - #193
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7b842425-e150-41a6-9cd2-6b0842fe8c01
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 45 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThe PR replaces Node/npm release guidance with native Go CLI infrastructure. It adds build metadata, contract tests, GoReleaser packaging, archive and checksum verification, smoke tests, and GitHub Actions workflows for verification and publishing. ChangesNative release infrastructure
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related issues
Possibly related PRs
Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant GoToolchain
participant NativeSmokeTest
participant GoReleaser
participant GitHubRelease
GitHubActions->>GoToolchain: verify modules, test, vet, and build
GitHubActions->>NativeSmokeTest: validate CLI version, schema, and doctor
GitHubActions->>GoReleaser: generate snapshot or release artifacts
GoReleaser->>GitHubRelease: publish tagged native archives
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7b842425-e150-41a6-9cd2-6b0842fe8c01
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release.yml:
- Around line 47-52: Update the “Publish release” workflow step to run
scripts/verify-native-release.sh immediately before goreleaser release --clean,
preserving the existing environment and release command so archive, checksum,
contents, and host-native binary verification occurs before publishing.
- Around line 3-7: Update the release workflow triggers to require a version tag
input for workflow_dispatch, then check out and validate that v*-matching tag
before invoking goreleaser release --clean. Add
scripts/verify-native-release.sh, or equivalent checks, before publication to
validate release archives, checksums, and extracted binaries in addition to the
existing source-binary verification.
In `@scripts/verify-native-release.sh`:
- Around line 5-35: Update the GoReleaser invocation in the release verification
flow to write artifacts to the selected dist_dir, including when a custom
directory is provided. Configure the existing goreleaser release command using
snapshot_version so its output directory matches checksum_file and the
subsequent verification logic.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: fda68414-55cc-46e8-add6-61f9a16a6380
📒 Files selected for processing (15)
.github/workflows/native-release-verify.yml.github/workflows/release.yml.gitignore.goreleaser.yml.pii-allowlistAGENTS.mdREADME.mddocs/CLI-PRODUCT-CONTRACT.mddocs/CONTRIBUTING.mddocs/REMOTE-API-CONTRACT.mdinternal/app/app.gointernal/app/buildinfo.gointernal/app/catalog_contract_test.goscripts/smoke-native-cli.shscripts/verify-native-release.sh
💤 Files with no reviewable changes (1)
- internal/app/app.go
Co-authored-by: Copilot <[email protected]> Copilot-Session: 7b842425-e150-41a6-9cd2-6b0842fe8c01
Summary
Implements the Go-only native release verification required by #171.
.exenaming, checksum coverage, and host-native execution--version,schema, anddoctorsmoke checksNo release was published.
Validation
go test -race ./...go vet ./...go build ./...go mod verifygoreleaser check--version,schema,doctorCloses #171.
Summary by CodeRabbit
New Features
Documentation
Chores