0chain / 0chain/system_test

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

オープン
#1,069 コメント 0 件 リアクション 0 件 担当者 1 名 @shohan2001 が担当を希望しています GitHub で見る
主要言語
Go
スター
8
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

この issue は、システムテスト後に 13 の移行済みテーブル(blobbers、validators など)について、0chain と 0box のテーブル間でデータを比較することを含みます。まず、既存のシステムテストコードベースを調べて、現在のテスト構造とデータベース設定を理解します。両方のソースからテーブルデータを取得するために必要なエンドポイントまたはクエリを特定します。新しいテストエンドポイントまたは直接のデータベースクエリを介して比較ロジックを実装する方法を決定し、テストモードでのみ実行されるようにします。リストされたテーブルのすべてのフィールドをチェックして一貫性を確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
go, kafka, postgresql
領域
backend, databases, testing
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。