spdx-tools: latest tag is published without any tests
I maintainer di solito rispondono entro 2 giorni
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- docker, json
- Ambito
- devops, documentation, testing
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- HCL
- Stelle
- 31
- Fork
- 25
- Merge medio
- 2g 22h
- PR unite (30g)
- 19
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wolfi-dev/tools
-
README documents removed melange/wolfictl images and an sdk welcome prompt that no longer existsForse già presa @officialasishkumar l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Some Alpine-based packages must be locked when building with terraformForse già presa @cpanato l’ha presa 27 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di wolfi-dev/tools
Issue simili
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
opensearch-project/OpenSearch-Dashboards#13241 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Homebrew/homebrew-cask#304299 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
SocialGouv/iterion#3413 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
Trust-Analysis/Tokenized-Fractional-#1115 ·
I maintainer di solito rispondono entro 2 giorni
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
getcommunityone/open-navigator#622 ·
I maintainer di solito rispondono entro 1 giorno