Skip to content

Add Buildkite CI - #6

Merged
mitchbne merged 1 commit into
mainfrom
mitch/github-release-process
Aug 28, 2026
Merged

mitchbne merged 1 commit into
mainfrom
mitch/github-release-process

Conversation

@mitchbne

@mitchbne mitchbne commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

Description

Follow-up to #3. Add mise-managed Buildkite CI for Go formatting, linting, tests, vetting, and ShellCheck. The cluster-migrator pipeline runs these checks for non-main changes and does nothing on main.

The two Go edits satisfy the new errcheck policy by explicitly ignoring deferred close errors.

Deployment

Configure the cluster-migrator Buildkite pipeline to upload .buildkite/pipeline.yml.

Rollback

Revert this PR and restore the previous Buildkite pipeline configuration.

@buildsworth-bk approve up to L2

@mitchbne mitchbne changed the title Add GitHub release process Add Buildkite release process Aug 28, 2026
Base automatically changed from mitch/go-cluster-migrator to main August 28, 2026 01:33
@mitchbne
mitchbne marked this pull request as ready for review August 28, 2026 02:21
@mitchbne
mitchbne enabled auto-merge (squash) August 28, 2026 02:21

@buildsworth-bk-app buildsworth-bk-app 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.

This adds a credentialed tag-release path that publishes GitHub assets, so it needs human review. I found no implementation issues in this pass.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 22275, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

About buildsworth

Model: gpt-5.6-sol with xhigh thinking.

How to request a review: Comment @buildsworth-bk review on the PR, or request buildsworth-bk as a reviewer.

Risk labels (how buildsworth classifies risk) — buildsworth classifies risk itself from the diff. Unless repository policy already allows L2 approval, grant it by mentioning @buildsworth-bk (see approval ceiling and L2 approval grant):

  • L1 — Low risk (dep bumps, docs/copy, lockfiles, small presentational fixes). buildsworth may approve by default.
  • L2 — Standard risk (new UI, additive API fields, refactors). Approved only when repository policy or a verified grant allows it; otherwise comment-only.
  • L3 — High risk (auth, migrations, payments, secrets, perf-critical pipeline paths). Human review always required.

@buildsworth-bk-app buildsworth-bk-app 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.

This release path fetches a GitHub publishing credential and creates release assets, so it remains above the L2 approval ceiling. I found no implementation issues.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 22276, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

@buildsworth-bk-app buildsworth-bk-app 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.

I found one blocking issue in the tag-push path; details are inline.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 22304, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

Comment thread .buildkite/tag.sh Resolved
@buildsworth-bk-app
buildsworth-bk-app Bot dismissed their stale review August 28, 2026 03:25

Previous concerns have been addressed.

@buildsworth-bk-app buildsworth-bk-app 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.

The cleanup failure is fixed and covered by the release-path test; I found no new implementation issues. This still creates a credentialed GitHub publishing path, so it remains above the L2 approval ceiling.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 22315, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

@buildsworth-bk-app buildsworth-bk-app 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.

Moving the approval and tag handoff into the release pipeline is internally consistent, and I found no implementation issues. This path assumes a privileged role, retrieves a GitHub token, pushes tags, and publishes releases, so it still requires human review.

Want to dig deeper?

Paste this into your agent to explore the findings from this review's Buildkite build:

Download the buildsworth logs from build 22328, then answer my questions about the findings.

Install the reading-buildsworth-logs skill to run this.

@mitchbne
mitchbne force-pushed the mitch/github-release-process branch from 3dc0be0 to 52b5914 Compare August 28, 2026 04:01
@mitchbne mitchbne changed the title Add Buildkite release process Add Buildkite CI Aug 28, 2026
@mitchbne
mitchbne merged commit b9bd1e3 into main Aug 28, 2026
4 checks passed
@mitchbne
mitchbne deleted the mitch/github-release-process branch August 28, 2026 04:05
mitchbne added a commit that referenced this pull request Aug 28, 2026
## Description

Follow-up to #6. Add a `cluster-migrator-release` Buildkite pipeline for
publishing versioned binaries and document installation through mise.

Each `main` build pauses at a passed `Release` input. An authorized team
can select patch, minor, or major; the build then pushes the calculated
semantic-version tag and publishes macOS and Linux archives plus
checksums to a GitHub Release through GoReleaser. Pull requests validate
the GoReleaser configuration and release scripts.

## Deployment

Configure the Buildkite release pipeline to:

- use the name and slug `cluster-migrator-release`
- upload `.buildkite/pipeline.release.yml`
- build `main` branch updates automatically
- not build tags or pull requests
- provide the Buildkite secret `CLUSTER_MIGRATOR_GITHUB_TOKEN` to the
release steps

## Rollback

Disable the release pipeline, then revert this PR. Existing tags and
GitHub Releases remain available.

@buildsworth-bk approve up to L2

---------

Co-authored-by: Amp <amp@ampcode.com>
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.

1 participant