-
Notifications
You must be signed in to change notification settings - Fork 429
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
[E2E] Allow testing with live-chain state #1949
Conversation
crates/e2e/src/node_proc.rs
Outdated
@@ -150,9 +159,6 @@ where | |||
Err(err) => { | |||
let err = format!("Failed to connect to node rpc at {url}: {err}"); | |||
tracing::error!("{}", err); | |||
proc.kill().map_err(|e| { | |||
format!("Error killing substrate process '{}': {}", proc.id(), e) | |||
})?; |
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.
Accidental removal?
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.
Yep
🦑 📈 ink! Example Contracts ‒ Changes Report 📉 🦑These are the results when building the
Link to the run | Last update: Wed Nov 15 22:27:35 CET 2023 |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1949 +/- ##
==========================================
- Coverage 53.30% 53.24% -0.07%
==========================================
Files 219 219
Lines 6838 6844 +6
==========================================
- Hits 3645 3644 -1
- Misses 3193 3200 +7 ☔ View full report in Codecov by Sentry. |
CHANGELOG.md
Outdated
- [E2E] Allow testing with live-chain state - [#1949](https://github.com/paritytech/ink/pull/1949) | ||
- Stabilize `call_runtime` ‒ [#1749](https://github.com/paritytech/ink/pull/1749) | ||
- Schema generation - [#1765](https://github.com/paritytech/ink/pull/1765) | ||
- Add `set_block_number` to off-chain test api `Engine` - [#1806](https://github.com/paritytech/ink/pull/1806) |
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.
Was it intentional to add all those unrelated ones here?
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.
No, just a mistake during merge
On my branch I had added the feature to more |
Yes. I have run tests with |
Did you also run them with |
Yes, as you can see in git diff in this PR, |
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.
Can you give a brief explanation of the changes and the setup, and how it works to enable testing live-chain state?
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
Summary
Closes #1947
cargo-contract
orpallet-contracts
?Allows to run E2E tests against the live chain leveraging its live state
How to test
Due to the inability to run the test on GH workflow, here are instructions on how to run the test locally:
Copied from use-ink/ink-docs#283
dev.yml
config file in the repo or create one from scratch that you can reference later:Basically produce two empty blocks by submitting 2
system.remark(0)
extrinsics on polkadot.jsintegration-tests/e2e-call-runtime
and modify the test attribute:cargo test -F e2e-tests
Checklist before requesting a review
CHANGELOG.md