spdx-tools: latest tag is published without any tests

Đang mở
#462 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@officialasishkumar đang làm issue này rồi.

Từ ngày 19/11/2026.

  • #463 của @officialasishkumar — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker, json
Lĩnh vực
devops, documentation, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
HCL
Star
31
Fork
25
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
19

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wolfi-dev/tools

Tất cả issue của wolfi-dev/tools

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.