Skip to content

feat: bump kagent-tools v0.1.0#1448

Merged
EItanya merged 4 commits intomainfrom
eitanya/bump-tools
Mar 5, 2026
Merged

feat: bump kagent-tools v0.1.0#1448
EItanya merged 4 commits intomainfrom
eitanya/bump-tools

Conversation

@EItanya
Copy link
Contributor

@EItanya EItanya commented Mar 5, 2026

No description provided.

Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Copilot AI review requested due to automatic review settings March 5, 2026 19:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the repo to use kagent-tools v0.1.0 across Helm packaging and Go dependencies.

Changes:

  • Parameterized the Helm kagent-tools dependency version via KAGENT_TOOLS_VERSION (fed by envsubst).
  • Added Makefile plumbing to derive and propagate KAGENT_TOOLS_VERSION from go/core/go.mod.
  • Bumped Go module dependencies (including adding github.com/kagent-dev/tools v0.1.0 and various transitive updates).

Reviewed changes

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

File Description
helm/kagent/Chart-template.yaml Uses KAGENT_TOOLS_VERSION to control the kagent-tools chart dependency version.
go/go.work.sum Updates workspace sums to match the new dependency graph after the bump.
go/core/go.mod Bumps kagent-dev/tools and several related dependencies.
Makefile Extracts KAGENT_TOOLS_VERSION from go.mod and threads it into Helm chart generation/install.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@@ -735,8 +889,11 @@ go.opentelemetry.io/otel/trace v1.37.0/go.mod h1:TlgrlQ+PtQO5XFerSPUYG0JSgGyryXe
go.opentelemetry.io/otel/trace v1.38.0/go.mod h1:j1P9ivuFsTceSWe1oY+EeW3sc+Pp42sO++GHkg4wwhs=
go.opentelemetry.io/otel/trace v1.39.0/go.mod h1:88w4/PnZSazkGzz/w84VHpQafiU4EtqqlVdxWy+rNOA=
go.opentelemetry.io/proto/otlp v1.7.0/go.mod h1:fSKjH6YJ7HDlwzltzyMj036AJ3ejJLCgCSHGj4efDDo=
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

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

go/core/go.mod now requires go.opentelemetry.io/proto/otlp v1.9.0 (indirect), but this diff removes the v1.9.0 entries from go.work.sum without adding replacement checksums. This can cause go commands to rewrite go/go.work.sum during CI/builds (dirty working tree) or fail checksum verification in stricter pipelines. Regenerate the workspace sums (e.g., via go work sync / go mod tidy in the workspace context) and commit the resulting go/go.work.sum so it includes the needed otlp v1.9.0 checksums.

Suggested change
go.opentelemetry.io/proto/otlp v1.7.0/go.mod h1:fSKjH6YJ7HDlwzltzyMj036AJ3ejJLCgCSHGj4efDDo=
go.opentelemetry.io/proto/otlp v1.7.0/go.mod h1:fSKjH6YJ7HDlwzltzyMj036AJ3ejJLCgCSHGj4efDDo=
go.opentelemetry.io/proto/otlp v1.9.0 h1:t6FbyTIZU1lc7HEr/qqVrqNWeMThK7CctIP9NLlHWqo=
go.opentelemetry.io/proto/otlp v1.9.0/go.mod h1:YKtlZGjCH+PLxoaHvJhGwtieFRwmo8IPNh9NYg0/CDg=

Copilot uses AI. Check for mistakes.
Makefile Outdated
# KMCP
KMCP_ENABLED ?= true
KMCP_VERSION ?= $(shell $(AWK) '/github\.com\/kagent-dev\/kmcp/ { print substr($$2, 2) }' go/core/go.mod) # KMCP version defaults to what's referenced in go.mod
KAGENT_TOOLS_VERSION ?= $(shell $(AWK) '/github\.com\/kagent-dev\/tools/ { print substr($$2, 2) }' go/core/go.mod) # KAGENT_TOOLS version defaults to what's referenced in go.mod
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

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

KAGENT_TOOLS_VERSION is used as both the Helm dependency/chart version (via envsubst in Chart-template.yaml) and as the container image.tag value. Since chart versions and image tags commonly diverge (or have different formatting), the current name is ambiguous and makes it easy to wire the wrong value later. Consider splitting into distinct variables (e.g., KAGENT_TOOLS_CHART_VERSION and KAGENT_TOOLS_IMAGE_TAG) or renaming/annotating to explicitly document the intended coupling.

Suggested change
KAGENT_TOOLS_VERSION ?= $(shell $(AWK) '/github\.com\/kagent-dev\/tools/ { print substr($$2, 2) }' go/core/go.mod) # KAGENT_TOOLS version defaults to what's referenced in go.mod
KAGENT_TOOLS_VERSION ?= $(shell $(AWK) '/github\.com\/kagent-dev\/tools/ { print substr($$2, 2) }' go/core/go.mod) # Intentionally used for BOTH Helm chart dependency version and kagent-tools image tag; defaults to version referenced in go.mod

Copilot uses AI. Check for mistakes.
Makefile Outdated
--set providers.default=$(KAGENT_DEFAULT_MODEL_PROVIDER) \
--set kmcp.enabled=$(KMCP_ENABLED) \
--set kmcp.image.tag=$(KMCP_VERSION) \
--set kagent-tools.image.tag=$(KAGENT_TOOLS_VERSION) \
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

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

KAGENT_TOOLS_VERSION is used as both the Helm dependency/chart version (via envsubst in Chart-template.yaml) and as the container image.tag value. Since chart versions and image tags commonly diverge (or have different formatting), the current name is ambiguous and makes it easy to wire the wrong value later. Consider splitting into distinct variables (e.g., KAGENT_TOOLS_CHART_VERSION and KAGENT_TOOLS_IMAGE_TAG) or renaming/annotating to explicitly document the intended coupling.

Copilot uses AI. Check for mistakes.
@@ -9,7 +9,7 @@ dependencies:
repository: oci://ghcr.io/kagent-dev/kmcp/helm
condition: kmcp.enabled
- name: kagent-tools
Copy link

Copilot AI Mar 5, 2026

Choose a reason for hiding this comment

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

This templates the Helm dependency version from KAGENT_TOOLS_VERSION, which the Makefile derives from the Go module version (github.com/kagent-dev/tools). That introduces a hidden coupling between Go module versioning and Helm chart artifact versioning. If the OCI Helm chart version ever differs from the Go module version, helm dependency update will fail or pull the wrong chart. A more maintainable approach is to source the chart dependency version from a Helm-specific place (or a dedicated variable), and/or add an inline comment here explaining the required version parity.

Suggested change
- name: kagent-tools
- name: kagent-tools
# NOTE: KAGENT_TOOLS_VERSION is derived from the Go module version and must
# match the Helm chart version published at oci://ghcr.io/kagent-dev/tools/helm.

Copilot uses AI. Check for mistakes.
EItanya added 3 commits March 5, 2026 20:07
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
@EItanya EItanya merged commit 953648a into main Mar 5, 2026
23 checks passed
@EItanya EItanya deleted the eitanya/bump-tools branch March 5, 2026 20:31
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