Skip to content

Conversation

@djdongjin
Copy link
Member

@djdongjin djdongjin commented May 7, 2025

Commit 1: bump golang in CI to 1.24.3.

  • go1.24.3 (released 2025-05-06) includes security fixes to the os package, as well as bug fixes to the runtime, the compiler, the linker, the go command, and the crypto/tls and os packages. See the Go 1.24.3 milestone on our issue tracker for details.

Commit 2: bump go min version to 1.24.3, as we already released containerd 2.1.

Commit 3: bump k8s.io/cri-api to 0.33.0 (depends on commit 2), A few PRs require k8s/cri-api side bumps:

@github-project-automation github-project-automation bot moved this to Needs Triage in Pull Request Review May 7, 2025
@dosubot dosubot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels May 7, 2025
@djdongjin djdongjin changed the title Bump up go.mod go version to 1.24.0 and k8s deps Bump up go.mod go version to 1.24.0 and cri-api May 7, 2025
@djdongjin djdongjin force-pushed the go-mod-1.24 branch 5 times, most recently from 20296b1 to 10afa3d Compare May 7, 2025 23:49
matrix:
os: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-13, windows-2019, windows-2022]
go-version: ["1.23.8", "1.24.2"]
go-version: ["1.23.9", "1.24.3"]
Copy link
Member

Choose a reason for hiding this comment

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

1.23.9 is meaningless as go.mod now requires 1.24

Copy link
Member Author

Choose a reason for hiding this comment

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

you're right, but somehow the CI didn't fail 🤔. anyway removed 1.23.x

Copy link
Member

Choose a reason for hiding this comment

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

CI didn't fail probably because it automatically updated Go 1.23 to 1.24.

We should have GOTOOLCHAIN=local to prevent this

Copy link
Contributor

Choose a reason for hiding this comment

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

If the required modules is larger than the current go version in go.mod, it will attempt to download the latest go version and compile.

ref: https://go.dev/doc/toolchain#download

@djdongjin djdongjin changed the title Bump up go.mod go version to 1.24.0 and cri-api Bump up go version to 1.24 and cri-api to 0.33.0 May 8, 2025
@djdongjin djdongjin requested review from AkihiroSuda and thaJeztah May 8, 2025 13:51
@djdongjin
Copy link
Member Author

@dmcgowan @AkihiroSuda @samuelkarp @thaJeztah are we good to merge this PR and bump go min version to 1.24 :) thanks!

@github-project-automation github-project-automation bot moved this from Needs Triage to Review In Progress in Pull Request Review May 15, 2025
@AkihiroSuda AkihiroSuda added this pull request to the merge queue May 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 15, 2025
@samuelkarp samuelkarp added this pull request to the merge queue May 15, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 15, 2025
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 15, 2025
@djdongjin
Copy link
Member Author

@AkihiroSuda @samuelkarp could you help add this PR to merge queue again 🙏thanks!

@AkihiroSuda AkihiroSuda added this pull request to the merge queue May 18, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 18, 2025
@samuelkarp
Copy link
Member

@djdongjin Can you rebase this on main?

djdongjin added 3 commits May 23, 2025 19:36
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
@samuelkarp samuelkarp added this pull request to the merge queue May 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 23, 2025
@samuelkarp samuelkarp added this pull request to the merge queue May 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 23, 2025
@djdongjin
Copy link
Member Author

@samuelkarp can we try merge queue one more time 😅 🙏

failure doesn't seem related

=== Failed
=== FAIL: plugins/snapshots/devmapper TestSnapshotterSuite/LayerFileupdate (1.39s)
    log_hook.go:47: time="2025-05-23T22:07:01.470887486Z" level=info msg="initializing pool device \"containerd-snapshotter-suite-pool-380465626\"" func=devmapper.NewPoolDevice file="/home/runner/work/containerd/containerd/plugins/snapshots/devmapper/pool_device.go:46" testcase=TestSnapshotterSuite/LayerFileupdate

@samuelkarp samuelkarp added this pull request to the merge queue May 23, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 23, 2025
@lujinda
Copy link
Contributor

lujinda commented May 27, 2025

Go 1.24 map[uint64]struct{} has a 10% performance degradation issue. Should we be aware of this? golang/go#71368
golang/go#70835

Copy link
Member

@mikebrow mikebrow left a comment

Choose a reason for hiding this comment

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

LGTM

@mikebrow mikebrow added this pull request to the merge queue May 27, 2025
Merged via the queue into containerd:main with commit e393f41 May 27, 2025
89 of 91 checks passed
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in Pull Request Review May 27, 2025
@austinvazquez
Copy link
Member

Go 1.24 map[uint64]struct{} has a 10% performance degradation issue. Should we be aware of this? golang/go#71368 golang/go#70835

@lujinda, for what it is worth, the Go 1.24 minimum requirement is only on main branch. We try not to backport Go min changes to release branches unless absolutely required. This means Go 1.24 will not be a required minimum until containerd v2.2 which is currently expected in November 2025, and by that time Go 1.23 should be out of support.

ningmingxiao pushed a commit to ningmingxiao/containerd that referenced this pull request Jun 4, 2025
Bump up go version to 1.24 and cri-api to 0.33.0
mauriciovasquezbernal referenced this pull request in containerd/nri Aug 22, 2025
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code size/XXL

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.