Skip to content

Publish native CLI releases and a local quick start - #435

Merged
PaxMachinaOne merged 9 commits into
KafScale:mainfrom
novatechflow:fix/430-431-local-release-quickstart
Nov 26, 2026
Merged

PaxMachinaOne merged 9 commits into
KafScale:mainfrom
novatechflow:fix/430-431-local-release-quickstart

Conversation

@novatechflow

@novatechflow novatechflow commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

New users currently reach a Go or Kubernetes setup first, and release tags publish no downloadable CLI or Compose assets. Lead the README and website with a local Compose quick start, then provide native CLI downloads and an external-S3 deployment path.

  • Build kafscale-cli archives for Linux and macOS on amd64/arm64 with CGO disabled, the release version, LICENSE and NOTICE. Validate target binary headers, executable permissions, static Linux linking, host --version/--help and SHA-256 checksums in PR CI. Tagged releases attach all four archives, docker-compose.yaml and SHA256SUMS after images and assets succeed.
  • Keep MinIO in the repository's local/CI fixture only. The release Compose file contains etcd, broker, proxy and console, uses the user's S3 bucket/credentials, pins product images to the release tag, binds host ports to loopback and requires no source checkout or builds. The image-build gate smoke-tests the generated Compose artifact against explicitly provisioned S3: PRs load the candidate broker/proxy/console images, and tags use the images just published under that release tag. MinIO remains a disposable CI fixture.
  • Add local first-message examples using native kcat against localhost:9093 and the console at localhost:3080. The compatibility flag supports the default v2.0.1 images. The native KafScale CLI handles restore/prune/schema import and runs without Docker or Go.
  • Add a shared S3 connection guide covering Helm secrets, bucket/region/endpoint/path-style settings, temporary credentials, release Compose and native CLI access. Keep the Helm quick start as the next deployment step.
  • On reviewed main changes, sync the onboarding/operations/schema pages to gh-pages, update the homepage Get started link to the local guide, and explicitly request a Pages build. Publishing has only contents/pages write permissions and is restricted to main.
  • Limit the existing API-version documentation guard to source examples instead of scanning recorded videos and runtime logs, fixing the observed race-test timeout. Include conventional Dockerfiles, Makefiles, filename variants and extensionless scripts, with regression coverage.

CodeQL uses the pinned maintained v4 action, including its upstream streamed-download network fix, with PR concurrency control and preserved failure reports. Analysis and SARIF upload/processing remain required. There is no custom uploader, disabled language, reduced query suite or ignored security failure.

Assets begin with the next release tag built by this workflow. Existing v2.0.1 releases have no binary attachments; the installation guide states that and retains the source-build alternative. This PR does not create a release or publish MinIO images.

Closes #430.
Closes #431.

Testing

  • Cross-compiled all four CLI archives without Docker; validated formats, architectures, static Linux linking, executable permissions, checksums and native version/help.
  • Repository/CLI tests with the race detector, site preparation tests against actual gh-pages sources, both Compose configurations, actionlint, shellcheck, formatting and license headers.
  • Security regression test requires all four CodeQL languages, both query suites, the official analyze/upload action, and no ignored failures.
  • Local make commit-check test gates passed. Its CodeQL stage failed because the installed CLI 2.27.2 cannot parse current query models; hosted CodeQL uses the maintained action and matching bundle.
  • All 22 hosted checks passed on 759f880bef3a1796033527c669bc5d175bdae827: CI, release image builds, candidate Compose smoke test and native assets, and CodeQL. Only release publication and coverage-badge publication were skipped as expected on a PR.

Checklist

  • Added real release-artifact and workflow regression coverage.
  • Tested generated release Compose with candidate images and an explicitly provisioned S3 bucket. Added regressions for provisioning order, failure blocking startup, and cleanup.
  • Updated README, website publication, S3/CLI guides and release notes.
  • Added license headers to new files.

@PaxMachinaOne PaxMachinaOne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PaxMachina review for human approval (1,236 changed lines)
Head a157e3d3f719 · Base 2bdca124200a

  1. High — The external-S3 Compose smoke test never provisions its required bucket (.github/workflows/ci.yml:91-114). The test configures KAFSCALE_S3_BUCKET=release-compose-check, but only connects the existing MinIO container to the Compose network before starting the broker. MinIO does not create arbitrary buckets automatically, and the new documentation explicitly requires an existing bucket. Unless an unseen earlier step happens to create this exact bucket, broker startup validation will fail and docker compose up --wait will time out. Create the bucket explicitly before starting Compose or reuse a bucket known to have been provisioned.

  2. Low — The API-version documentation guard now silently skips standard Dockerfiles and other extensionless source files (test/api_version_doc_test.go:34-49). filepath.Ext("Dockerfile") is empty, so the added ".dockerfile" case does not cover conventional files named Dockerfile; Makefiles and extensionless scripts are also no longer scanned. This weakens the previous repository-wide stale-API check. Handle known extensionless filenames separately or filter only known binary/generated paths.

Diff-only limits: I could not execute the workflows, pull the pinned images, verify the MinIO fixture’s earlier setup, or inspect gh-pages branch configuration. A human should run the full CI workflow, test a real tag through image publication and release attachment, verify all four binaries on their target OS/architecture, and dry-run the quick-start site publication against the actual gh-pages branch. The source smoke test defaults to v2.0.1, so separately verify that a generated release Compose file starts successfully with the newly tagged images.

Human approval and merge required.

@PaxMachinaOne PaxMachinaOne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One material release-gate gap remains:

The external-S3 Compose smoke test is a false positive for the new release contract. It sets KAFSCALE_S3_BUCKET=release-compose-check but never creates that bucket. The test still passes because docker-compose.release.yaml defaults to the old v2.0.1 images, whose broker calls EnsureBucket; current broker code deliberately does not create buckets, and the new S3 guide correctly requires an existing bucket. As a result, this green check neither exercises the pre-existing-bucket contract nor proves that the generated next-tag Compose artifact starts with the images it will actually reference. Explicitly create release-compose-check before docker compose up (and, where practical, run the generated Compose against the images built for the candidate tag).

The native archives, embedded versions, target formats, checksums, Compose generation, permission split, site synchronization, CLI behavior, and all hosted checks otherwise pass.

@PaxMachinaOne PaxMachinaOne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PaxMachina review for human approval (1,260 changed lines)
Head db78cf4d875b · Base 2bdca124200a

High — .github/workflows/ci.yml:91-111: The release-Compose smoke test selects the new bucket release-compose-check but never creates it in MinIO. The release stack explicitly requires an existing bucket (docs/s3-connection.md:20-23), so a fresh MinIO fixture will cause broker startup and docker compose ... --wait to fail. Create the bucket before starting Compose (for example with an S3 client), or reuse a bucket created by the fixture.

Medium — test/api_version_doc_test.go:37-44,70-82: The stale-API guard now silently excludes legitimate source/configuration formats such as .env, .toml, .xml, .properties, .conf, and .proto. Such files under the scanned example/deployment trees can therefore introduce obsolete API versions without failing CI. Prefer excluding known binary/generated paths or expand the source-format coverage and its test cases.

Diff-only limits: I could not execute the workflows, inspect published container contents, verify the existing MinIO fixture setup, or test the GitHub Pages branch/API permissions. A human should run the CI smoke test from a fresh MinIO container, inspect the generated release archives/Compose file, and dry-run the Pages publication against the current gh-pages branch.

Human approval and merge required.

@PaxMachinaOne PaxMachinaOne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed the updated release path. The external-S3 smoke test now provisions and verifies the required bucket before product startup, fails closed on provisioning errors, loads the candidate-tag broker/proxy/console images, and exercises the generated release Compose artifact. Targeted exact-head regressions, native asset validation, site/shell checks, and hosted CI passed.

@PaxMachinaOne
PaxMachinaOne merged commit 5bfcd6e into KafScale:main Nov 26, 2026
25 checks passed
@novatechflow
novatechflow deleted the fix/430-431-local-release-quickstart branch November 26, 2026 09:51
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.

GitHub releases have no CLI binaries or Compose file README and docs have no local Docker Compose quick start

2 participants