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

Add fail-points to test robustness #2090

Closed
wants to merge 7 commits into from

Conversation

keroro520
Copy link
Contributor

  • Specify the actions of fail-points via the configuration fail-points in ckb.toml.
  • Add fail-points at the front of sending/receiving network messages.
  • Create sync/src/utils.rs to wrap most of the operations of sending messages.
  • Refactor some code.
  • Run 2 nodes from the fresh state, the one configured with 0.1% probability of network messages lost, another is normal. The former takes 170 minutes and the latter takes 120 minutes to synchronize to the TIP.

@keroro520 keroro520 requested review from a team and doitian May 25, 2020 03:31
@doitian doitian added this to 👀 Awaiting review in CKB - Pull Requests Jun 1, 2020
@doitian doitian requested a review from quake June 5, 2020 01:56
Copy link
Member

@doitian doitian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some doc in docs/ckb-core-dev.md about how to enable this feature.

@doitian
Copy link
Member

doitian commented Jun 12, 2020

Please add some doc in docs/ckb-core-dev.md about how to enable this feature.

@xxuejie should we start to add docs to new docs site instead?

@stale
Copy link

stale bot commented Aug 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the s:wontfix Status: Wont fix label Aug 7, 2020
@doitian doitian added pinned Tell stall bot do not close this. and removed s:wontfix Status: Wont fix labels Aug 10, 2020
@doitian doitian marked this pull request as draft September 23, 2020 01:39
@doitian doitian moved this from 👀 In review (Max 4) to 🚧 In progress in CKB - Pull Requests Oct 29, 2020
@keroro520 keroro520 closed this Nov 23, 2020
CKB - Pull Requests automation moved this from 🚧 In progress to Done Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pinned Tell stall bot do not close this.
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants