-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump go toolchain to 1.24.1 #19440
Bump go toolchain to 1.24.1 #19440
Conversation
Skipping CI for Draft Pull Request. |
08ba228
to
39f7b2b
Compare
39f7b2b
to
2bf7006
Compare
/test all |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted filessee 23 files with indirect coverage changes @@ Coverage Diff @@
## main #19440 +/- ##
==========================================
- Coverage 68.88% 68.83% -0.05%
==========================================
Files 421 421
Lines 35901 35901
==========================================
- Hits 24730 24713 -17
- Misses 9744 9757 +13
- Partials 1427 1431 +4 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
/test pull-etcd-govulncheck |
70e2357
to
74e2c21
Compare
The
The problem is that it's suggesting to use functions that are not in Go 1.23. Therefore, I will disable the linter so we can merge this. And I will open multiple pull requests targeting main. Once I finish with them, I'll reenable the linter. |
3e38505
to
6e80928
Compare
@@ -843,7 +843,7 @@ func TestLogRotation(t *testing.T) { | |||
logOutputs: []string{"/tmp/path"}, | |||
logRotationConfig: `{"maxsize": true}`, | |||
wantErr: true, | |||
wantErrMsg: errors.New("invalid log rotation config: json: cannot unmarshal bool into Go struct field logRotationConfig.maxsize of type int"), | |||
wantErrMsg: errors.New("invalid log rotation config: json: cannot unmarshal bool into Go struct field logRotationConfig.Logger.maxsize of type int"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: is this a side effect to bump the go version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the error message is different now, it also shows the embedded structure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added more context in 31650ab's commit message:
The embedded structure is now also part of the log message. The failure from the tests is the following: --- FAIL: TestLogRotation (0.00s) --- FAIL: TestLogRotation/invalid_logger_config (0.00s) config_test.go:868: test "invalid logger config", expected error: invalid log rotation config: json: cannot unmarshal bool into Go struct field logRotationConfig.maxsize of type int, got: invalid log rotation config: json: cannot unmarshal bool into Go struct field logRotationConfig.Logger.maxsize of type int FAIL
Signed-off-by: Ivan Valdes <ivan@vald.es>
9b42a59
to
6b280cf
Compare
The embedded structure is now also part of the log message. The failure from the tests is the following: --- FAIL: TestLogRotation (0.00s) --- FAIL: TestLogRotation/invalid_logger_config (0.00s) config_test.go:868: test "invalid logger config", expected error: invalid log rotation config: json: cannot unmarshal bool into Go struct field logRotationConfig.maxsize of type int, got: invalid log rotation config: json: cannot unmarshal bool into Go struct field logRotationConfig.Logger.maxsize of type int FAIL Signed-off-by: Ivan Valdes <ivan@vald.es>
The linter fails with several warnings from new Go 1.24 functions. Due to the amount of changed lines, it will be better to address them in several follow-up pull requests. > 146 files changed, 1157 insertions(+), 1212 deletions(-) Signed-off-by: Ivan Valdes <ivan@vald.es>
6b280cf
to
7456d52
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, ivanvc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
Bumps Go to 1.24.
Part of #19417
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.