Enhancement: Extend CI workflow to test library detection with manually compiled dependencies
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp, github-actions, linux
- Lĩnh vực
- build-system, ci-cd, devops
Hướng nghiên cứu
Bắt đầu bằng việc xem xét workflow GitHub Actions hiện tại và script configure, sau đó sử dụng các issue #3404 và #3318 để hiểu các trường hợp phát hiện thư viện. Thêm các job bao quát YAJL, LMDB và PCRE2 được biên dịch thủ công trên các bản phân phối và đường dẫn cài đặt được liệt kê; hoàn thành có nghĩa là script configure phát hiện thành công từng dependency trong các kịch bản đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
This issue is a follow-up to #3404, where we identified that the ModSecurity configure script fails to detect YAJL, LMDB, and PCRE2 libraries when they are installed in lib64 directories or other non-standard paths.
While the library detection fix has been submitted via PR, @airween suggested an important enhancement to extend the CI workflow to better test these scenarios.
Current CI Limitations
The current CI workflow primarily tests library detection using OS package managers, which typically install libraries in standard system paths. However, many users compile libraries manually and install them in custom locations, particularly:
/usr/local/[library]/lib64/directories- Custom prefix paths
- Container environments with non-standard library layouts
Proposed Enhancement
Add new CI jobs that test the configure script's library detection capabilities with manually compiled dependencies, specifically:
1. Manual Library Compilation Testing
- Compile YAJL, LMDB, and PCRE2 from source
- Install them in various custom paths (lib64, custom prefixes)
- Verify configure script correctly detects these libraries
2. Multi-Distribution Testing
Test across various Linux distributions that commonly use lib64:
- Alma Linux 9, 10
- CentOS Stream 9, 10
- Oracle Linux 9, 10
- Rocky Linux 9, 10
- Ubuntu 22.04, 24.04
- Debian 12, 13
- OpenSUSE
- Fedora
3. Container Environment Testing
- Test in containerized environments where libraries are often manually compiled
- Verify compatibility with different base images
Benefits
- Improved Reliability: Catch library detection issues before they reach users
- Better Coverage: Test real-world scenarios where users compile dependencies manually
- Cross-Platform Validation: Ensure compatibility across diverse Linux distributions
- Regression Prevention: Prevent future breakage of library detection logic
Implementation Approach
- Create new GitHub Actions workflow jobs
- Add matrix builds for different distributions and library installation methods
- Implement automated testing scripts for manual library compilation
- Add validation steps to ensure configure script works correctly
Related Issues
- #3404 - Original lib64 detection issue
- #3318 - Similar PCRE2 detection problems
Note: This enhancement would significantly improve the project's build system reliability and help prevent similar issues in the future. I'm ready to contribute to implementing these CI improvements.
- Ngôn ngữ chính
- C++
- Star
- 9.8k
- Fork
- 1.8k
- Merge trung bình
- 2 giờ 46 phút
- Pull request đã merge (30 ngày)
- 1
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của owasp-modsecurity/ModSecurity
-
2.x Platform - IIS
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
owasp-modsecurity/ModSecurity#3623 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
2.x Platform - IIS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
owasp-modsecurity/ModSecurity#3621 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
2.x Platform - IIS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
owasp-modsecurity/ModSecurity#3619 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
2.x Platform - IIS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
owasp-modsecurity/ModSecurity#3612 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
3.x
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
owasp-modsecurity/ModSecurity#3580 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của owasp-modsecurity/ModSecurity
Issue tương tự
-
Unconfirmed bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
luanti-org/luanti#17605 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area: config area: firmware priority: P2 - medium size: S type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Mizithra/ActiveTerrain#16 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
grumpycoders/pcsx-redux#2171 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
bytedance/trae-agent#524 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày