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 two more health checks: tx indexing enabled and historical entries #1863

Merged
merged 6 commits into from
Feb 17, 2022

Conversation

romac
Copy link
Member

@romac romac commented Feb 9, 2022

Closes: #1388


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@romac romac marked this pull request as ready for review February 16, 2022 10:44
Copy link
Member

@adizere adizere left a comment

Choose a reason for hiding this comment

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

Looks good conceptually. I didn't test the historical_entries check as that is unclear how to achieve. I'll let @ancazamfir weigh in on the changes relative to that check.

A basic test against the tx_index checkup works fine!

2022-02-17T15:26:16.009748Z INFO ThreadId(01) [ibc-0] performing health check...
2022-02-17T15:26:16.022815Z WARN ThreadId(01) Health checkup for chain 'ibc-0' failed
2022-02-17T15:26:16.022854Z WARN ThreadId(01) Reason: transaction indexing for chain 'ibc-0' is disabled (node_info.other.tx_index is off)

@romac romac merged commit 3ff6a7d into master Feb 17, 2022
@romac romac deleted the romac/1388-config-checks branch February 17, 2022 19:14
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
informalsystems#1863)

* Add `CosmosSdkChain::historical_entries()` method

* Add health check for historical entries

* Improve tx indexing check

* Fix block_on within block_on

* Add changelog entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More checks as part of config semantic validation
2 participants