0chain / 0chain/system_test

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

未關閉
#1,069 0 則留言 0 個 reaction 已指派 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 摘要。