-
Notifications
You must be signed in to change notification settings - Fork 23
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(contract-e2e): auto-source substrate-contracts-node with e2e tests #254
Conversation
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #254 +/- ##
==========================================
- Coverage 70.81% 70.63% -0.18%
==========================================
Files 47 50 +3
Lines 7664 7881 +217
Branches 7664 7881 +217
==========================================
+ Hits 5427 5567 +140
- Misses 1315 1374 +59
- Partials 922 940 +18
|
…#255) * refactor(up-contract): use Binary struct from parachains -> up -> sourcing to auto-launch contracts-node * refactor(contracts_node): reduce duplicated code -- checkpoint, not working * refactor(contracts_node): use Binary and Source structs for substrate-contracts-node * chore: small changes
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! A few minor suggestions, but need the missing help comment added and I had a weird quick having contracts-node already installed via cargo which meant a poorer experience. See comments for more details.
Introduced a new |
Looking good, will review again with this merged: #258 before approve |
* refactor(sourcing): move sourcing to pop-common * refactor(sourcing-tests): move sourcing tests to pop-common * refactor(sourcing): better imports * refactor(sourcing): clean sourcing module with better component categorization. Other cleanups
Something wrong after the merge, that tests are failing |
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.
Tests are passing now.
Some decisions need to be made before merging:
- Can be addressed in a separate PR, but we need to decide on this comment: feat(contract-e2e): auto-source substrate-contracts-node with e2e tests #254 (comment),
- Do you want to merge this PR here feat: consistency with
pop up parachains
to handle versioning forcontracts-node
#262 to have all the functionality together? or separate in another PR to main?.
|
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.
A minor fix required to the UX and the use of the cache directory for tests need to be improved, as it may currently leave artifacts on users machine if test fails.
See also #263 for additional improvements.
* fix: use async sleep in async context * refactor: remove unnecessary module * refactor: standardise sourcing ux
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.
Awesome, thank you for bearing with me. 🙂
Solves #247
pop test contract --features e2e-tests
is now deprecated in favor ofpop test contract --e2e
.pop test contract --e2e
will now download (if needed)substrate-contracts-node
for usage in e2e tests.substrate-contracts-node
standalone command exists, this will be used.pop up contract
was refactored to use the existing functionality for sourcing binaries inpop-parachains
.Merge Prerequisite: #258
Review this PR first before #258. #258 moves the sourcing functionality to
pop-common
.