No e2e coverage for the strong approval ceremony on a destructive job
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 78/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bash, go
- 領域
- cli, testing-qa
調査の方向性
e2e/testdata/postgres/ob.yml.tmpl:37-42 と、e2e/server_test.go:397-400 にある既存のフローから始めます。現在の strong-approval ヘルパーを理解するために、e2e/apps/one-app-one-host.sh:54-63 と e2e/server_harness_test.go:385-400 を読みます。破壊的な fixture のカバレッジを追加して e2e スイートを実行します。誤ったトークンが拒否され、ジョブ名が受け入れられ、サマリーにジョブ名が含まれていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The problem
The strong approval ceremony — the typed confirmation guarding a destructive
or migration job — has no end-to-end coverage.
The only job run in the e2e suite is chore, which declares
data_effect: none (e2e/testdata/postgres/ob.yml.tmpl:37-42), driven with
y\n (e2e/server_test.go:397-400). That is the one-time class, not the
strong one. The unit test added in #171 covers ob approve --plan, and nothing
covers ob job run --plan or the inline ob job run <id> prompt against a
real binary.
Two e2e helpers still encode the pre-#171 rule and describe it as general:
e2e/apps/one-app-one-host.sh:54-63—approval_answersupplies the release
ID when the class is strong.e2e/server_harness_test.go:385-400—releaseIDReextracts a release ID to
feed the prompt.
Both are reached only from deploy helpers today, so nothing is broken. But a
destructive job added to the fixture later would fail confusingly against a
helper that looks like it handles the strong class in general.
Proposed change
Add a destructive manual job to an e2e fixture and drive the strong ceremony
against the real binary: the wrong token refused, the job name accepted, and
the summary naming the job. Then make the two helpers say which class they
handle, or teach them the job case.
Scope and safety
Test-only. No product change.
Found while auditing #171.
- 主要言語
- Go
- スター
- 3
- フォーク
- 0
- 平均マージ
- 2時間 44分
- マージ済み PR(30日)
- 49
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
labstack/onebox のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
labstack/onebox の 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