-
Notifications
You must be signed in to change notification settings - Fork 4k
util/decimal: decrease allowed shift length #10934
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
Conversation
|
Reviewed 4 of 4 files at r1. pkg/util/decimal/decimal.go, line 337 at r1 (raw file):
I think a word is missing here. Perhaps "the tests ... that are using strE" ? Comments from Reviewable |
|
Reviewed 1 of 2 files at r2. pkg/util/decimal/decimal_test.go, line 87 at r2 (raw file):
it's a good idea to avoid spaces in these names. run this test with pkg/util/decimal/decimal_test.go, line 105 at r2 (raw file):
won't this leak goroutines? whoa, is the parser package no using leaktest? pkg/util/decimal/decimal_test.go, line 111 at r2 (raw file):
not new but this seems to do the wrong thing if an error is expected and not returned. pkg/util/decimal/decimal_test.go, line 157 at r2 (raw file):
it's a good idea to avoid spaces in these names. run this test with pkg/util/decimal/decimal_test.go, line 161 at r2 (raw file):
this is equivalent to pkg/util/decimal/decimal_test.go, line 165 at r2 (raw file):
this is equivalent to Comments from Reviewable |
|
Review status: 2 of 4 files reviewed at latest revision, 7 unresolved discussions. pkg/util/decimal/decimal.go, line 337 at r1 (raw file): Previously, knz (kena) wrote…> I think a word is missing here. Perhaps "the tests ... that *are* using strE" ?pkg/util/decimal/decimal_test.go, line 87 at r2 (raw file): Previously, tamird (Tamir Duberstein) wrote…> it's a good idea to avoid spaces in these names. run this test with `-test.v` to see why.pkg/util/decimal/decimal_test.go, line 105 at r2 (raw file): Previously, tamird (Tamir Duberstein) wrote…> won't this leak goroutines? whoa, is the parser package no using leaktest?pkg/util/decimal/decimal_test.go, line 111 at r2 (raw file): Previously, tamird (Tamir Duberstein) wrote…> not new but this seems to do the wrong thing if an error is expected and not returned.pkg/util/decimal/decimal_test.go, line 161 at r2 (raw file): Previously, tamird (Tamir Duberstein) wrote…> this is equivalent to `Fatal`ing on the previous linepkg/util/decimal/decimal_test.go, line 165 at r2 (raw file): Previously, tamird (Tamir Duberstein) wrote…> this is equivalent to `Fatal`ing on the previous lineComments from Reviewable |
|
PTAL |
|
Reviewed 1 of 2 files at r2, 1 of 1 files at r3. pkg/util/decimal/decimal_test.go, line 161 at r2 (raw file): Previously, mjibson (Matt Jibson) wrote…> Done.Comments from Reviewable |
|
Also please check (possibly manually) that this change properly addresses the latest repro |
|
Another repro: |
Improve decimal testing to include a 5s timeout. Also use subtests for better test messages. Test timeouts need to be much longer during race tests. Fixes #10928
|
I've also added those other two failing RSG tests. They pass here. Review status: 3 of 4 files reviewed at latest revision, 6 unresolved discussions. pkg/util/decimal/decimal_test.go, line 161 at r2 (raw file): Previously, knz (kena) wrote…
Yeah not sure how that didn't get picked up. I thought I already had this. Added. Comments from Reviewable |
|
Reviewed 1 of 1 files at r4. Comments from Reviewable |
Improve decimal testing to include a 5s timeout. Also use subtests for
better test messages.
Fixes #10928
This change is