Commit c029f80
committed
ci: gzip junit results in SHARED_DIR to avoid Secret size limit
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: OpenCode1 parent 5c7ffe3 commit c029f80
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
112 | 122 | | |
113 | 123 | | |
114 | 124 | | |
| |||
0 commit comments