Skip to content

chore: update Go toolchain to 1.26.4#391

Merged
volcano-sh-bot merged 1 commit into
volcano-sh:mainfrom
ranxi2001:chore/go-stable-toolchain
Jun 18, 2026
Merged

chore: update Go toolchain to 1.26.4#391
volcano-sh-bot merged 1 commit into
volcano-sh:mainfrom
ranxi2001:chore/go-stable-toolchain

Conversation

@ranxi2001

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

This PR updates AgentCube's Go toolchain baseline to Go 1.26.4.

It also reduces future Go version drift in GitHub Actions by making Go setup read from go.mod via go-version-file: go.mod, instead of hard-coding separate Go versions in individual workflows.

Docker builder images are updated to the same Go patch version because Dockerfiles cannot read go.mod automatically.

Which issue(s) this PR fixes:
Refs #386

Special notes for your reviewer:

Scope:

  • Update go.mod to go 1.26.4.
  • Remove the redundant old toolchain go1.24.9 line after running go mod tidy with the target Go version.
  • Update Go-related GitHub Actions to use go-version-file: go.mod.
  • Update workload manager, router, and picod Docker builder images to Go 1.26.4.

Validation:

Local validation:

  • go list ./... | grep -v '^github.com/volcano-sh/agentcube/test/e2e$' | xargs go test -count=1
  • go test -race -v -coverprofile=coverage.out -coverpkg=./pkg/... ./pkg/...
  • make build-all
  • make lint
  • make gen-check
  • docker build -f docker/Dockerfile -t agentcube-go1264-workloadmanager:test .
  • docker build -f docker/Dockerfile.router -t agentcube-go1264-router:test .
  • docker build -f docker/Dockerfile.picod -t agentcube-go1264-picod:test .
  • git diff --check

AI assistance:

  • Used Codex to inspect the existing toolchain drift, prepare the focused branch, and run validation. I reviewed and validated the changes.

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: ranxi2001 <ranxi169@163.com>

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates the Go version across the project to 1.26.4. This includes updating the Go version in go.mod and upgrading the builder images in docker/Dockerfile, docker/Dockerfile.picod, and docker/Dockerfile.router to use Go 1.26.4. I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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

Updates AgentCube’s Go toolchain baseline to Go 1.26.4 and reduces CI version drift by making GitHub Actions read the Go version directly from go.mod. This aligns local builds, CI, and Docker builder images on the same Go patch version.

Changes:

  • Bump go.mod Go version to 1.26.4 and remove the old toolchain go1.24.9 pin.
  • Update GitHub Actions workflows to use actions/setup-go with go-version-file: go.mod instead of hard-coded versions.
  • Update Docker builder base images for workload manager, router, and picod to golang:1.26.4 (matching the module baseline).

Reviewed changes

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

Show a summary per file
File Description
go.mod Updates the module’s Go version baseline to 1.26.4 and removes the old toolchain pin.
docker/Dockerfile Updates workload manager builder image to Go 1.26.4.
docker/Dockerfile.router Updates router builder image to Go 1.26.4.
docker/Dockerfile.picod Updates picod builder image to Go 1.26.4.
.github/workflows/test-coverage.yml Switches CI Go setup to read version from go.mod.
.github/workflows/lint.yml Switches CI Go setup to read version from go.mod.
.github/workflows/e2e.yml Switches CI Go setup to read version from go.mod.
.github/workflows/codegen-check.yml Switches CI Go setup to read version from go.mod.
.github/workflows/build-push-release.yml Switches release workflow Go setup to read version from go.mod.

Comment on lines 21 to +24
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.24.4"
go-version-file: go.mod

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the suggestion.

I agree that updating the Node16-based actions is useful, but I would prefer to keep this PR focused on the Go toolchain update and Go version source-of-truth cleanup. The existing CI for this PR
has passed, and changing the action runtime versions feels like a separate workflow modernization item.

I can follow up with a separate cleanup PR for actions/checkout / actions/setup-go version updates if maintainers think that should be handled independently.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.96%. Comparing base (524e55e) to head (3f1a823).
⚠️ Report is 125 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #391       +/-   ##
===========================================
+ Coverage   47.57%   57.96%   +10.39%     
===========================================
  Files          30       34        +4     
  Lines        2819     3181      +362     
===========================================
+ Hits         1341     1844      +503     
+ Misses       1338     1153      -185     
- Partials      140      184       +44     
Flag Coverage Δ
unittests 57.96% <ø> (+10.39%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@RainbowMango RainbowMango 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.

/lgtm
/approve
Good job! Thanks.

@volcano-sh-bot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: RainbowMango

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot merged commit a31651e into volcano-sh:main Jun 18, 2026
15 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.

5 participants