-
Notifications
You must be signed in to change notification settings - Fork 8
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
test,ci,feat: (1) Use poetry for pkg management. (2) Improve CI. (3) Re-gen protos for v0.12.1-alpha of nibiru #53
Conversation
commit bba204296ef2f01d137af0acfd3654920b8262ac Author: Unique-Divine <[email protected]> Date: Fri Aug 12 02:48:08 2022 -0500 add pytest as a non-dev dependency commit bd7f20f1d45ea5ee0e84187f63aec78f7d08f9f4 Author: Unique-Divine <[email protected]> Date: Fri Aug 12 02:43:29 2022 -0500 ci: pytest workflow with poetry first attemp #wip
d975c4b
to
23a2d73
Compare
mkdir -p nibiru/proto/ | ||
cp -r ../nibiru/proto/ proto/ | ||
echo "refresh existing proto files" | ||
if [ $(basename $(pwd)) = nibiru-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.
Is this if check necessary? make proto-gen
will already run in the nibiru-py
directory.
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'm using it as an indirect form of documentation. It's a bit hard to follow this script because the the nibiru
repo is assumed to be at ../nibiru
, while the nibiru
package is ./nibiru
and the script actually cd
s around.
My intention here was to hint at where the execution was taking place.
We should probably add an error message for when the nibiru repo isn't found as well to make the dev exp. a little better.
scripts/protocgen.sh
Outdated
if [ -d proto ] | ||
then | ||
# it will mess up the script, so we preemptively remove it. | ||
rm -rf 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.
rm -rf nibiru/proto proto
will already delete if it exists, no-op if it doesn't.
For the reviewer
You'll need the environment variables listed in the repo configs notion page.
The substance of the PR lies within 5 files:
nibiru/network.py
: Created `devnetpyproject.toml
(and poetry.lock): Made deterministic build process and used poetry for dependency resolution.github/workflows/.pytests.yml
: Verified correctness of the new setup with CItests/chain_info_test.py
: Cleaned up tests and added a vpool query to the suitescipts/protocgen.sh
: Improved this script to run whether or not the proto directory exists. Added docs to go with it to the README.Summary - Commit Log
poetry
#45