Skip to content

ci: update go 1.24.2, 1.23.8#11705

Merged
mxpv merged 2 commits intocontainerd:mainfrom
akhilerm:set-default-go-version-1.23
Apr 17, 2025
Merged

ci: update go 1.24.2, 1.23.8#11705
mxpv merged 2 commits intocontainerd:mainfrom
akhilerm:set-default-go-version-1.23

Conversation

@akhilerm
Copy link
Member

@akhilerm akhilerm commented Apr 16, 2025

  • update go 1.24.2, 1.23.8 for build and testing

  • use go1.23.8 as the default go version for running in CI and making release binaries.

NOTE: This is done so that when release/2.1 branch cut happens, the 2.1 release uses 1.23.x for building release binaries rather than 1.24.x. Once the 2.1 release is out, this patch will be reverted and go1.24.x will be made the default in the main branch

@github-project-automation github-project-automation bot moved this to Needs Triage in Pull Request Review Apr 16, 2025
@akhilerm akhilerm changed the title use go1.23.7 as the default go version ci: use go1.23.7 as the default go version Apr 16, 2025
@dosubot dosubot bot added area/github_actions Pull requests that update GitHub Actions code go Pull requests that update Go code labels Apr 16, 2025
@dmcgowan dmcgowan added this to the 2.1 milestone Apr 16, 2025
Copy link
Contributor

@chrishenzie chrishenzie left a comment

Choose a reason for hiding this comment

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

For context, why is reverting to 1.23 necessary for 2.1?

@thaJeztah
Copy link
Member

We should probably update to 1.23.8 as well

@akhilerm
Copy link
Member Author

For context, why is reverting to 1.23 necessary for 2.1?

We always ship release binaries on the older stable version of go and test with both the supported versions.

@thaJeztah
Copy link
Member

For context, why is reverting to 1.23 necessary for 2.1?

go1.24 also has a couple of regressions that can result in segfaults(some fixes will be in go1.24.3)

@akhilerm akhilerm force-pushed the set-default-go-version-1.23 branch from cf8ea1b to 27648e9 Compare April 16, 2025 19:03
@akhilerm akhilerm changed the title ci: use go1.23.7 as the default go version ci: update go 1.24.2, 1.23.8 Apr 16, 2025
@akhilerm
Copy link
Member Author

We should probably update to 1.23.8 as well

Done. Updated both 1.23.8 and 1.24.2 in a separate commit

# ------------------------------------------------------------------------------

ARG GOLANG_VERSION=1.24.1
ARG GOLANG_VERSION=1.24.2
Copy link
Member

Choose a reason for hiding this comment

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

Can you make this one 1.23.8? Historically, this was the best location for our pipelines to get the version to use to build, and I think our script still greps this file for GOLANG_VERSION

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Have updated here also.


env:
GO_VERSION: "1.24.1"
GO_VERSION: "1.24.2"
Copy link
Member

Choose a reason for hiding this comment

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

This probably also should be 1.23.8 (?), although I guess API doesn't produce binaries

Copy link
Member Author

@akhilerm akhilerm Apr 16, 2025

Choose a reason for hiding this comment

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

although I guess API doesn't produce binaries

Yes . Thats why I didnt change that. But can update to 1.23.8

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

- go1.23.8 (released 2025-04-01) includes security fixes to the net/http
  package, as well as bug fixes to the runtime and the go command.
  Ref: https://github.com/golang/go/issues?q=milestone%3AGo1.23.8+label%3ACherryPickApproved
- go1.24.2 (released 2025-04-01) includes security fixes to the net/http
  package, as well as bug fixes to the compiler, the runtime, the go
  command, and the crypto/tls, go/types, net/http, and testing packages.
  Ref: https://github.com/golang/go/issues?q=milestone%3AGo1.24.2+label%3ACherryPickApproved

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
use go1.23.8 as the default go version for running in CI and making
release binaries.

NOTE: This is done so that when release/2.1 branch cut happens the
2.1 release uses 1.23.x for building release binaries rather than
1.24.x. Once the 2.1 release is out, this will be reverted and
go1.24.x will be made the default in the main branch

Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
@akhilerm akhilerm force-pushed the set-default-go-version-1.23 branch from 27648e9 to 6f93c65 Compare April 17, 2025 06:19
@github-project-automation github-project-automation bot moved this from Needs Triage to Review In Progress in Pull Request Review Apr 17, 2025
@estesp estesp added this pull request to the merge queue Apr 17, 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 Apr 17, 2025
@samuelkarp samuelkarp added this pull request to the merge queue Apr 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 17, 2025
@mxpv mxpv added this pull request to the merge queue Apr 17, 2025
Merged via the queue into containerd:main with commit 7d72337 Apr 17, 2025
100 of 102 checks passed
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in Pull Request Review Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/github_actions Pull requests that update GitHub Actions code go Pull requests that update Go code size/S

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

9 participants