Skip to content

chore: Deprecate auto-gomaxprocs with natively handles container CPU quotas in GO v1.25#1817

Merged
EItanya merged 1 commit into
kagent-dev:mainfrom
dongjiang1989:remove-auto-gomaxprocs
May 8, 2026
Merged

chore: Deprecate auto-gomaxprocs with natively handles container CPU quotas in GO v1.25#1817
EItanya merged 1 commit into
kagent-dev:mainfrom
dongjiang1989:remove-auto-gomaxprocs

Conversation

@dongjiang1989

Copy link
Copy Markdown
Contributor

Signed-off-by: dongjiang <dongjiang1989@126.com>

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

Deprecates the project’s automatic GOMAXPROCS tuning (via go.uber.org/automaxprocs) and removes the internal helper that set GOMAXPROCS at startup, aligning runtime behavior with newer Go container CPU quota handling as referenced in the PR description.

Changes:

  • Dropped the go.uber.org/automaxprocs dependency from go.mod/go.sum.
  • Removed the startup call that auto-sets GOMAXPROCS.
  • Deleted the now-unused internal goruntime helper package.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
go/go.sum Removes checksum entries for automaxprocs and an unused stub dependency.
go/go.mod Drops the explicit go.uber.org/automaxprocs requirement.
go/core/pkg/app/app.go Removes the import and startup call that set GOMAXPROCS.
go/core/internal/goruntime/cpu.go Deletes the internal SetMaxProcs wrapper around automaxprocs.

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

Comment thread go/go.mod
@EItanya EItanya merged commit 2f6dc28 into kagent-dev:main May 8, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants