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

Abierto Apto para principiantes
#418 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
62/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, nginx, yaml
Área
build-system

Línea de trabajo

Empieza por .github/workflows/test.yml y .github/workflows/test_new.yml, y por el resolutor en .github/scripts/resolve-nginx-ref.sh. Primero elimina la línea sudo dpkg --add-architecture i386, luego añade master a la matriz nginx_version en test_new.yml y comprueba que el script lo acepta. Está terminado cuando se haya eliminado la línea i386, test_new.yml cubra el tip de nginx y los casos de PCRE1, y se haya eliminado test.yml. Los mantenedores todavía tienen que decidir si mantienen la entrada de PCRE1 y si la protección de ramas necesita que se actualicen los nombres de los jobs.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Perl
Estrellas
1.9k
Forks
312
Merge medio
2 d 22 h
PR fusionados (30 d)
4

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de owasp-modsecurity/ModSecurity-nginx

Todos los issues de owasp-modsecurity/ModSecurity-nginx

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.