fix: correction bugs + tests + migration el7 vers el10

Correctifs de bugs critiques:
- Overflow entier dans le calcul du timestamp (nanoseconds)
- Validation des composantes temporelles dans format_iso8601
- Race condition mutex: échec dur pour MPM threadés (worker/event)
- Rejet des espaces en tête dans parse_int_strict

Nouveaux tests unitaires (38 ajoutés):
- Overflow timestamp, limites ISO8601, format fixe 20 chars
- Limite de taille JSON 64KB
- Détection headers sensibles (blacklist)
- Validation parse_int_strict
- dynbuf NULL handling et strlen mode

Migration packaging:
- Suppression CentOS 7 (EOL)
- Ajout AlmaLinux 10 (el10)
- RPMs supportés: el8, el9, el10

Mise à jour CI/CD et documentation:
- .gitlab-ci.yml: jobs verify pour el8/el9/el10
- architecture.yml: OS supportés à jour
- 70/70 tests pass

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Jacquin Antoine
2026-02-28 21:02:05 +01:00
parent 59856a7ed7
commit d0ca0a7e4c
8 changed files with 624 additions and 117 deletions

View File

@ -83,10 +83,10 @@ debug: clean all
# Packaging (DEB + RPM with Docker + fpm)
# Dockerfile.package builds all packages in a single multi-stage build:
# - 1 DEB package (Debian/Ubuntu)
# - 3 RPM packages (el7, el8, el9 for RHEL/CentOS/Rocky compatibility)
# - 3 RPM packages (el8, el9, el10 for RHEL/Rocky/AlmaLinux compatibility)
# =============================================================================
## package: Build all packages (deb + rpm for el7, el8, el9)
## package: Build all packages (deb + rpm for el8, el9, el10)
package:
mkdir -p $(DIST_DIR)/deb $(DIST_DIR)/rpm
docker build --target output -t mod_reqin_log:packager \
@ -98,14 +98,14 @@ package:
@echo "Packages created:"
@echo " DEB:"
@ls -la $(DIST_DIR)/deb/
@echo " RPM (el7, el8, el9):"
@echo " RPM (el8, el9, el10):"
@ls -la $(DIST_DIR)/rpm/
## package-deb: Build DEB package (built together with RPMs in Dockerfile.package)
package-deb: package
@echo "DEB package built together with RPMs in Dockerfile.package"
## package-rpm: Build RPM packages (el7, el8, el9 built together in Dockerfile.package)
## package-rpm: Build RPM packages (el8, el9, el10 built together in Dockerfile.package)
package-rpm: package
@echo "RPM packages built together with DEB in Dockerfile.package"
@ -119,14 +119,6 @@ test-package-rpm: package
docker run --rm -v $(PWD)/$(DIST_DIR)/rpm:/packages:ro rockylinux:9 \
sh -c "dnf install -y /packages/*.el9.*.rpm && echo 'RPM el9 install OK'"
## test-package-rpm-el7: Test el7 RPM installation
test-package-rpm-el7: package
docker run --rm -v $(PWD)/$(DIST_DIR)/rpm:/packages:ro centos:7 \
sh -c "sed -i 's/mirror.centos.org/vault.centos.org/g' /etc/yum.repos.d/*.repo && \
sed -i 's/#baseurl/baseurl/g' /etc/yum.repos.d/*.repo && \
sed -i 's/metalink/#metalink/g' /etc/yum.repos.d/*.repo && \
yum install -y /packages/*.el7.*.rpm && echo 'RPM el7 install OK'"
## test-package-rpm-el8: Test el8 RPM installation
test-package-rpm-el8: package
docker run --rm -v $(PWD)/$(DIST_DIR)/rpm:/packages:ro rockylinux:8 \
@ -137,8 +129,13 @@ test-package-rpm-el9: package
docker run --rm -v $(PWD)/$(DIST_DIR)/rpm:/packages:ro rockylinux:9 \
sh -c "dnf install -y /packages/*.el9.*.rpm && echo 'RPM el9 install OK'"
## test-package-rpm-el10: Test el10 RPM installation
test-package-rpm-el10: package
docker run --rm -v $(PWD)/$(DIST_DIR)/rpm:/packages:ro almalinux:10 \
sh -c "dnf install -y /packages/*.el10.*.rpm && echo 'RPM el10 install OK'"
## test-package: Test all packages installation
test-package: test-package-deb test-package-rpm-el7 test-package-rpm-el8 test-package-rpm-el9
test-package: test-package-deb test-package-rpm-el8 test-package-rpm-el9 test-package-rpm-el10
# Help target
help:
@ -151,7 +148,7 @@ help:
@echo " clean - Remove build artifacts"
@echo " test - Run unit tests"
@echo " debug - Build with debug symbols"
@echo " package - Build all packages (deb + rpm for el7, el8, el9)"
@echo " package - Build all packages (deb + rpm for el8, el9, el10)"
@echo " package-deb - Build DEB package"
@echo " package-rpm - Build RPM packages"
@echo " test-package - Test package installation"