fix: upgrade Dockerfile to golang:1.25 and golangci-lint to v2.9.0 - #2492
fix: upgrade Dockerfile to golang:1.25 and golangci-lint to v2.9.0#2492molloyzak13 wants to merge 3 commits into
Conversation
| @@ -1,5 +1,5 @@ | |||
| # Build the binary | |||
| FROM --platform=$BUILDPLATFORM golang:1.24 AS builder | |||
There was a problem hiding this comment.
We also need to update the go version in go.mod as well
|
Please sign the DCO, thank you |
|
Hi @molloyzak13! Thanks for opening this PR to keep our dependencies up to date. I noticed you bumped the builder image to golang:1.25 in the Dockerfile, but the go.mod file is still set to go 1.24.0. Because all of our GitHub Actions workflows use go-version-file: go.mod to resolve the Go version, this creates a split-brain scenario: our CI and tests will continue running on Go 1.24, while the production Docker images will build with Go 1.25. To ensure our CI accurately reflects the production build environment, could you also run go mod edit -go=1.25.0 (and update the toolchain version if necessary) so that go.mod is in sync with the Dockerfile? Thanks again! |
|
reply_target: #2492 Signed the DCO and bumped go.mod to |
|
reply_target: #2492 Signed the DCO and bumped go.mod to |
55c336d to
f7cf7d4
Compare
|
@molloyzak13 please sign your commits so that the DCO check passes: https://github.com/sustainable-computing-io/kepler/pull/2492/checks |
|
reply_target: #2492 Ah yep, the DCO sign-off landed in the commit message body but not as a proper Signed-off-by trailer. I'll amend the commits with -s and push. One sec. |
|
reply_target: #2492 Ah yep, the DCO sign-off landed in the commit message body but not as a proper Signed-off-by trailer. I'll amend the commits with -s and push. One sec. |
c995ece to
de70ad5
Compare
|
reply_target: #2492 Done. Amended all three commits with |
|
reply_target: #2492 Done. Amended all three commits with |
|
reply_target: #2492 |
|
reply_target: #2492 Pushed. go.mod is at go 1.25.0 and all commits have proper Signed-off-by trailers now. DCO check is green. No other changes. Ready for another look when you get a chance. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2492 +/- ##
=======================================
Coverage 92.15% 92.15%
=======================================
Files 56 56
Lines 5963 5963
=======================================
Hits 5495 5495
Misses 333 333
Partials 135 135 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
📊 Profiling reports are ready to be viewed
💻 CPU Comparison with base Kepler💾 Memory Comparison with base Kepler (Inuse)💾 Memory Comparison with base Kepler (Alloc)⬇️ Download the Profiling artifacts from the Actions Summary page 📦 Artifact name: 🔧 Or use GitHub CLI to download artifacts: gh run download 29095028307 -n profile-artifacts-2492 |
|
reply_target: #2492 Pushed. go.mod is at go 1.25.0 and all commits have proper Signed-off-by trailers now. DCO check is green. No other changes. Ready for another look when you get a chance.reply_status: sent |
|
@molloyzak13 Thank you for the PR. You would need to update lint version here too. kepler/.github/workflows/pr-checks.yaml Line 62 in 96430b4 |
|
@molloyzak13 could you implement @sunya-ch's review feedback please? Edit: Actually I just noticed this is covered by the other similar PR: https://github.com/sustainable-computing-io/kepler/pull/2496/changes#diff-7a6a4578fe04c4fc86b28e2dc9672e48d1a9f721315e540b90bac0ef12263053R62 So perhaps we just need to merge both at the same time |
Signed-off-by: molloyzak13 <molloyzak13@users.noreply.github.com>
- Bump go directive from 1.24.0 to 1.25.0 - Remove now-redundant toolchain directive - Matches golang:1.25 Dockerfile builder image used in CI Signed-off-by: molloyzak13 <molloyzak13@users.noreply.github.com>
Signed-off-by: molloyzak13 <molloyzak13@users.noreply.github.com>
de70ad5 to
f722aa1
Compare
|
📊 Profiling reports are ready to be viewed
💻 CPU Comparison with base Kepler💾 Memory Comparison with base Kepler (Inuse)💾 Memory Comparison with base Kepler (Alloc)⬇️ Download the Profiling artifacts from the Actions Summary page 📦 Artifact name: 🔧 Or use GitHub CLI to download artifacts: gh run download 29825332531 -n profile-artifacts-2492 |
kepler's CI build and lint jobs are pinned to Go 1.24. The Dockerfile uses
golang:1.24and golangci-lint is on v2.1.6. When go.mod moves past 1.24 (dependabot bumped x/net to v0.55.0, which needs Go 1.25), both jobs break.Bumped the Dockerfile base image to
golang:1.25, and golangci-lint to v2.9.0 in.pre-commit-config.yaml. golangci-lint v2.9.0 builds against Go 1.25.Covers the first checkbox from #2491. The Go 1.26 step needs goreleaser and other tooling to catch up, so splitting that out makes sense.
The CI workflow file (
.github/workflows/pr-checks.yaml) also pins golangci-lint to v2.1.6 and should be bumped to v2.9.0 in the same pass. Same one-line change. Happy to push that as a follow-up commit or have a maintainer apply it directly.