-
Notifications
You must be signed in to change notification settings - Fork 3
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
Grackle adoptation for gokv tutorial #8
base: main
Are you sure you want to change the base?
Conversation
This reverts commit f42d63d. I was unable to get the perennial proofs to do through.
update-grackle.sh
Outdated
fi | ||
|
||
# Have I mentioned that I dislike bash? Just look at this arcane | ||
# and archaic syntax |
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 this be nicer as a python script (especially if this gets more complex in the future)? E.g. something like Perennial's etc/update-goose.py
.
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 also would prefer to migrate this to python now rather than later. It's already at my personal limit for bash script complexity.
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 would also prefer that, although it was @tchajed who suggested bash in the first place. I will work on this shortly.
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.
Sorry for flip flopping on that, I thought this would be simpler than it turned out.
Cool! One thought: would it make sense to add (some variant of) One possibility is simply adding Another possibility would be to do some sort of read-only check in |
update-grackle.sh
Outdated
fi | ||
|
||
# Have I mentioned that I dislike bash? Just look at this arcane | ||
# and archaic syntax |
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 also would prefer to migrate this to python now rather than later. It's already at my personal limit for bash script complexity.
@@ -0,0 +1,57 @@ | |||
package conditionalput_gk |
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.
There should be a comment that this is auto-generated at the top of the file.
I think adding a read-only check feature to grackle is a bit more complexity than necessary to do upstream. I would like to integrate it into your |
Correct, that is the only external dependency for grackle. I'd be happy to integrate grackle checking into the makefile. As Tej mentioned, grackle doesn't currently support checking output without writing it, although it may be possible to bootstrap the The easiest option at the moment is probably to add Something else to keep in mind is that grackle is still being developed and it's possible that my changes to upstream grackle will cause the CI job to fail even if no other changes to the grackled portion of gokv are made. We may want to change the |
Looks like you forgot to add the python script (update-gracke.py). Also the github workflow should reference the new file and not the sh script. I agree that using a tagged version is safer, to avoid CI failures while grackle is rapidly changing. We can still bump that version regularly. |
Hello!
I'm a PhD student working with Tej this semester on grackle, a tool which generates marshaling code and proofs from protobuf files. It's still a work in progress, but a lot of the basic features are complete and I've applied it to the
gokv
tutorial. Note that there are other proto files in the PR. Many of them needs features like slices which we're currently working on but aren't ready yet.There is a new script
update-grackle.sh
which can rungrackle
and update the output. I've added a check to the CI workflow to ensure that the grackle output is kept up to date.Please let me know if you have any questions or suggestions to improve this!