Skip to content
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

Automated test for parachain disconnection #1606

Open
Kailai-Wang opened this issue Apr 15, 2023 · 1 comment
Open

Automated test for parachain disconnection #1606

Kailai-Wang opened this issue Apr 15, 2023 · 1 comment
Assignees
Labels
D5-testing testing related tasks I2-medium should be completed within 10 working days Stale

Comments

@Kailai-Wang
Copy link
Collaborator

Context

We'd need an automated test to test the reconnection of tee-worker when parachain goes down.

  1. parachain disconnects (e.g. gets killed)
  2. tee-worker stops
  3. restarts parachain
  4. restarts tee-worker => it should continue

I manually tested it several times, and it looked good, but it would be great if we could have an automated test.

Here's the log of TEE-worker when the connection to parachain was lost:

[2023-04-15T19:51:35Z ERROR integritee_service] Parentchain block syncing terminated with a failure: ApiSubscriptionDisconnected(RecvError)
[!] Parentchain block syncing has terminated
[2023-04-15T19:51:36Z DEBUG enclave_runtime::top_pool_execution] ----------------------------------------
[2023-04-15T19:51:36Z DEBUG enclave_runtime::top_pool_execution] Start sidechain block production cycle
[2023-04-15T19:51:36Z DEBUG its_consensus_common::block_import] Attempting to import sidechain block (number: 94, hash: 0xa5b4cad4b53f0c7d6a66abf697fdefe15b406f5108ea9790e7e2d363cfcc18f6, parentchain hash: 0x620f21ccdda42f71a5682bdc054a908657c7d0c5db491470ce461f1b5133f01b)
[2023-04-15T19:51:36Z ERROR ws::handler] WS Error <Io(Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })>

✔️ Please set appropriate labels and assignees if applicable.

@Kailai-Wang Kailai-Wang added I2-medium should be completed within 10 working days D1-feature A new feature, a piece of functionality that needs to be developed labels Apr 15, 2023
@Kailai-Wang Kailai-Wang added D5-testing testing related tasks and removed D1-feature A new feature, a piece of functionality that needs to be developed labels Apr 28, 2023
@felixfaisal felixfaisal self-assigned this Jun 13, 2023
@github-actions
Copy link
Contributor

❗ This issue is stale because it has been open for 60 days with no activity.
Please take proper action against it.
@litentry/parachain

@github-actions github-actions bot added the Stale label Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D5-testing testing related tasks I2-medium should be completed within 10 working days Stale
Projects
None yet
Development

No branches or pull requests

2 participants