Skip to content

feat(inkless): surface inkless version at startup and in --version output#717

Draft
jeqo wants to merge 1 commit into
mainfrom
jeqo/inkless-release-log
Draft

feat(inkless): surface inkless version at startup and in --version output#717
jeqo wants to merge 1 commit into
mainfrom
jeqo/inkless-release-log

Conversation

@jeqo

@jeqo jeqo commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Bake git describe --tags --match 'inkless-*' into kafka-version.properties as inklessVersion (via providers.exec, worktree-aware) and expose it through AppInfoParser.getInklessVersion(). Log it at broker/client startup ("Inkless version: ") alongside the existing Kafka version/commitId lines, and append it to the broker/tools --version output. Both are gated on the value being baked in, so upstream output/logs are unchanged when it is unknown (e.g. off a non-release build).

Also derive Makefile VERSION from gradle.properties instead of hardcoding 4.2.0-inkless-SNAPSHOT, so build_release/docker are correct on any checkout (inkless-4.1 hardcoded 4.1.0 while its gradle.properties said 4.1.2).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR surfaces Inkless’s git tag/describe information in the runtime --version output by baking an inklessVersion field into kafka-version.properties at build time, and also fixes release tooling by deriving the Makefile’s distribution VERSION from gradle.properties.

Changes:

  • Add inklessVersion to the generated kafka-version.properties and expose it via AppInfoParser.getInklessVersion().
  • Append Inkless version info to broker/tool --version outputs.
  • Make Makefile compute VERSION from gradle.properties instead of hardcoding it.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tools/src/main/java/org/apache/kafka/tools/PrintVersionAndExitAction.java Extends tool --version output to include Inkless version info.
server-common/src/main/java/org/apache/kafka/server/util/CommandLineUtils.java Extends common --version path (used by multiple CLIs) to include Inkless version info.
Makefile Derives distribution VERSION from gradle.properties for correct release/docker artifacts.
clients/src/main/java/org/apache/kafka/common/utils/AppInfoParser.java Adds inklessVersion parsing + accessor from baked version properties.
build.gradle Computes and writes inklessVersion into baked version files across subprojects.

Comment thread Makefile Outdated
…tput

Bake git describe --tags --match 'inkless-*' into kafka-version.properties as inklessVersion (via providers.exec, worktree-aware) and expose it through AppInfoParser.getInklessVersion(). Log it at broker/client startup ("Inkless version: <describe>") alongside the existing Kafka version/commitId lines, and append it to the broker/tools --version output. Both are gated on the value being baked in, so upstream output/logs are unchanged when it is unknown (e.g. off a non-release build).

Also derive Makefile VERSION from gradle.properties instead of hardcoding 4.2.0-inkless-SNAPSHOT, so build_release/docker are correct on any checkout (inkless-4.1 hardcoded 4.1.0 while its gradle.properties said 4.1.2).
@jeqo
jeqo force-pushed the jeqo/inkless-release-log branch from 34ab856 to 47d07ed Compare July 22, 2026 18:57
@jeqo jeqo changed the title feat(inkless): surface inkless version in --version output feat(inkless): surface inkless version at startup and in --version output Jul 22, 2026
@jeqo
jeqo requested a review from Copilot July 22, 2026 18:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Comment on lines +69 to +73
// INKLESS: " (Inkless:<version>)" suffix for --version output, or "" when the inkless
// version was not baked in (keeps upstream output/tests intact off a release build).
public static String getInklessVersionSuffix() {
return DEFAULT_VALUE.equals(INKLESS_VERSION) ? "" : " (Inkless:" + INKLESS_VERSION + ")";
}
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.

2 participants