Commit 39e45d4
rhdh: gzip junit results in SHARED_DIR and align overlays resource limits (openshift#81313)
* rhdh: gzip junit results in SHARED_DIR to avoid Secret size limit
The junit-results.xml on the overlays main branch exceeds the Kubernetes
Secret 1 MiB size limit, causing the SHARED_DIR Secret update to fail
and leaving the send-data-router step with no junit file to report.
Fix by gzipping junit XML before writing to SHARED_DIR (XML compresses
~10-15x) and decompressing in the data-router steps to ARTIFACT_DIR
before processing and sending to Data Router.
Changes:
- overlays ocp-helm: gzip junit + 800 KB size check before SHARED_DIR
- overlays send-data-router: decompress .gz to ARTIFACT_DIR, fall back
to plain XML for backward compat
- rhdh send-data-router: same decompression + fallback (preventive,
activated by a follow-up PR in redhat-developer/rhdh)
Assisted-by: OpenCode
* rhdh overlays: align ocp-helm resource requests/limits with rhdh
Match the RHDH ocp-helm step resource specs:
- CPU: 1 request / 10 limit (was 2 / 4)
- Memory: 1Gi request / 5Gi limit (was 6Gi / 8Gi)
Assisted-by: OpenCode
* rhdh: harden data-router scripts error handling
- Remove set +o nounset (all env vars have defaults in ref YAML)
- Add explicit exit 0 to guarantee the step never fails the CI job
- Change ERROR to WARNING for missing junit (expected in overflow case)
- Fix unbound GIT_PR_NUMBER and TAG_NAME references in rhdh data-router
- Add comments explaining the set +o errexit contract
Assisted-by: OpenCode1 parent dc507e3 commit 39e45d4
4 files changed
Lines changed: 75 additions & 23 deletions
File tree
- ci-operator/step-registry/redhat-developer
- rhdh-plugin-export-overlays
- ocp/helm
- send/data-router
- rhdh/send/data-router
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | | - | |
211 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
212 | 221 | | |
213 | 222 | | |
214 | 223 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | | - | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
92 | 105 | | |
93 | 106 | | |
94 | 107 | | |
95 | 108 | | |
96 | 109 | | |
97 | 110 | | |
98 | 111 | | |
99 | | - | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
| |||
253 | 265 | | |
254 | 266 | | |
255 | 267 | | |
256 | | - | |
257 | | - | |
258 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
259 | 272 | | |
260 | 273 | | |
261 | 274 | | |
| |||
265 | 278 | | |
266 | 279 | | |
267 | 280 | | |
268 | | - | |
| 281 | + | |
269 | 282 | | |
270 | 283 | | |
271 | 284 | | |
| |||
320 | 333 | | |
321 | 334 | | |
322 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
Lines changed: 36 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | | - | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
100 | 124 | | |
101 | 125 | | |
102 | 126 | | |
| |||
204 | 228 | | |
205 | 229 | | |
206 | 230 | | |
207 | | - | |
| 231 | + | |
208 | 232 | | |
209 | | - | |
| 233 | + | |
210 | 234 | | |
211 | 235 | | |
212 | 236 | | |
| |||
270 | 294 | | |
271 | 295 | | |
272 | 296 | | |
273 | | - | |
| 297 | + | |
274 | 298 | | |
275 | | - | |
| 299 | + | |
276 | 300 | | |
277 | 301 | | |
278 | 302 | | |
279 | 303 | | |
280 | 304 | | |
281 | 305 | | |
282 | 306 | | |
283 | | - | |
284 | | - | |
| 307 | + | |
| 308 | + | |
285 | 309 | | |
286 | 310 | | |
287 | 311 | | |
288 | 312 | | |
289 | 313 | | |
290 | 314 | | |
291 | | - | |
| 315 | + | |
292 | 316 | | |
293 | 317 | | |
294 | 318 | | |
| |||
349 | 373 | | |
350 | 374 | | |
351 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
0 commit comments