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 摘要。