cli: Make example tests smarter
まだ誰も着手していません。
評価
調査の方向性
まず、make examples で使用されるサンプル定義と、.static および .out ファイルを調べます。現在サンプルの出力がどのように比較されているかを確認し、そのうえで、最新の height、block hash、epoch などの動的フィールドを除外しても、残りの出力は引き続きチェックされ、一致するサンプルでは .out ファイルが再生成されないことを検証します。
索引モデルが issue の本文から書いたものです。
説明
We have way too much .static examples meaning the output is not actually tested inside CI. I suggest we get rid of using .static for content that changes often and try to make a "smarter" diff.
For example, recent regression caused that ParaTime names got lost:
$ oasis network status
=== NETWORK STATUS ===
Network: localhost_testnet
Node's ID: 5MsgQwijUlpH9+0Hbyors5jwmx7tTmKMA4c9leV3prI=
Core version: 24.3
==== Consensus ====
Status: syncing
Version: 7.0.0
Chain context: 0b91b8e4e44b2003a7c5e23ddadb5e14ef5345c0ebcb3ddcae07fa2f244cab76
Latest height: 24115729 (2024-11-28 08:29:38 +0100 CET)
Latest block hash: b7a9ad2fe687b9b2887512b03707347b0ec743020a175bc45c09979e3cc90d82
Latest epoch: 40176
Is validator: false
Registration: false
==== ParaTimes ====
Status: waiting for consensus sync
Latest round: 7933058 (2024-11-28 08:29:38 +0100 CET)
Last finalized round: 18446744073709551615
Storage status: initializing
Number of peers: 23
Status: waiting for consensus sync
Latest round: 8930789 (2024-11-28 08:29:38 +0100 CET)
Last finalized round: 18446744073709551615
Storage status: initializing
Number of peers: 22
Status: waiting for consensus sync
Latest round: 9219372 (2024-11-28 08:29:38 +0100 CET)
Last finalized round: 18446744073709551615
Storage status: initializing
Number of peers: 23
We should ignore the latest height, block hash and epoch in this case, but still test everything else.
Perhaps a kind of a regex "mask" per example that should define how the output should look like. So when you run "make examples" and the regex is matched, then don't generate the new .out files.
- 主要言語
- Go
- スター
- 80
- フォーク
- 23
- 平均マージ
- 9時間 43分
- マージ済み PR(30日)
- 3
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
oasisprotocol/cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
oasisprotocol/cli#709 ·
-
oasisprotocol/cli#717 · 担当者 1 名 ·
-
rofl
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
oasisprotocol/cli#716 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
oasisprotocol/cli#707 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
oasisprotocol/cli#704 ·
oasisprotocol/cli の issue をすべて見る
似ている issue
-
bug github_actions
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
registrystack/registry-stack#1393 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
JakeChampion/lang#10213 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
oasisprotocol/oasis-sdk#2523 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100