-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Go1.23 timers #11334
Go1.23 timers #11334
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11334 +/- ##
=======================================
Coverage 91.51% 91.51%
=======================================
Files 430 429 -1
Lines 20226 20158 -68
=======================================
- Hits 18509 18447 -62
+ Misses 1342 1337 -5
+ Partials 375 374 -1 ☔ View full report in Codecov by Sentry. |
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.
Thanks @shivanthzen, one question
package batchprocessor // import "go.opentelemetry.io/collector/processor/batchprocessor" | ||
|
||
func (b *shard) stopTimer() { | ||
if b.hasTimer() { |
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.
Is it possible to add a test to capture the regression this is fixing?
Co-authored-by: Alex Boten <[email protected]>
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
//go:build !1.23 |
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.
Shouldn't this be go1.23
? At least on https://stackoverflow.com/a/38439941 that is the format used. Has the format changed?
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.
For builds using go version 1.23 and above , file tagged with //go:build 1.23
will be used, for go version below 1.23 , file tagged with //go:build !1.23
will be used.
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.
Right, what I meant is that I expected this to be
//go:build !1.23 | |
//go:build !go1.23 |
or at least this is how it used to work for Go in older versions, not 1.23
I suggest this MR closed without merging in favour of golang/go#69312. |
It looks like the fix went into 1.23.2 https://github.com/golang/go/issues?q=milestone%3AGo1.23.2+label%3ACherryPickApproved, golang/go#69333 Is the fix for us to ensure we use 1.23.2 when building the next release? |
Double checked by re-running a random test in the -releases repository for the last commit: Looks like we are all set:
|
Might be worth at least capturing the fix in a changelog if no code changes are required |
Parent issue has been closed. Fix was implemented in golang |
Link to tracking issue
Fixes #11332
Testing
Documentation