-
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
kvdb/sqlbase: fix params used in randRetryDelay
#7955
kvdb/sqlbase: fix params used in randRetryDelay
#7955
Conversation
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.
Looks like the whole sqlbase
package doesn't currently compile on master. The build isn't failing because we're still pinning a previous tag.
The main reason for this not being noticed is that we don't have any unit tests in that package. Otherwise we'd catch compilation errors of the current code in submodules (even if we don't reference it in the main go.mod
)
I don't think it's the case as there is a |
ddb952f
to
b774c0a
Compare
Then I think we need to change the way we run the unit tests. Or add the
We used to have local replaces. But the problem is that those don't propagate when |
7c877fb
to
25462f5
Compare
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.
Great fix, thanks a lot!
25462f5
to
fa52442
Compare
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.
Nice, LGTM 🎉
fa52442
to
9760313
Compare
Looks like there are more go module changes needed. We'll address them in #7944, maybe that should go in first. |
822d668
to
cc4afc3
Compare
Lasted push added a new command |
This commit adds a new command `make unit-module` to run unit tests for submodules to avoid future build errors.
We copy the `sqldb/sqlerrors.go` into `kvdb/sqlbase` to avoid import cycles.
This commit adds `tidy-module` and `tidy-module-check` to make sure the modules are always tidy.
cc4afc3
to
c568ba9
Compare
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 for adding the go mod tidy automation 💯
#!/bin/bash | ||
|
||
IGNORE="tools" | ||
SUBMODULES=$(find . -mindepth 2 -name "go.mod" | cut -d'/' -f2 | grep -v "$IGNORE") |
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.
👍
Realized the params used in
randRetryDelay
, causing us to always wait for 5s after the first attempt.