-
Notifications
You must be signed in to change notification settings - Fork 42
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: add rpc url to nwaku, persist rln tree in docker and ci #1997
Conversation
f207d99
to
72e5a71
Compare
size-limit report 📦
|
56358a9
to
832e7cc
Compare
e7bef35
to
6f847ea
Compare
6f847ea
to
9ce3e6b
Compare
.github/workflows/ci.yml
Outdated
npm run sync-rln-tree | ||
tar -czf rln_tree.tar.gz -C /tmp/rln_tree.db . | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 |
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's a newer version of this action: actions/upload-artifact@v4
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.
updated
.github/workflows/ci.yml
Outdated
} | ||
- name: Download RLN tree artifact | ||
if: steps.check-artifact.outputs.artifact_found == 'true' | ||
uses: actions/download-artifact@v3 |
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's a newer version of this action: actions/download-artifact@v4
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.
updated
9ce3e6b
to
aad819b
Compare
Problem
Tests that run against cluster id 1 (The Waku Network) require running an nwaku node with a sepolia RPC url.
When adding this parameter, the nwaku node will not be "ready" (
/health
returns status 200) until the RLN tree is synced. If starting from scratch, this process takes a long time (up to 5 minutes, and will only take longer as more blocks are mined on Sepolia).Solution
Add a step to the CI that:
rln_tree.db
is stored as an artifact. If so, pull it.rln_tree.db
until the/health
endpoint returns 200 (basically syncs the rln_tree to latest block on sepolia)rln_tree.db
as an artifactFor now, the step is disabled. When we have tests that run against TWN, we will enable this job and have it be a prereq for running those tests.
Notes
Contribution checklist:
!
in title if breaks public API;