Skip to content

OTA-1546: Add a serial e2e for accept-risks#1310

Merged
openshift-merge-bot[bot] merged 9 commits intoopenshift:mainfrom
hongkailiu:accept-risks-e2e-serial
Feb 14, 2026
Merged

OTA-1546: Add a serial e2e for accept-risks#1310
openshift-merge-bot[bot] merged 9 commits intoopenshift:mainfrom
hongkailiu:accept-risks-e2e-serial

Conversation

@hongkailiu
Copy link
Member

No description provided.

@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 Jan 30, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 30, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@coderabbitai
Copy link

coderabbitai bot commented Jan 30, 2026

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (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.

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
  • Post copyable unit tests in a comment

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 30, 2026
@hongkailiu
Copy link
Member Author

/test e2e-agnostic-ovn-techpreview-serial

@hongkailiu
Copy link
Member Author

/test all

@hongkailiu hongkailiu force-pushed the accept-risks-e2e-serial branch from 446b922 to 02c4876 Compare February 2, 2026 04:21
@hongkailiu
Copy link
Member Author

/test e2e-agnostic-ovn-techpreview-serial

1 similar comment
@hongkailiu
Copy link
Member Author

/test e2e-agnostic-ovn-techpreview-serial

@hongkailiu
Copy link
Member Author

/test images

@hongkailiu
Copy link
Member Author

/test all

@hongkailiu
Copy link
Member Author

/test images

@hongkailiu hongkailiu force-pushed the accept-risks-e2e-serial branch from 02c4876 to b84342a Compare February 3, 2026 00:00
@hongkailiu
Copy link
Member Author

/test e2e-agnostic-ovn-techpreview-serial

@hongkailiu hongkailiu force-pushed the accept-risks-e2e-serial branch from 05dddf5 to f22af17 Compare February 3, 2026 08:08
@hongkailiu
Copy link
Member Author

/test e2e-agnostic-ovn-techpreview-serial

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 7, 2026
@hongkailiu hongkailiu force-pushed the accept-risks-e2e-serial branch 2 times, most recently from b17820f to 74bf25d Compare February 12, 2026 00:38
@hongkailiu hongkailiu force-pushed the accept-risks-e2e-serial branch from 74bf25d to f51cc18 Compare February 12, 2026 00:45
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 12, 2026
`github.com/openshift/cluster-version-operator/pkg/external/constants.go`
seems the authentic place for the constants, but it is private to the
packages in the same root [1]. This change introduces shortcuts to the
constants that are used externally.

[1]. https://pkg.go.dev/cmd/go#hdr-Internal_Directories
@hongkailiu hongkailiu force-pushed the accept-risks-e2e-serial branch from f51cc18 to 3245da0 Compare February 12, 2026 00:52
@hongkailiu
Copy link
Member Author

/test e2e-agnostic-ovn-techpreview-serial

@hongkailiu
Copy link
Member Author

The new test case passed in this job which is failed on other case:

$ curl -s "https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1310/pull-ci-openshift-cluster-version-operator-main-e2e-agnostic-ovn-techpreview-serial/2021749396105859072/artifacts/e2e-agnostic-ovn-techpreview-serial/openshift-e2e-test/artifacts/e2e.log" | grep 'accept risks'
started: 0/88/111 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with accept risks [Serial]"
passed: (4m1s) 2026-02-12T05:33:44 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with accept risks [Serial]"

/test all

/verified by @hongkailiu

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Feb 12, 2026
@openshift-ci-robot
Copy link
Contributor

@hongkailiu: This PR has been marked as verified by @hongkailiu.

Details

In response to this:

The new test case passed in this job which is failed on other case:

$ curl -s "https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1310/pull-ci-openshift-cluster-version-operator-main-e2e-agnostic-ovn-techpreview-serial/2021749396105859072/artifacts/e2e-agnostic-ovn-techpreview-serial/openshift-e2e-test/artifacts/e2e.log" | grep 'accept risks'
started: 0/88/111 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with accept risks [Serial]"
passed: (4m1s) 2026-02-12T05:33:44 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with accept risks [Serial]"

/test all

/verified by @hongkailiu

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.

@JianLi-RH
Copy link
Contributor

There are some minor suggestions from AI (I'd like suggestion 2 because you created a single file for accept -risks):

Minor

  1. Naming inconsistency: In pkg/external/constants.go, the constant name ConditionalUpdateConditionTypeRecommended is quite verbose. While accurate, it might benefit from the context of being in a constants package (could just be RecommendedConditionType). However, this is subjective and the current naming is clear.

  2. Documentation: The test file test/cvo/accept_risks.go lacks a package-level comment explaining what this test validates and why it's serial. Consider adding:

// Package cvo contains end-to-end tests for the Cluster Version Operator.
// The accept_risks test validates the conditional update risk acceptance workflow.
  1. Magic numbers: The polling intervals in test/cvo/accept_risks.go:73 (30time.Second, 5time.Minute) could be extracted as constants for better maintainability:
const (
    pollInterval = 30 * time.Second
    pollTimeout  = 5 * time.Minute
)

@hongkailiu
Copy link
Member Author

/test e2e-agnostic-ovn-techpreview-serial

Copy link
Member Author

Choose a reason for hiding this comment

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

I need to verify if the Qualifiers still work for BOTH cases.

Copy link
Member Author

Choose a reason for hiding this comment

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

For e2e-agnostic-ovn: It contains the non-serial test cases:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1310/pull-ci-openshift-cluster-version-operator-main-e2e-agnostic-ovn/2022445338412978176/artifacts/e2e-agnostic-ovn/openshift-e2e-test/artifacts/e2e.log | grep '\[Jira:\\"Cluster Version Operator\\"\]'
started: 0/112/429 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should have correct runlevel and scc"
passed: (200ms) 2026-02-14T01:15:39 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should have correct runlevel and scc"
started: 1/284/429 "[Jira:\"Cluster Version Operator\"] cluster-version-operator-tests should support passing tests"
passed: (0s) 2026-02-14T01:18:18 "[Jira:\"Cluster Version Operator\"] cluster-version-operator-tests should support passing tests"
started: 1/287/429 "[Jira:\"Cluster Version Operator\"] cluster-version-operator-tests can use oc to get the version information"
passed: (100ms) 2026-02-14T01:18:20 "[Jira:\"Cluster Version Operator\"] cluster-version-operator-tests can use oc to get the version information"

The serial job failed at pre. let us try again.

/test e2e-agnostic-ovn-techpreview-serial

Copy link
Member Author

Choose a reason for hiding this comment

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

e2e-agnostic-ovn-techpreview-serial has the only serial test cases:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/test-platform-results/pr-logs/pull/openshift_cluster-version-operator/1310/pull-ci-openshift-cluster-version-operator-main-e2e-agnostic-ovn-techpreview-serial/2022503081538752512/artifacts/e2e-agnostic-ovn-techpreview-serial/openshift-e2e-test/artifacts/e2e.log | grep '\[Jira:\\"Cluster Version Operator\\"\]'
started: 0/1/111 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with accept risks"
passed: (3m30s) 2026-02-14T06:00:12 "[Jira:\"Cluster Version Operator\"] cluster-version-operator should work with accept risks"
started: 0/10/111 "[Jira:\"Cluster Version Operator\"] cluster-version-operator-tests should support passing serial tests [Serial]"
passed: (0s) 2026-02-14T06:04:49 "[Jira:\"Cluster Version Operator\"] cluster-version-operator-tests should support passing serial tests [Serial]"

It failed on other cases which seems irrelevant to this pull.

/hold cancel

/retest-required

@hongkailiu hongkailiu marked this pull request as ready for review February 13, 2026 22:58
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 13, 2026
@hongkailiu
Copy link
Member Author

/verified cancel

@openshift-ci-robot
Copy link
Contributor

@hongkailiu: The /verified command must be used with one of the following actions: by, later, remove, or bypass. See https://docs.ci.openshift.org/docs/architecture/jira/#premerge-verification for more information.

Details

In response to this:

/verified cancel

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
Copy link
Member Author

There are some minor suggestions from AI (I'd like suggestion 2 because you created a single file for accept -risks):

Minor

  1. Naming inconsistency: In pkg/external/constants.go, the constant name ConditionalUpdateConditionTypeRecommended is quite verbose. While accurate, it might benefit from the context of being in a constants package (could just be RecommendedConditionType). However, this is subjective and the current naming is clear.
  2. Documentation: The test file test/cvo/accept_risks.go lacks a package-level comment explaining what this test validates and why it's serial. Consider adding:
// Package cvo contains end-to-end tests for the Cluster Version Operator.
// The accept_risks test validates the conditional update risk acceptance workflow.
  1. Magic numbers: The polling intervals in test/cvo/accept_risks.go:73 (30_time.Second, 5_time.Minute) could be extracted as constants for better maintainability:
const (
    pollInterval = 30 * time.Second
    pollTimeout  = 5 * time.Minute
)

1 is a good point but the names are not introduced by this pull. We could do it with another pull to keep this one small.
2 is done with 993d5e5
3 I did not make the constants because they might be different for other polling functions.

@JianLi-RH
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 14, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 14, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hongkailiu, JianLi-RH

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

@hongkailiu
Copy link
Member Author

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 14, 2026
@hongkailiu hongkailiu changed the title Add a serial e2e for accept-risks OTA-1546: Add a serial e2e for accept-risks Feb 14, 2026
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Feb 14, 2026

@hongkailiu: This pull request references OTA-1546 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:

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.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 14, 2026
@hongkailiu
Copy link
Member Author

/retest-required

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 14, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 14, 2026

@hongkailiu: all tests passed!

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.

@openshift-merge-bot openshift-merge-bot bot merged commit f763687 into openshift:main Feb 14, 2026
17 checks passed
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants