Repository navigation
Bump go 1.24.0 and fix 'usetesting' linter - #7783
Conversation
Signed-off-by: Tim Ramlot <[email protected]>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: erikgb The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9e68baa to
9c68a88
Compare
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
Signed-off-by: Tim Ramlot <[email protected]>
638bad5 to
6aff79b
Compare
e081d53 to
0413a5f
Compare
0413a5f to
c5559e0
Compare
|
/retest |
c5559e0 to
9ede3c9
Compare
|
/retest |
erikgb
left a comment
There was a problem hiding this comment.
Thanks @inteon! A lot of changes in the PR, but most of them are "boring". 😆 This is nice improvement to test code, and if we discover any test issues after merge, I presume they should be fixable.
/lgtm
/hold
Feel free to unhold. I was just surprised to see so much complexity in one of the tests.
| }() | ||
| defer func() { | ||
| shutdownCtx, cancel := context.WithTimeout(context.Background(), time.Second*5) | ||
| shutdownCtx, cancel := context.WithTimeout(context.WithoutCancel(t.Context()), time.Second*5) |
There was a problem hiding this comment.
The code in this area appears very complex. Lots of cleanup and defers. Any possibility to simplify? Eventually in a follow-up PR?
There was a problem hiding this comment.
This code makes sense, shutdown contexts should always use context.WithTimeout(context.WithoutCancel(ctx), [timeout]) since the context (in this case t.Context()) might have been canceled already.
|
/unhold |
Bumps the minimum go version to 1.24 (in preparation for a kubernetes library upgrade).
This allows us to use
t.Context(). The 'usetesting' linter finds that we do not use this context everywhere possible.Kind
/kind cleanup
Release Note