spdx-tools: latest tag is published without any tests
Maintainer antworten meist innerhalb von 2 Tagen
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- docker, json
- Bereich
- devops, documentation, testing
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- HCL
- Sterne
- 31
- Forks
- 25
- Ø Merge
- 2 T. 22 Std.
- Gemergte PRs (30 T.)
- 19
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus wolfi-dev/tools
-
README documents removed melange/wolfictl images and an sdk welcome prompt that no longer existsEvtl. vergeben @officialasishkumar hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Some Alpine-based packages must be locked when building with terraformEvtl. vergeben @cpanato hat das vor 27 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in wolfi-dev/tools
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
StellarCanary/ProtocolCanary-Action#698 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Infisical/infisical#9738 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Mend: dependency security vulnerability untriaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
opensearch-project/OpenSearch-Dashboards#13241 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
shakurJJ/chainsettle-frontend#156 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Homebrew/homebrew-cask#304299 ·
Maintainer antworten meist innerhalb von 1 Tag