Repository navigation
Publish native CLI releases and a local quick start - #435
PaxMachinaOne merged 9 commits into
Conversation
PaxMachinaOne
left a comment
There was a problem hiding this comment.
PaxMachina review for human approval (1,236 changed lines)
Head a157e3d3f719 · Base 2bdca124200a
-
High — The external-S3 Compose smoke test never provisions its required bucket (
.github/workflows/ci.yml:91-114). The test configuresKAFSCALE_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 anddocker compose up --waitwill time out. Create the bucket explicitly before starting Compose or reuse a bucket known to have been provisioned. -
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 namedDockerfile; 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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
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.
kafscale-cliarchives 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/--helpand SHA-256 checksums in PR CI. Tagged releases attach all four archives,docker-compose.yamlandSHA256SUMSafter images and assets succeed.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
make commit-checktest 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.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