-
Notifications
You must be signed in to change notification settings - Fork 34
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
Use gRPC reflection to retrieve CmdExecutor file #1075
Use gRPC reflection to retrieve CmdExecutor file #1075
Conversation
6298820
to
56bd398
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.
Really cool! 🎉 Thanks a lot for the contribution, @rnbguy! 🙏
I've cleaned up the code a bit, and added the reflection proto locally.
Would also like to get @shonfeder's opinion before approving.
Is there a reason why you used v1alpha/reflection.proto
instead of v1/reflection.proto
?
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 the contribution, Rano!
@thpani hey good catch ! I think I randomly searched online and picked a link from the official repo. You should use |
My outstanding reservations notwithstanding, I am fine with proceeding! LMK when it is ready for review :) |
219458a
to
1921175
Compare
I finalized the PR. Let me know if I should add any test or update changelog or readme for this. |
@thpani FYI, I just noticed $ apalache server &
$ grpcurl -plaintext localhost:8822 list
grpc.reflection.v1alpha.ServerReflection
shai.cmdExecutor.CmdExecutor
shai.transExplorer.TransExplorer |
Aaah yes! It looks like |
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
Thanks for helping out here, @rnbguy! 👍
I will adapt the Apalache integration tests that currently fail CI, then this is good to merge from my side. |
f3a6df8
to
ad0ddca
Compare
contributed major parts, someone else should review
60fb43b
to
f9223ea
Compare
It took a some iterations, but I'm finally happy with this 😄 @shonfeder PTAL? |
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 great! Awesome work you both and thanks for improving the interface and kicking this off, @rnbguy !
This PR removes dependency to
APALACHE_DIST
while retrievingCmdExecutor.proto
file.If
APALACHE_DIST
is not set, it retrieves the file directly from the default gRPC endpointlocalhost:8822
.reflection.proto
in local package and remove axios dependency to make http requests.CHANGELOG.md
for any new functionalityREADME.md
updated for any listed functionalityRelated to #701, #823