-
Notifications
You must be signed in to change notification settings - Fork 99
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 golang to v1.21.6 #1435
🌱 Bump golang to v1.21.6 #1435
Conversation
/hold |
/test-ubuntu-integration-main |
Signed-off-by: Kashif Khan <[email protected]>
e9f081c
to
704e645
Compare
/test-ubuntu-integration-main |
1 similar comment
/test-ubuntu-integration-main |
Is this PR needs the project-infra PR to merge first? The gomod test is failing because of new 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.
hack/ensure-go.sh
35: minimum_go_version=go1.20
Missed this, otherwise LGTM.
Project infra needs to go first whenever Prow test is broken/changed. |
Intentionally left out since the PR job was failing, will bump it in a followup |
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.
/lgtm
Tests will start passing when project-infra one is merged.
/test gomod |
/cc @mboukhalfa @lentzi90 |
@@ -80,11 +80,11 @@ var _ = Describe("Metal3Data manager", func() { | |||
} | |||
if tc.m3d != nil && !tc.m3d.DeletionTimestamp.IsZero() { | |||
if tc.releaseLeasesRequeue { | |||
m.EXPECT().ReleaseLeases(context.TODO()).Return(baremetal.WithTransientError(errors.New(""), requeueAfter)) | |||
m.EXPECT().ReleaseLeases(context.Background()).Return(baremetal.WithTransientError(errors.New(""), requeueAfter)) |
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.
was changing the context from todo to background required by the new 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 function uses context background but the test was expecting context todo
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.
This is thrown as an error now with go 1.21
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mboukhalfa 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 |
/hold cancel |
as the title says