Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-12291

[QE] Implement conditional gather-extra and must-gather — skip on success

    • RHDH Plugins 3287

      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:

      1. In .ibm/pipelines/lib/testing.sh, make save_all_pod_logs conditional on test failure
      2. Write a TESTS_PASSED marker file to $SHARED_DIR on clean pass
      3. 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

              gustavolira Gustavo Lira Silva
              gustavolira Gustavo Lira Silva
              RHDH Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: