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

T3. add(test): check for failure messages in lightwalletd and Zebra logs #3903

Merged
merged 27 commits into from
Mar 23, 2022

Conversation

teor2345
Copy link
Contributor

Motivation

We want to check lightwalletd logs and Zebra logs for failures like:

  • missing RPCs
  • RPC argument parse errors
  • RPC argument data errors
  • RPC response parse errors
  • RPC response data errors
  • other specific errors logged by lightwalletd

This PR checks lightwalletd and zebrad test logs for failure messages.

This is related to:

Solution

  • Add a list of failure messages for lightwalletd, zebrad, and any process
  • Check for them in the integration test logs

Review

This PR isn't urgent, but it might need changes when we add new RPCs.
(Or it might find bugs in new RPCs.)

This PR is based on PR #3899.

Reviewer Checklist

  • Code implements Specs and Designs
  • Tests for Expected Behaviour
  • Tests for Errors

Follow Up Work

Keep the failure lists up-to-date as we add new RPCs.

@teor2345 teor2345 added P-Medium ⚡ C-testing Category: These are tests A-rpc Area: Remote Procedure Call interfaces lightwalletd any work associated with lightwalletd labels Mar 18, 2022
@teor2345 teor2345 requested a review from a team as a code owner March 18, 2022 09:04
@teor2345 teor2345 self-assigned this Mar 18, 2022
@teor2345 teor2345 requested review from dconnolly and removed request for a team March 18, 2022 09:04
@teor2345 teor2345 changed the base branch from main to test-log-failure-regex March 18, 2022 09:04
@teor2345 teor2345 force-pushed the test-log-failure-regex branch from 7cc555f to 3e2cddf Compare March 18, 2022 09:09
@teor2345 teor2345 force-pushed the check-lightwalled-failures branch from 4f84779 to 5b56eb7 Compare March 18, 2022 09:09
@teor2345 teor2345 force-pushed the test-log-failure-regex branch from 3e2cddf to fcfc61e Compare March 20, 2022 21:40
@teor2345 teor2345 force-pushed the check-lightwalled-failures branch from 5da202f to cec838b Compare March 20, 2022 21:41
Copy link
Contributor

@dconnolly dconnolly left a comment

Choose a reason for hiding this comment

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

LGTM!

@teor2345 teor2345 force-pushed the test-log-failure-regex branch from fcfc61e to 543db25 Compare March 22, 2022 20:37
Base automatically changed from test-log-failure-regex to main March 22, 2022 23:53
mergify bot added a commit that referenced this pull request Mar 22, 2022
@mergify mergify bot merged commit 65c1ef8 into main Mar 23, 2022
@mergify mergify bot deleted the check-lightwalled-failures branch March 23, 2022 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Area: Remote Procedure Call interfaces C-testing Category: These are tests lightwalletd any work associated with lightwalletd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants