Skip to content

E2E: Rerun Failswitch from failure point failing in nightly #2632

Description

@subhashkhileri

Classification

fix_category: product_bug

Failed Tests

Test Error
Rerun Failswitch from failure point expect(locator).toBeVisible() failed — getByText('Completed', { exact: true }) not found after 120s

Root Cause

The SonataFlow "rerun from failure point" feature does not re-read environment variables from the pod. The test:

  1. Patches the failswitch SonataFlow CR's HTTPBIN env var to https://foobar.org/ (an invalid URL)
  2. Runs the workflow → it fails as expected (SSL cert mismatch on httpbinGet step)
  3. Patches HTTPBIN back to https://httpbin.org/ and waits for the pod to pick it up
  4. Clicks "Run again → From failure point"
  5. Expects the workflow to complete

But the rerun still fails with: javax.net.ssl.SSLPeerUnverifiedException - Certificate for <foobar.org> doesn't match any of the subject alternative names: [www.foobar.org]

The "from failure point" rerun replays the workflow using the process context saved at the time of the original failure, which still contains the old foobar.org URL. The updated env var is not picked up because the workflow engine restores saved process variables rather than re-reading from the environment.

This is a bug in the orchestrator/SonataFlow "rerun from failure point" feature — when a workflow is retried from the failure point, environment variables that changed since the original execution should be re-evaluated.

Remediation

The orchestrator plugin's "rerun from failure point" implementation needs to re-resolve env-var-backed workflow inputs when retrying, rather than using the cached process context from the failed execution. This fix belongs in the orchestrator plugin source code, not in this repo.

Artifacts

https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-redhat-developer-rhdh-plugin-export-overlays-main-e2e-ocp-helm-nightly/2067457860433874944

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions