mirror of
https://github.com/rsyslog/rsyslog.git
synced 2026-08-24 19:24:14 +02:00
Why: The EL10 daily package build can fail inside Mock, but the failure artifact discarded the helper and Mock logs needed to diagnose it. Impact: A future EL10 package-build failure carries its full diagnostic output. Before/After: Before, the generic collector overwrote the package failure details. After, package diagnostics remain in phase-specific evidence storage. Technical Overview: Capture the outer container output with tee in the phase evidence log. Preserve the Docker command status with PIPESTATUS before restoring errexit. Append the helper log and Mock result logs only when the build fails. Guard optional failure paths so absent files add context rather than masking its original exit status. Related: https://github.com/rsyslog/rsyslog/issues/7485 With the help of AI-Agents: Codex