Compare 0box tables with sharder tables for a particular round in the very end
- Vorherrschende Sprache
- Go
- Sterne
- 8
- Forks
- 6
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Das Issue beinhaltet den Vergleich von Daten zwischen 0chain- und 0box-Tabellen für 13 migrierte Tabellen (Blobbers, Validatoren usw.) nach Systemtests. Zuerst muss der bestehende Systemtest-Codebase untersucht werden, um die aktuelle Teststruktur und Datenbankeinrichtung zu verstehen. Identifizieren Sie die Endpunkte oder Abfragen, die benötigt werden, um Tabellendaten aus beiden Quellen abzurufen. Bestimmen Sie, wie die Vergleichslogik implementiert werden soll, möglicherweise über neue Test-Endpunkte oder direkte Datenbankabfragen, und stellen Sie sicher, dass sie nur im Testmodus ausgeführt wird. Überprüfen Sie die Konsistenz, indem Sie alle Felder in den aufgeführten Tabellen prüfen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go, kafka, postgresql
- Bereich
- backend, databases, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100