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

オープン 初心者向け
#418 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, nginx, yaml
領域
build-system

調査の方向性

まず .github/workflows/test.yml と .github/workflows/test_new.yml、そして .github/scripts/resolve-nginx-ref.sh のリゾルバーを確認してください。最初に sudo dpkg --add-architecture i386 の行を削除し、次に test_new.yml の nginx_version マトリクスに master を追加して、スクリプトがそれを受け付けるか確認します。i386 の行が削除され、test_new.yml が nginx の tip と PCRE1 のケースをカバーし、test.yml が削除されていれば完了です。PCRE1 のエントリを残すかどうか、またブランチ保護でジョブ名の更新が必要かどうかは、メンテナーが決める必要があります。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Perl
スター
1.9k
フォーク
312
平均マージ
2日 22時間
マージ済み PR(30日)
4

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

owasp-modsecurity/ModSecurity-nginx のほかの issue

owasp-modsecurity/ModSecurity-nginx の issue をすべて見る

似ている issue

Perl の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。