Skip to content

[#345] Nettest error recovery

Roman Melnikov requested to merge rvem/#345-nettest-error-recovery into master

Description

Nettest scenarios tend to fail with various errors that don't depend on our code or environment.

This MR adds an ability to recover from invalid counter errors and weird ECONNRESET during tezos-client calls.

Also, for the cases when scenario gets stuck without visible reason, 2-minute timeout was added to all tezos-client calls and all morley-client RPC requests. If the request can be safely retried, it's retried once and considered failed in case of repeated timeout

Related issue(s)

Resolves #345 (closed)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • [ ] If I added new functionality, I added tests covering it.
    • [ ] If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.

    Quite hard to cover with tests since these failures are quite unstable and we can't easily reproduce them

  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Roman Melnikov

Merge request reports