CI: merge test.yml into test_new.yml and drop the leftover i386 setup

Aperta Adatta ai principianti
#418 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
62/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, nginx, yaml
Ambito
build-system

Direzione di ricerca

Inizia da .github/workflows/test.yml e .github/workflows/test_new.yml, e dal resolver in .github/scripts/resolve-nginx-ref.sh. Elimina prima la riga sudo dpkg --add-architecture i386, poi aggiungi master alla matrice nginx_version in test_new.yml e verifica che lo script lo accetti. Il lavoro è completo quando la riga i386 è stata rimossa, test_new.yml copre il tip di nginx e i casi PCRE1, e test.yml è stato eliminato. I maintainer devono ancora decidere se mantenere la voce PCRE1 e se la branch protection richiede l'aggiornamento dei nomi dei job.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

Two workflows build and test the connector on every push and pull request: .github/workflows/test.yml ("Quality Assurance", added in dc6a525) and .github/workflows/test_new.yml ("Quality Assurance new", added in 6b37cc3). test_new.yml covers almost everything test.yml does, so CI runs mostly the same jobs twice.

test.yml also still has a leftover from a 32-bit build:

sudo dpkg --add-architecture i386

No i386 package is installed and nothing builds with -m32; both jobs build 64-bit on ubuntu-22.04. The line only adds the i386 package lists to apt-get update. Nothing in this repo (or in libModSecurity's workflows) builds or tests a 32-bit target, so there is no i386 build to deprecate, only this line to remove.

What test.yml covers that test_new.yml doesn't

test.yml test_new.yml
nginx nginx/nginx default branch (unpinned tip) 1.30.x, 1.29.x, 1.28.x via .github/scripts/resolve-nginx-ref.sh
PCRE --without-pcre2 (PCRE1) PCRE2
runner ubuntu-22.04 ubuntu-24.04
Linux/Windows jobs gcc, clang, Windows gcc, clang, Windows

So removing test.yml would lose:

  1. the build against nginx's development tip, which catches upstream API breakage before a release;
  2. the --without-pcre2 build.

Proposal

  1. Remove the dpkg --add-architecture i386 line (can be done right away).
  2. Fold the remaining coverage into test_new.yml: add master to the nginx_version matrix (resolve-nginx-ref.sh already accepts master), and decide whether the PCRE1 build is still worth keeping (as a single matrix entry if so).
  3. Delete test.yml. Optionally rename test_new.yml back to test.yml / "Quality Assurance", keeping in mind that branch protection may reference the job names.
Lingua principale
Perl
Stelle
1.9k
Fork
312
Merge medio
2g 22h
PR unite (30g)
4

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di owasp-modsecurity/ModSecurity-nginx

Tutte le issue di owasp-modsecurity/ModSecurity-nginx

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.