Test generici
I test generici sono test che non verificano solo componenti specifici (ad esempio "dnf" o "kernel"), ma possono essere applicati in genere a tutti gli artefatti di un determinato tipo. Un esempio di tale test potrebbe essere un test eseguibile su tutte le build RPM di un aggiornamento di Bodhi.
Generic Tests for Bodhi updates
Fedora CI currently provides four generic tests that run on Bodhi updates for Fedora Rawhide. Some of them run on updates for other releases as well.
rpmdeplint
rpmdeplint è un test generico che cerca di identificare i problemi nei pacchetti RPM nel contesto del loro grafo delle dipendenze.
There are three different checks that the test performs. There is also a fourth check, check-repoclosure, but it is currently disabled as it is slow and inaccurate, and the rmdepcheck test does a better job.
check-sat
Questo controllo verifica se tutte le dipendenze di runtime dei pacchetti RPM specificati verrebbero soddisfatte se i pacchetti venissero caricati nel repository indicato (come Rawhide).
check-conflicts
Questo strumento verifica la presenza di conflitti di file non dichiarati nei pacchetti RPM specificati: ovvero, quando uno dei pacchetti contiene un file presente anche in un altro pacchetto.
Questo comando non segnalerà un file come in conflitto tra due pacchetti se:
-
esiste un conflitto RPM esplicito tra i due pacchetti; oppure
-
Il checksum del file, i permessi, il proprietario e il gruppo sono identici in entrambi i pacchetti (RPM consente a entrambi i pacchetti di essere proprietari del file in questo caso); oppure
-
Il colore del file è diverso tra i due pacchetti (RPM risolverà silenziosamente il conflitto a favore del file a 64 bit).
|
A volte i file possono essere di proprietà di migliaia di pacchetti diversi. Per verificare correttamente che non ci siano conflitti di file, |
check-upgrade
Verifica che nei repository non siano presenti pacchetti che potrebbero aggiornare o rendere obsoleti i pacchetti specificati.
Se questo controllo fallisce, significa che il pacchetto in fase di test non verrà mai installato (poiché il gestore di pacchetti sceglierà sempre il pacchetto più recente o obsoleto dai repository), il che non è auspicabile, supponendo che il pacchetto sia destinato a un aggiornamento.
rpminspect
Strumenti di analisi delle deviazioni di compilazione RPM. rpminspect esamina l’output di una compilazione RPM (ad esempio, l’output di una compilazione Koji) e analizza il contenuto degli artefatti di compilazione per segnalare:
-
Conformità alla policy
-
Modifiche rispetto alla versione precedente
-
la build precedente è l’ultima build presente nel repository stabile (in Rawhide, è semplicemente la build precedente)
-
-
Correttezza generale e migliori prassi
Il comando rpminspect esegue più di 30 controlli diversi sui pacchetti. Per visualizzarli tutti, con una descrizione dettagliata, esegui il comando rpminspect -v -l.
This test runs on updates for all Fedora releases including ELN, but not on EPEL updates.
installabilità
Si tratta di un test generico che tenta di eseguire le seguenti operazioni sui pacchetti specificati:
-
dnf install
-
dnf remove
-
dnf update
-
dnf downgrade
Tutti i problemi vengono registrati e segnalati.
This test runs on updates for all Fedora releases, including ELN and EPEL.
rmdepcheck
This test checks whether the update would cause dependency issues in any other package if it were to be accepted. It also checks whether the dependencies of the packages in the update themselves are OK (this is mostly duplicated with rpmdeplint).
This test runs on updates for all Fedora releases, including ELN and EPEL.
Generic Tests for dist-git pull requests
Fedora CI also provides a set of generic tests that are run by Packit CI on dist-git pull requests. This set includes the rpminspect, installability and rmdepcheck tests listed above, but not the rpmdeplint test. It also includes three additional tests not run on Bodhi updates.
fedora-review
This test runs the fedora-review review helper utility on the package. It can be helpful in spotting cases where the package inadvertently moves away from compliance with the guidelines checked during the review process.
license-validate
This test runs license-validate on the pull request. license-validate checks that the License tag is in the expected SPDX format and contains only allowed licenses.
rpmlint
This test runs the rpmlint package linter on the pull request.
Want to help? Learn how to contribute to Fedora Docs ›