Skip to content

Fix the 5bfcd6e QA follow-ups: release Compose loopback, docs checklist, lint - #438

Merged
PaxMachinaOne merged 4 commits into
KafScale:mainfrom
novatechflow:fix/qa-5bfcd6e-followups
Nov 26, 2026
Merged

PaxMachinaOne merged 4 commits into
KafScale:mainfrom
novatechflow:fix/qa-5bfcd6e-followups

Conversation

@novatechflow

@novatechflow novatechflow commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-ups from the main QA run on 5bfcd6e.

Fixes #436
Fixes #437

Release Compose and localhost (#436)

The release Compose file publishes its ports on 127.0.0.1 only, but the proxy advertised localhost and the docs told host clients to use localhost. Where localhost resolves to ::1 first, clients hit a refused IPv6 connection.

The proxy now advertises 127.0.0.1, and the release docs use 127.0.0.1:9093, http://127.0.0.1:9094/readyz and http://127.0.0.1:3080/ui/. I chose this over also publishing on [::1] because Docker fails to start a container when it cannot bind [::1], for example on hosts with IPv6 disabled. Using 127.0.0.1 everywhere works on every host. Changing only the bootstrap address would not be enough, because clients connect to the advertised address after the first metadata request.

The release smoke test now produces and consumes one record through 127.0.0.1:9093 with the kcat image CI already pins. A new test checks that every release port binds 127.0.0.1, that the proxy advertises 127.0.0.1, and that the release docs section uses no localhost ports.

Docs checklist (#437)

  • Console links in the README, local quick start, S3 guide and Compose README point to /ui/.
  • kafka-topics --create examples pass --replication-factor 1, and docs/protocol.md explains the CreateTopics v0 to v2 requirement.
  • docs/quickstart.md no longer suggests --set console.auth.password. It points to console.auth.existingSecret, or a mode 600 values file passed with -f.
  • The README and local quick start name v2.1.0 as the first release with idempotent producers (JAVA_CLIENT Connection problem: #28). The Compose TAG defaults and the chart appVersion stay at v2.0.1 until that release is tagged.
  • docs/cli-install.md has a pastable download block. It picks the archive for the host's OS and CPU, uses sha256sum or shasum, extracts only after the checksum passes, and defaults to v2.1.0. A new test runs the block against the release assets built in the Docker Images workflow, and another checks that it is valid bash with no placeholders.

New tests in test/docs_checklist_test.go cover each item. They fail on main.

Lint

QA's make lint output showed 77 findings, but golangci-lint caps the issues it prints per linter and per message by default. Without the caps, main had 307: errcheck 261, staticcheck 41, unused 5. All are fixed in code, and there are no nolint directives.

  • errcheck: production code now handles the errors. The broker renders /metrics into a buffer and writes it once. /healthz and /readyz log failed writes. The CLI version command returns its write error. The schema registry joins the etcd close error into its return value. The proxy closes backend connections through one helper that logs unexpected close errors. Three discards are explicit _ = because no caller can act on them: two pooled connection closes, and clearing a write deadline after a frame is written. In tests, setup calls such as CreateTopic, UpdateOffsets, Acquire, Sscan and Unsetenv now fail the test on error. Deferred cleanup closes are explicit discards.
  • staticcheck: the broker request switch binds the asserted type, and no longer repeats the type assertion in 20 cases. Four error strings were reworded so they no longer start with a capital letter. The rest are De Morgan, tagged switch and embedded field simplifications. The proxy accept loop no longer uses the deprecated net.Error.Temporary. A new isTemporaryAcceptError retries timeouts and the same accept errnos as before, and has a table test.
  • unused: five dead functions were deleted.
  • .golangci.yml (v2 config, standard linters) sets no issue caps. A new Go Lint CI job runs golangci-lint v2.15.0 through golangci-lint-action v9.3.0, pinned by commit SHA. make lint prints the install command if golangci-lint is missing.

The nested modules under addons/processors are not covered by make lint and still have findings. They are left for a follow-up.

Checks run locally

make lint (0 issues), make commit-check (fmt, chart mTLS, 100% auth coverage, vet, go test -race ./..., nested modules, LFS SDK unit tests, fuzz, CodeQL gate). I also built the release assets and ran TestReleaseAssets and the new CLI download block test against them.

After merge, the docs changes also need to go live on gh-pages.

Handle or explicitly discard unchecked errors, simplify the staticcheck
findings, delete unused code, replace the deprecated net.Error.Temporary
accept check, add .golangci.yml with no issue caps, and add a pinned
golangci-lint v2.15.0 CI job.
The release Compose ports bind to 127.0.0.1 only, but the proxy advertised
localhost and the docs used localhost, which fails where localhost resolves
to ::1 first. Advertise 127.0.0.1, document it, and add a kcat round trip to
the release smoke test.

Fixes KafScale#436
Link the console at /ui/, pass --replication-factor to kafka-topics,
keep the console password off the command line, name v2.1.0 for KafScale#28,
make the CLI download block pastable and test it against built assets,
and update the release notes.

Fixes KafScale#437
…ence

Delete the broker build output from the repo root and ignore it. Close the
kcat code fence in docs/s3-connection.md, and add a docs test that fails on
unclosed code fences or text after a closing fence in docs/ and README 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.

The broker binary is removed and /broker is in .gitignore. The code fence in s3-connection.md is closed, and a new test checks every README and docs page for unclosed fences. Every CI check passes

@PaxMachinaOne
PaxMachinaOne merged commit 6ba5022 into KafScale:main Nov 26, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants