-
Notifications
You must be signed in to change notification settings - Fork 431
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
End-to-end tests contracts fails despite correct node setup #1875
Comments
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
This commit addresses the issue where e2e-tests for ink contracts are failing even with the correct substrate-contracts-node setup. Change made =========== - I've Introduced `tokio::task::spawn_blocking` to offload the task of reading the substrate process's output to a separate thread since the previous approach wasn't working. - I've used `std::sync::mpsc` channel to relay the extracted port from the reader thread back to the main async context. - I've improved the `find_substrate_port_from_output` function to ensure continuous reading of process output, in order to prevent potential blockages. Note: ===== For details on how to test this fix, please read the PR write up. Impact: ======= This commit addresses issue use-ink#1875
Related to use-ink/cargo-contract#1239 (comment) |
I believe the problem here is that the latest
^^ These are not compatible. You need an earlier Otherwise use See #1876 (review) |
This should be fixed in |
Description:
End-to-end tests (
e2e-tests
feature) for the Ink contracts fail to run even whensubstrate-contracts-node
is installed and setup properly.Steps to Reproduce:
substrate-contracts-node
andcargo-contract
installed; if you don't please run:and
flipper
contract directory:Expected Behavior:
The E2E test should run successfully.
Actual Behavior:
The E2E test fails regardless of having
substrate-contracts-node
installed. Even if you are running the node in the background and then run the E2E test, it will still fail.before.mp4
Environment:
OS
: Debiancargo-contract
version 3.0.1ink!
version: 4.2.1ink_e2e
version: 4.2.1substrate-contracts-node
version: 0.30.0-72e68577688Rustc
version: 1.71.1stable
.
The text was updated successfully, but these errors were encountered: