Skip to content

Update Go 1.26.8 and 1.27.1 - #14087

Merged
estesp merged 3 commits into
containerd:mainfrom
vvoland:update-go
Sep 3, 2026
Merged

estesp merged 3 commits into
containerd:mainfrom
vvoland:update-go

Conversation

@vvoland

@vvoland vvoland commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Update the Go 1.27 used for building to go1.27.1 and Go 1.26 used for tests in CI to go1.26.8.

@vvoland vvoland self-assigned this Sep 2, 2026
Copilot AI lite review requested due to automatic review settings September 2, 2026 14:46
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Sep 2, 2026
@vvoland vvoland added this to the 2.4 milestone Sep 2, 2026

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.

🟡 Changes recommended

go.mod now requires Go 1.27.1 while CI still runs Go 1.26.8, which will cause the Go 1.26.8 jobs to fail.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates containerd’s pinned/default Go toolchain version across local dev, CI, and build/test artifacts, aiming to default to Go 1.27.1 while exercising Go 1.26.8 in CI.

Changes:

  • Bump default Go version references from 1.27.0 → 1.27.1 across scripts, Dockerfiles, devcontainer, and GitHub workflows/actions.
  • Update CI matrix testing from 1.26.6/1.27.0 → 1.26.8/1.27.1.
  • Update go.mod go directive to 1.27.1 (note: this currently conflicts with the CI goal of testing Go 1.26.8).
File summaries
File Description
script/vm/provision.sh Updates VM provisioning default Go version to 1.27.1.
script/setup/prepare_env_windows.ps1 Updates Windows env preparation Go package version to 1.27.1.
go.mod Updates module Go version directive to 1.27.1 (currently blocks Go 1.26.8 CI runs).
contrib/fuzz/oss_fuzz_build.sh Updates OSS-Fuzz Go tarball download/extract version to 1.27.1.
contrib/Dockerfile.test Updates test Dockerfile ARG GOLANG_VERSION to 1.27.1.
.github/workflows/release/Dockerfile Updates release workflow Dockerfile Go version ARG to 1.27.1.
.github/workflows/ci.yml Updates CI matrix Go versions to 1.26.8 and 1.27.1.
.github/workflows/api-release.yml Updates API release workflow GO_VERSION to 1.27.1.
.github/actions/install-go/action.yml Updates reusable install-go action default to 1.27.1.
.devcontainer/devcontainer.json Updates devcontainer Go feature version to 1.27.1.
Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread go.mod Resolved
Copilot AI review requested due to automatic review settings September 2, 2026 14:53
@estesp

estesp commented Sep 2, 2026

Copy link
Copy Markdown
Member

You will have to update golangci-lint to the latest version, built against 1.27.x to get CI linters to pass

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.

🟢 Approval recommended

The version bumps are consistent across scripts, CI, and build tooling, and no remaining references to the prior Go versions were found in the relevant areas.

Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Comment thread .github/actions/install-go/action.yml Outdated
go-version:
required: true
default: "1.26.6"
default: "1.27.1"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this one should probably be 1.26.x?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

or is the default 1.27 now, with 1.26 as extra?

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.

Yeah forgot that this one impacts the CI. Dropped this one, and will keep it for a follow up because it also needs the golangci-lint update as mentioned by @estesp

@vvoland
vvoland marked this pull request as draft September 2, 2026 15:03
Copilot AI review requested due to automatic review settings September 2, 2026 15:07

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.

🟡 Changes recommended

The reusable install-go action now defaults to 1.26.8 while multiple workflows call it without a version, which contradicts the stated goal of making 1.27.1 the default toolchain.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread .github/actions/install-go/action.yml Resolved

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.

🟢 Approval recommended

The change is a consistent version bump across all touched build/test entrypoints with no remaining old Go-version references found for these specific versions.

Review details
  • Files reviewed: 10/10 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@vvoland
vvoland marked this pull request as ready for review September 2, 2026 15:25
@vvoland vvoland moved this from Needs Triage to Needs Reviewers in Pull Request Review Sep 2, 2026
Comment thread go.mod Outdated
module github.com/containerd/containerd/v2

go 1.26.6
go 1.26.8

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This one can probably stay on the old version (we shouldn't be updating this one in general)

Copilot AI review requested due to automatic review settings September 3, 2026 13:51
@kubernetes-prow kubernetes-prow Bot removed the size/S label Sep 3, 2026

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.

🟡 Changes recommended

The PR title/description claims Go toolchain bumps to go1.27.1/go1.26.8, but the included changes only update linting/modernize code and do not actually update the Go versions used by CI as described.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details
  • Files reviewed: 29/29 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread .github/workflows/ci.yml
Comment on lines 38 to 42
- uses: ./.github/actions/install-go
- uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: v2.9.0
version: v2.13.2
skip-cache: true
Signed-off-by: Paweł Gronowski <[email protected]>
Signed-off-by: Paweł Gronowski <[email protected]>
Signed-off-by: Paweł Gronowski <[email protected]>
Copilot AI review requested due to automatic review settings September 3, 2026 15:33
@kubernetes-prow kubernetes-prow Bot added size/S and removed size/L labels Sep 3, 2026

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.

🟢 Approval recommended

The changes are straightforward version bumps applied consistently across the referenced scripts and workflows with no functional logic changes.

Review details
  • Files reviewed: 9/9 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@thaJeztah

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation Bot moved this from Needs Reviewers to Review In Progress in Pull Request Review Sep 3, 2026
@estesp
estesp added this pull request to the merge queue Sep 3, 2026
Merged via the queue into containerd:main with commit 84ae706 Sep 3, 2026
55 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants