-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
Task
Implement conditional logic in CI post-phase so that gather-extra (~6m) and must-gather (~1m43s) only execute when tests fail. Currently these always run, adding ~8m26s to every PR — even on success.
Background
The post-phase is defined in the openshift/release step registry. Within our repo, save_all_pod_logs() in .ibm/pipelines/utils.sh also runs unconditionally.
Changes needed:
- In .ibm/pipelines/lib/testing.sh, make save_all_pod_logs conditional on test failure
- Write a TESTS_PASSED marker file to $SHARED_DIR on clean pass
- PR to openshift/release adding marker check to gather-extra step
Dependencies and Blockers
- Requires PR to openshift/release repository for step-registry change
Acceptance Criteria
- On test pass: post-phase completes in <1 min (skip gather-extra, keep JUnit XML)
- On test fail: full gather behavior preserved
- TESTS_PASSED marker written to $SHARED_DIR on exit code 0
- No regression in artifact collection for failed runs
- Expected savings: ~7-8 min per successful PR run
- links to