Skip to content

[wip]OTA-1813: Extend alert risk e2e#1371

Open
hongkailiu wants to merge 1 commit intoopenshift:mainfrom
hongkailiu:e2e-ota-1813
Open

[wip]OTA-1813: Extend alert risk e2e#1371
hongkailiu wants to merge 1 commit intoopenshift:mainfrom
hongkailiu:e2e-ota-1813

Conversation

@hongkailiu
Copy link
Copy Markdown
Member

There was an issue of duplicated conditional risks when

  • a risk whose PromQL cannot be evaluated, and

  • the risk from alert was accepted.

The issue is fixed by cvo#1367 and this pull is to extend the current alert risk e2e to cover the case.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 10, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Excluded labels (none allowed) (1)
  • do-not-merge/work-in-progress

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 2a98d22a-8c2d-435d-9ac5-ea4881f539e1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 10, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hongkailiu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 10, 2026
@hongkailiu hongkailiu changed the title [wip]Extend alert risk e2e [wip]OTA-1813: Extend alert risk e2e Apr 10, 2026
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 10, 2026
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

openshift-ci-robot commented Apr 10, 2026

@hongkailiu: This pull request references OTA-1813 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

There was an issue of duplicated conditional risks when

  • a risk whose PromQL cannot be evaluated, and

  • the risk from alert was accepted.

The issue is fixed by cvo#1367 and this pull is to extend the current alert risk e2e to cover the case.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@hongkailiu hongkailiu force-pushed the e2e-ota-1813 branch 4 times, most recently from abe6812 to 1a42691 Compare April 10, 2026 19:45
g.By("Using fauxinnati as the upstream and its simple channel")
cv.Spec.Upstream = util.FauxinnatiAPIURL
cv.Spec.Channel = "simple"
cv.Spec.Channel = "OTA-1813"
Copy link
Copy Markdown
Member Author

@hongkailiu hongkailiu Apr 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The channel will return something like this:

$ curl "https://fauxinnati-fauxinnati.apps.ota-stage.q2z4.p1.openshiftapps.com/api/upgrades_info/graph?channel=OTA-1813&version=4.22.0-0.nightly-2026-04-06-051707&arch=amd64"
{
  "nodes": [
    {
      "version": "4.22.0-0.nightly-2026-04-06-051707",
      "payload": "quay.io/openshift-release-dev/ocp-release@sha256:00000000000000000000000000000000000000000000000000000000003d5ef0",
      "metadata": {
        "io.openshift.upgrades.graph.release.channels": "OTA-1813",
        "io.openshift.upgrades.graph.release.manifestref": "sha256:00000000000000000000000000000000000000000000000000000000003d5ef0",
        "url": "https://access.redhat.com/errata/RHSA-2024:06200"
      }
    },
    {
      "version": "4.22.1",
      "payload": "quay.io/openshift-release-dev/ocp-release@sha256:00000000000000000000000000000000000000000000000000000000003d5ef1",
      "metadata": {
        "io.openshift.upgrades.graph.release.channels": "OTA-1813",
        "io.openshift.upgrades.graph.release.manifestref": "sha256:00000000000000000000000000000000000000000000000000000000003d5ef1",
        "url": "https://access.redhat.com/errata/RHSA-2024:06201"
      }
    },
    {
      "version": "4.22.2",
      "payload": "quay.io/openshift-release-dev/ocp-release@sha256:00000000000000000000000000000000000000000000000000000000003d5ef2",
      "metadata": {
        "io.openshift.upgrades.graph.release.channels": "OTA-1813",
        "io.openshift.upgrades.graph.release.manifestref": "sha256:00000000000000000000000000000000000000000000000000000000003d5ef2",
        "url": "https://access.redhat.com/errata/RHSA-2024:06202"
      }
    }
  ],
  "edges": [
    [
      0,
      1
    ]
  ],
  "conditionalEdges": [
    {
      "edges": [
        {
          "from": "4.22.0-0.nightly-2026-04-06-051707",
          "to": "4.22.2"
        }
      ],
      "risks": [
        {
          "url": "https://docs.openshift.com/synthetic-risk-a",
          "name": "SomeInvokerThing",
          "message": "This is SomeInvokerThing that cannot be evaluated for testing purposes",
          "matchingRules": [
            {
              "type": "PromQL",
              "promql": {
                "promql": "this will fail; muahaha"
              }
            }
          ]
        }
      ]
    }
  ]
}

@hongkailiu
Copy link
Copy Markdown
Member Author

/test e2e-agnostic-ovn-techpreview-serial-1of3

fauxinnati is redeployed a few mins ago.
Let us retry.

There was an issue of duplicated conditional risks when

* a risk whose PromQL cannot be evaluated, and

* the risk from alert was accepted.

The issue is fixed by [cvo#1367](openshift#1367) and this pull is to extend the current alert risk e2e to cover the case.
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 11, 2026

@hongkailiu: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-hypershift-conformance fb7df5b link true /test e2e-hypershift-conformance
ci/prow/unit fb7df5b link true /test unit

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@hongkailiu
Copy link
Copy Markdown
Member Author

Checking https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1371/pull-ci-openshift-cluster-version-operator-main-e2e-agnostic-ovn-techpreview-serial-1of3/2042797732539666432 :

Impressive. passed: (2m1s).

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1371/pull-ci-openshift-cluster-version-operator-main-e2e-agnostic-ovn-techpreview-serial-1of3/2042797732539666432/artifacts/e2e-agnostic-ovn-techpreview-serial/openshift-e2e-test/artifacts/e2e.log | grep risks
started: 0/1/44 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with risks from alerts"
passed: (2m1s) 2026-04-11T04:53:15 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with risks from alerts"
started: 0/2/44 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with accept risks"
passed: (1m1s) 2026-04-11T04:54:16 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with accept risks"
started: 0/34/44 "[sig-cli][OCPFeatureGate:ClusterUpdateAcceptRisks] oc can operate accept risks [Serial]"
passed: (1.5s) 2026-04-11T05:09:03 "[sig-cli][OCPFeatureGate:ClusterUpdateAcceptRisks] oc can operate accept risks [Serial]"

@hongkailiu
Copy link
Copy Markdown
Member Author

Rerun for more confidence:

/test e2e-agnostic-ovn-techpreview-serial-1of3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants