spdx-tools: latest tag is published without any tests

オープン
#462 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

@officialasishkumar がすでに取り組んでいます。

2026年11月19日 から。

  • #463 @officialasishkumar による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
docker, json

調査の方向性

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/tests with smoke tests that check Version, the nonroot user, Verify on a valid SPDX JSON document, a JSON to tag-value Convert (and verifying the result), and that Verify rejects an invalid document
  • make the latest tag 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wolfi-dev/tools のほかの issue

wolfi-dev/tools の issue をすべて見る

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。