-
Notifications
You must be signed in to change notification settings - Fork 116
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(deps): bump prost, tonic, tonic-build and console-subscriber #5009
Conversation
Hmm, this needs a new dependency, more info in hyperium/tonic#1047 Ill try to do this locally and then try to figure out where in the CI we need to add the new dependency. Also this will need changes to the README so is a bit more work than i was expecting but ill work on it. |
Ok, so i fixed this locally. As it says in the issue i posted above this now requires
So i installed the last version using the binaries provided at https://github.com/protocolbuffers/protobuf/releases/tag/v21.5 With this version everything looks good. We need to install this in the CI, what other projects are doing is adding https://github.com/arduino/setup-protoc to the workflow. for example https://github.com/hyperium/tonic/blob/master/.github/workflows/CI.yml#L29 |
We're only using these dependencies in tests, so we can update the developer documentation and link to it from the README. (We're trying to keep the README short.) It's also ok to just link to the line in the Dockerfile or GitHub workflow that installs dependencies, because they change pretty often. Also this PR removes the need for cmake in CI. |
Codecov Report
@@ Coverage Diff @@
## main #5009 +/- ##
==========================================
- Coverage 79.25% 79.20% -0.05%
==========================================
Files 310 310
Lines 38901 38901
==========================================
- Hits 30831 30812 -19
- Misses 8070 8089 +19 |
The
https://github.com/ZcashFoundation/zebra/runs/8103900323?check_suite_focus=true#step:4:24 Try upgrading |
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.
All looks good. I tested this PR locally, and the following checks passed with the protoc
binary installed:
cargo fmt --all -- --check
cargo deny --workspace --all-features check bans sources
cargo clippy --all-targets --release --all-features
cargo test --release
I looked into the book to check where we could document that Zebra devs need protoc
, but I didn't find any suitable place where this could be mentioned. Maybe a subsection here https://zebra.zfnd.org/CONTRIBUTING.html?
Not sure what is this one: https://github.com/ZcashFoundation/zebra/runs/8142400656?check_suite_focus=true#step:3:12 |
Did we really reach the rate limit? The error also says that authenticated users get higher limit. |
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.
Not sure what is this one: https://github.com/ZcashFoundation/zebra/runs/8142400656?check_suite_focus=true#step:3:12
Did we really reach the rate limit? https://docs.github.com/en/rest/overview/resources-in-the-rest-api#requests-from-github-actions
The error also says that authenticated users get higher limit.
Maybe @gustavovalverde can help, it seems like we need to fix the rate-limit before we merge this PR.
Sorry for the delay here @oxarbitrage. The fix has been applied for the actions, just a Cargo.lock conflict is missing. I'll leave the rest to you.
|
4ad423b
to
ea7a7c9
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.
I bumped the console-subscriber
version again, and resolved the Cargo.lock
conflict.
ea7a7c9
to
4d5ea31
Compare
Motivation
We want to update
prost
,tonic
,tonic-build
andconsole-subscriber
at the same time.Replaces #4853
Solution
Upgrade the 4 crates manually, clippy issues that were blocking this were resolved.
Review
I think anyone can review.
Reviewer Checklist