-
Notifications
You must be signed in to change notification settings - Fork 312
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
app: fix broken event indexing #5009
Conversation
eba4324
to
58b4a2c
Compare
Great find, and sufficient to resolve the problem reported in #4999. I've tacked on some integration tests for pindexer, off by default, that can be run like so: When running against a full node created from the
However when run on this feature branch, they pass:
which is exactly what we want to see. Ideally these tests would run in PRs, so we can catch breakage early, but I'll make that change in subsequent PRs, cleaning up the smoke-test logic. This fix is solid and we want it in now! |
Adds some feature-gated integration tests, not yet hooked up to CI, to sanity check that the ABCI events pipeline is working: pd -> cometbft -> postgres -> pindexer The integration tests talk to local postgres databases and make assertions about their contents. There's also a small change to the process-compose orchestration, instructing pindexer to wait for the fullnode services to come up, lest it error out early due to an empty database. The error I observed on an empty db was: Error: error occurred while decoding column 0: unexpected null; try decoding as an `Option` Caused by: unexpected null; try decoding as an `Option` Which is distinct from the error reported in #4999. By waiting a bit longer we can ensure a clean start even on a fresh devnet. Will follow up with subsequent PRs to make sure these tests run in CI.
## Describe your changes Follow-up to #5009, in which these tests were introduced, and #5048, which refactored the smoke tests to make additions like this easier. ## Issue ticket number and link See above. ## Testing and review The tests were already merged, this is just enabling them in CI, so CI passing, specifically on the smoke-test job, is enough. ## Checklist before requesting a review - [x] I have added guiding text to explain how a reviewer should test these changes. - [x] If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: > tests/ci only, no changes to application code
Describe your changes
We missed this on reviewing #4963 which causes a series of unfortunate events in the data pipeline: #4999
The important diff:
Issue ticket number and link
Checklist before requesting a review
I have not tested this change. To test it we can run
pd
and check if events are making it to the comet pg indexer.If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: