spdx-tools: latest tag is published without any tests
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- docker, json
- 領域
- devops, documentation, testing
調査の方向性
Compare the other images' test directories and tag dependencies with images/spdx-tools/main.tf. Add the smoke checks described for Version, nonroot execution, Verify, and Convert, and document the image in the top-level README. Done when the tests gate the latest tag and the README covers the image; pull request #463 is already open against this work.
索引モデルが issue の本文から書いたものです。
説明
images/spdx-tools is the only image in this repo whose latest tag isn't gated on a test. Every other module (alpine-base, apko, busybox, gcc-musl, git, musl-dynamic, sdk, static) runs oci_exec_test checks against the freshly built digest and makes its oci_tag resource depends_on them. spdx-tools/main.tf just tags whatever apko produced:
resource "oci_tag" "version-tags" {
digest_ref = module.latest.image_ref
tag = "latest"
}
So if the image builds but doesn't work, for example because of a JRE packaging change, a broken spdx-tools-java launcher, or a nonroot permission problem, the nightly release job still moves ghcr.io/wolfi-dev/spdx-tools:latest to it, and nobody notices until a user hits it. Presubmit doesn't catch it either, because there's nothing to run.
The image also isn't mentioned in the top-level README, and it has no README of its own, unlike the other images.
Proposed fix:
- add
images/spdx-tools/testswith smoke tests that checkVersion, the nonroot user,Verifyon a valid SPDX JSON document, a JSON to tag-valueConvert(and verifying the result), and thatVerifyrejects an invalid document - make the
latesttag depend on those tests, the same way the other images do - document the image in the README
- 主要言語
- HCL
- スター
- 31
- フォーク
- 25
- 平均マージ
- 2日 22時間
- マージ済み PR(30日)
- 19
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wolfi-dev/tools のほかの issue
-
README documents removed melange/wolfictl images and an sdk welcome prompt that no longer exists対応中かも @officialasishkumar が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
Some Alpine-based packages must be locked when building with terraform対応中かも @cpanato が 27 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
メンテナーはふだん 2 日以内に返信
wolfi-dev/tools の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
StellarCanary/ProtocolCanary-Action#698 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Infisical/infisical#9738 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
opensearch-project/OpenSearch-Dashboards#13241 ·
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
shakurJJ/chainsettle-frontend#156 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Homebrew/homebrew-cask#304299 ·
メンテナーはふだん 1 日以内に返信