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

Compare 0box tables with sharder tables for a particular round in the very end #1069

Open
Jayashsatolia403 opened this issue Jun 5, 2024 · 0 comments
Assignees

Comments

@Jayashsatolia403
Copy link
Collaborator

Jayashsatolia403 commented Jun 5, 2024

We migrated 13 tables from 0chain and 0box and building them from events in 0chain using kafka : -t blobbers -t validators -t miners -t sharders -t authorizers -t blobber_snapshots -t validator_snapshots -t miner_snapshots -t sharder_snapshots -t authorizer_snapshots -t users -t user_snapshots -t provider_rewards .

To make sure the data is consistent and is not breaking, we need to write tests to compare the data in the end of system tests run. We have 2 approaches to deal with it :

  1. We should have multiple endpoints to share all the fields of all the tables above on both 0chain and 0box. If some fields are missing then we can add them as test endpoints.
  2. We can just create 2 endpoints that can return us the result of db query. We can use it to get and compare data of all fields and run them only when network is deployed on test mode.

We can discuss more ideas or use hybrid approach as well.

@Jayashsatolia403 Jayashsatolia403 changed the title Compare 0box tables with sharder tables for a particular round in the very end. Compare 0box tables with sharder tables for a particular round in the very end Jun 5, 2024
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

No branches or pull requests

2 participants