chore(ci): gzip junit results in SHARED_DIR to avoid Secret size limit#5042
Merged
openshift-merge-bot[bot] merged 1 commit intoJul 2, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5042 +/- ##
==========================================
- Coverage 55.39% 54.77% -0.62%
==========================================
Files 122 110 -12
Lines 2365 2147 -218
Branches 567 542 -25
==========================================
- Hits 1310 1176 -134
+ Misses 1048 969 -79
+ Partials 7 2 -5
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Member
Author
|
/test e2e-ocp-helm |
Gzip junit XML before writing to SHARED_DIR to stay under the Kubernetes Secret 1 MiB size limit. Raw junit XML can exceed this when coverage <property> tags and many test cases are present. XML compresses ~10-15x with gzip, keeping even large files well under the limit. Also adds a safety check that removes the gzipped file if it still exceeds 800 KB after compression, and validates the source file exists before attempting the copy. The data-router step in openshift/release already handles both .gz and plain .xml formats (openshift/release#81313). Assisted-by: OpenCode
45c9934 to
c029f80
Compare
|
rm3l
approved these changes
Jul 2, 2026
d8b493f
into
redhat-developer:main
22 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Follow-up to openshift/release#81313 which updated the data-router step to handle decompression.
Problem: The Kubernetes Secret backing
SHARED_DIRhas a 1 MiB size limit. Raw junit XML can exceed this when coverage<property>tags and many test cases are present.Solution: Gzip junit XML before writing to
SHARED_DIR. XML compresses ~10-15x with gzip, keeping even large files well under the limit. Also adds:The data-router step in openshift/release already handles both
.gzand plain.xmlformats, so there is no ordering dependency once that PR merges.Works as expected. See job step logs:
Jira: https://redhat.atlassian.net/browse/RHDHBUGS-3428