Commit 210de45
committed
fix(gencloud-test): use steps.run_tests.outcome instead of job.status
job.status does not reflect failures of steps inside the same composite action - the parent job's status only flips after the composite returns, so inside the composite an if: always() follow-up step sees job.status == "success" even when an earlier composite step failed. The job summary and Mattermost message therefore would report "Test: passed" for runs whose test step had actually failed.
Tag the "Run image tests" step with id: run_tests and have the summary / Mattermost steps read steps.run_tests.outcome instead. When an earlier composite step fails (install, KVM probe, etc.) run_tests is skipped and its outcome is "skipped" - correctly treated as "not success" by the if/ternary.1 parent 1c397c1 commit 210de45
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
295 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
296 | 303 | | |
297 | 304 | | |
298 | 305 | | |
| |||
308 | 315 | | |
309 | 316 | | |
310 | 317 | | |
311 | | - | |
| 318 | + | |
312 | 319 | | |
313 | 320 | | |
314 | 321 | | |
| |||
346 | 353 | | |
347 | 354 | | |
348 | 355 | | |
349 | | - | |
| 356 | + | |
0 commit comments