Repository navigation
ci(v2): update Ubuntu coverage, Lua selection and GitHub Actions - #3729
Easton97-Jens wants to merge 4 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
Hi @Easton97-Jens, thanks for this PR - could you take a look at the CI tests result, especially to this one? Thanks! |
|
Thanks for pointing this out. I checked the logs: 315 of 316 regression tests passed. The “drop in phase:1” case fails because the test harness does not detect Apache’s startup message within 60 seconds, before sending the actual test request. The same Ubuntu 22.04 regression job passed in both previous fork runs, and the Ubuntu 24.04 and 26.04 jobs passed in this PR. This suggests an intermittent startup issue, although the exact cause is not yet confirmed. Could you rerun the failed job? If it fails again, I suggest capturing tests/regression/server_root/logs/error.log in CI so we can investigate the underlying Apache error. |
|



what
The v2 Linux workflow currently lists architecture and compiler matrix axes without applying them to the build. As a result, jobs labelled x32 or Clang can run the same default 64-bit GCC build. This PR makes those axes effective and updates the supported Ubuntu combinations.
Ubuntu build and unit-test coverage
The existing
x32job label denotes 32-bit i386, not the x86-64 x32 ABI.CCandCXXfrom the compiler matrix.-m32to compilation and linking for i386.PKG_CONFIG_PATHand restrictPKG_CONFIG_LIBDIRto the target architecture and architecture-independent metadata.mod_security2.so, so an incorrectly labelled architecture job fails explicitly.Lua selection
Use the v3 approach to discover the newest available
libluaX.Y-devpackage withapt-cache, version-sort the candidates, and install the selected package.This replaces the fixed Lua 5.1 package in the Ubuntu jobs and the fixed Lua 5.3 package in the Debian cppcheck job. The same selection also applies to regression jobs, and the development package is installed for the selected target architecture.
Regression tests and static analysis
./autogen.sh, Apache integration checks,make test,make test-regressionandmake check-static.Actions and build setup
actions/checkoutto v7.0.1, pinned to3d3c42e5aac5ba805825da76410c181273ba90b1.cb2e3f949c41b7818628f35f8484a9b0acf90cf9.-Wformatalongside the existing-Werror=format-security, allowing the compiler checks to run with that warning enabled.unique_idmodule explicitly before the integration smoke test; ModSecurity requires it for request processing.fail-fast: false.why
This provides actual compiler and architecture coverage while retaining 32-bit compatibility testing on Ubuntu 22.04 and adding 64-bit coverage for newer Ubuntu versions.
Architecture-specific Apache packages are necessary because compiler flags alone cannot make a 64-bit Apache load a 32-bit module. Restricting dependency discovery and checking the resulting ELF files also prevents host libraries from silently undermining the intended coverage.
Dynamic Lua selection follows the v3 workflow and exercises the newest distribution-provided Lua supported by the current v2 source. Explicit PCRE1 exclusions avoid package-installation failures on Ubuntu 26.04 while keeping PCRE1 coverage on Ubuntu 22.04 and 24.04.
Review and operational considerations
.github/workflows/ci.ymlchanges.validation
Completed
git diff --check.unique_idenabled on both 64-bit containers. Lua 5.4 was selected on Ubuntu 24.04 and Lua 5.5 on Ubuntu 26.04.55913ebb. The final commit adds explicit activation of Apacheunique_id.Limits and pending checks
4fbfc30dis still queued at PR creation; this description does not claim the complete workflow is green.localhostresolution caused Apache bind failures; after correcting only the container configuration, focused regression checks passed.references