Skip to content

build: verify native Go release archives (#171) - #193

Merged
KalebCole merged 3 commits into
mainfrom
feat/171-native-release
Aug 12, 2026
Merged

KalebCole merged 3 commits into
mainfrom
feat/171-native-release

Conversation

@KalebCole

@KalebCole KalebCole commented Aug 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Implements the Go-only native release verification required by #171.

  • adds GoReleaser builds for macOS, Linux, and Windows on AMD64 and ARM64
  • produces six wrapped native archives plus one SHA-256 checksum manifest
  • injects release version metadata through Go ldflags
  • adds Go-only verification and tag-release workflows with pinned actions/tools
  • validates archive contents, Windows .exe naming, checksum coverage, and host-native execution
  • adds non-mutating native --version, schema, and doctor smoke checks
  • adds black-box command-catalog and build-info contract tests
  • documents the native release path without requiring Node/npm

No release was published.

Validation

  • go test -race ./...
  • go vet ./...
  • go build ./...
  • go mod verify
  • goreleaser check
  • GoReleaser snapshot: six archives and checksum manifest verified
  • extracted Linux AMD64 smoke: --version, schema, doctor
  • privacy guard and diff check

Closes #171.

Summary by CodeRabbit

  • New Features

    • Added native release packaging for macOS, Linux, and Windows across supported architectures.
    • Added versioned archives, checksums, and platform-specific release artifacts.
    • Added automated validation and smoke tests for native CLI releases.
    • Added CLI version, schema, and unauthenticated diagnostics checks.
  • Documentation

    • Updated installation, development, contribution, release, and contract documentation for the native CLI workflow.
    • Clarified version reporting and supported command behavior.
  • Chores

    • Added automated release publishing and verification workflows.
    • Ignored generated build and distribution directories.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 7b842425-e150-41a6-9cd2-6b0842fe8c01
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@KalebCole, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5870aa39-c2f4-41d7-aeab-c2415c4e41be

📥 Commits

Reviewing files that changed from the base of the PR and between 62bd0e1 and 37da897.

📒 Files selected for processing (5)
  • .github/workflows/native-release-verify.yml
  • .goreleaser.yml
  • README.md
  • docs/CONTRIBUTING.md
  • scripts/verify-native-release.sh
📝 Walkthrough

Walkthrough

The 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.

Changes

Native release infrastructure

Layer / File(s) Summary
Build metadata and CLI contracts
internal/app/buildinfo.go, internal/app/catalog_contract_test.go, docs/CLI-PRODUCT-CONTRACT.md
Build metadata supports release-time version injection. Contract tests validate the approved command catalog and version output.
Release and archive verification
scripts/smoke-native-cli.sh, scripts/verify-native-release.sh
Scripts validate CLI JSON output, native diagnostics, archive contents, expected artifacts, and SHA-256 checksums.
Native packaging configuration
.goreleaser.yml, .gitignore
GoReleaser builds six platform and architecture targets, creates archives and checksums, and injects version metadata.
Verification and publishing workflows
.github/workflows/*, .pii-allowlist
Workflows run Go validation, CLI smoke tests, snapshot verification, and tagged release publishing.
Go CLI release guidance
AGENTS.md, README.md, docs/CONTRIBUTING.md, docs/REMOTE-API-CONTRACT.md
Documentation now defines Go-based development, release validation, command contracts, native archive requirements, and safety rules.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related issues

  • Issue 172 — Covers the Go/Node/npm cutover and the native Go build, testing, release, and smoke-verification infrastructure added here.

Possibly related PRs

  • KalebCole/partiful-cli#173 — Adds the version and contract metadata that this PR relocates into buildinfo.go and validates through release checks.
  • KalebCole/partiful-cli#189 — Shares the application and contract revision metadata that this PR prepares for release-time injection.
  • KalebCole/partiful-cli#53 — Both changes update the CLI README, with this PR replacing Node/npm guidance with native Go release documentation.

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
Loading
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The changes implement archive, checksum, smoke-test, and release verification, but do not show fixture replay or complete remote-mapping evidence required by [#171]. Add or reference black-box fixture replay for every remote mapping and failure, and provide evidence that all S1-S9 gates and approved command mappings are complete.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies native Go release archive verification, which is the main change in the pull request.
Out of Scope Changes check ✅ Passed The workflows, GoReleaser configuration, tests, scripts, metadata, and documentation support the native release verification objectives in [#171].
✨ Finishing Touches 💡 2
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/171-native-release

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.1

🚀 View preview at
https://KalebCole.github.io/partiful-cli/pr-preview/pr-193/

Built to branch gh-pages at 2026-08-12 20:11 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 7b842425-e150-41a6-9cd2-6b0842fe8c01

@coderabbitai coderabbitai Bot 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.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 4549851 and 62bd0e1.

📒 Files selected for processing (15)
  • .github/workflows/native-release-verify.yml
  • .github/workflows/release.yml
  • .gitignore
  • .goreleaser.yml
  • .pii-allowlist
  • AGENTS.md
  • README.md
  • docs/CLI-PRODUCT-CONTRACT.md
  • docs/CONTRIBUTING.md
  • docs/REMOTE-API-CONTRACT.md
  • internal/app/app.go
  • internal/app/buildinfo.go
  • internal/app/catalog_contract_test.go
  • scripts/smoke-native-cli.sh
  • scripts/verify-native-release.sh
💤 Files with no reviewable changes (1)
  • internal/app/app.go

Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread scripts/verify-native-release.sh Resolved
Co-authored-by: Copilot <[email protected]>

Copilot-Session: 7b842425-e150-41a6-9cd2-6b0842fe8c01
@KalebCole
KalebCole merged commit da11776 into main Aug 12, 2026
3 checks passed
@KalebCole
KalebCole deleted the feat/171-native-release branch August 12, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verify native Go release archives and checksums

1 participant