-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
feat(console-api): Update tonic
to 0.7
#318
Conversation
This change updates `tonic` and `prost` to their latest versions. In addition this PR changes how the generated protobuf is built from being done in a `build.rs` file to a `tests/boostrap.rs` test. This removes the need for downstream consumers to compile/provide `protoc` for `prost` to generate the protobuf files (which was changed in `0.10`). The bootstrap test will first attempt to compile the protobuf files and check if there is a git diff between the checked in version. If there is a difference it will fail the test waiting for the files to be checked in. This will fail PRs that have updated the protobuf files but not checked in the new versions.
tonic
to 0.
7tonic
to 0.7
I tried adding some code to download protoc to speed up CI but didn't realize that deps were cached so we only pay the cost on the first build. Going to back out my changes. |
4036c5b
to
606cf72
Compare
# Make 1.58 MSRV due to <=1.57 failing to build console-api due to a bug | ||
# with cargo version resolution. | ||
minrust: 1.58.0 |
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.
Would be good to find the bug here 🤷
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 notice that the generated code is now checked in --- is this a recommended practice in Tonic 0.7-land?
So |
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.
this seems legit to me!
tonic
to 0.7
tonic
to 0.7
<a name="0.1.4"></a> ## 0.1.4 (2022-04-11) #### Bug Fixes * fix memory leak from historical `PollOp`s (#311) ([9178ecf](9178ecf), closes [#256](256)) #### Features * **console-api:** Update `tonic` to `0.7` (#318) ([83d8a87](83d8a87)) * don't trace tasks spawned through the console server (#314) ([0045e9b](0045e9b))
This change updates
tonic
andprost
to their latest versions. Inaddition this PR changes how the generated protobuf is built from being
done in a
build.rs
file to atests/boostrap.rs
test. This removesthe need for downstream consumers to compile/provide
protoc
forprost
to generate the protobuf files (which was changed in0.10
).The bootstrap test will first attempt to compile the protobuf files and
check if there is a git diff between the checked in version. If there is
a difference it will fail the test waiting for the files to be checked
in. This will fail PRs that have updated the protobuf files but not
checked in the new versions.
BREAKING CHANGE:
console-api
is now no longer compatible with projects usingprost
0.9 or
tonic
0.7. These crates must be updated to useconsole-api
0.2.