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

Đang mở Phù hợp với người mới
#418 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, nginx, yaml
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu từ .github/workflows/test.yml và .github/workflows/test_new.yml, cùng với bộ phân giải tại .github/scripts/resolve-nginx-ref.sh. Trước tiên xóa dòng sudo dpkg --add-architecture i386, sau đó thêm master vào ma trận nginx_version trong test_new.yml và kiểm tra xem script có chấp nhận giá trị này không. Công việc hoàn tất khi dòng i386 đã được xóa, test_new.yml bao phủ nginx tip và các trường hợp PCRE1, và test.yml đã được xóa. Maintainer vẫn cần quyết định có giữ mục PCRE1 hay không và branch protection có cần cập nhật tên job hay không.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Perl
Star
1.9k
Fork
312
Merge trung bình
2 ngày 22 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của owasp-modsecurity/ModSecurity-nginx

Tất cả issue của owasp-modsecurity/ModSecurity-nginx

Issue tương tự

Thêm issue về Perl

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.