-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Build with Go 1.20 #6126
Build with Go 1.20 #6126
Conversation
19a80cd
to
9b83c0b
Compare
9868d37
to
0054ece
Compare
5c24a0a
to
40fb611
Compare
@bwplotka @GiedriusS I tried to debug the failing test locally and it turns out that the chunk size varies at each run. As I have no understanding of prometheus storage backend I'd like to hand over this to someone competent in the matter. |
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Hmm I'm not sure why |
Ok I was able to reproduce this after upgrading to Go 1.20.1 locally. The reason thanos/pkg/testutil/e2eutil/prometheus.go Line 509 in 5e3ecf6
But as of Go 1.20 "math/rand" package automatically seeds the global random number generator which causes our block chunk file size to vary: https://tip.golang.org/doc/go1.20#minor_library_changes I think we just need to seed rand here 🙂 Edit: Trying this out with commit: 15217bc |
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
@saswatamcode thank you! |
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!
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.
🥇
* Build with Go 1.20 Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr> * Upgrade codeql workflow Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr> * Upgrade go4.org/unsafe/assume-no-moving-gc Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr> * Update Changelog Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr> * Upgrade golangci-lint Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr> * Sync github workflows Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr> * Fix indentation in documentation code snippet Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr> * Make createBlock chunk size deterministic Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com> --------- Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr> Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com> Co-authored-by: Saswata Mukherjee <saswataminsta@yahoo.com> (cherry picked from commit 8da34a1)
OCPBUGS-11928: Build with Go 1.20 (thanos-io#6126)
Changes
Verification