Skip to content

Conversation

gangwgr
Copy link
Contributor

@gangwgr gangwgr commented Oct 6, 2025

This pr backport of #1488
This introduces a binary and supporting structure to enable the execution of OpenShift cluster-etcd-operator tests using the Open Test Environment (OTE).

Changes:

Add cmd/cluster-etcd-operator-tests-ext/ with main.go
Add test/extended/ directory with comprehensive README.md and sanity test
Update Makefile with flexible OTE build targets and helper commands
Update Dockerfile to build and include test extension binary
Update go.mod with required dependencies for ginkgo and openshift-tests-extension
Add vendor dependencies for new OTE framework
Test suites:

openshift/cluster-etcd-operator/conformance/parallel
openshift/cluster-etcd-operator/conformance/serial
openshift/cluster-etcd-operator/optional/slow
openshift/cluster-etcd-operator/all

This commit introduces a binary and supporting structure to enable the execution of OpenShift cluster-etcd-operator tests using the Open Test Environment (OTE).

Changes:
- Add cmd/cluster-etcd-operator-tests-ext/ with main.go
- Add test/extended/ directory with comprehensive README.md and sanity test
- Update Makefile with flexible OTE build targets and helper commands
- Update Dockerfile to build and include test extension binary
- Update go.mod with required dependencies for ginkgo and openshift-tests-extension
- Update .gitignore to exclude OTE binary artifacts
- Fix pre-existing platform-specific compilation error in bootstrap_ip_test.go

Test suites:
- openshift/cluster-etcd-operator/conformance/parallel
- openshift/cluster-etcd-operator/conformance/serial
- openshift/cluster-etcd-operator/optional/slow
- openshift/cluster-etcd-operator/all
Add vendor dependencies for OTE framework:
- github.com/onsi/ginkgo/v2 v2.21.0
- github.com/onsi/gomega v1.35.1
- github.com/openshift-eng/openshift-tests-extension v0.0.0-20250804142706-7b3ab438a292
- github.com/go-task/slim-sprig/v3 (transitive dependency)
- golang.org/x/tools, golang.org/x/text, golang.org/x/net (transitive dependencies)

Updated vendor/modules.txt to reflect new dependency tree.
Copy link

coderabbitai bot commented Oct 6, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

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.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@gangwgr gangwgr changed the title Release 4.20 CNTRLPLANE-1315:Add OpenShift Tests Extension (OTE) for cluster-etcd-operator Oct 6, 2025
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Oct 6, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Oct 6, 2025

@gangwgr: This pull request references CNTRLPLANE-1315 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 task to target the "4.20.0" version, but no target version was set.

In response to this:

This introduces a binary and supporting structure to enable the execution of OpenShift cluster-etcd-operator tests using the Open Test Environment (OTE).

Changes:

Add cmd/cluster-etcd-operator-tests-ext/ with main.go
Add test/extended/ directory with comprehensive README.md and sanity test
Update Makefile with flexible OTE build targets and helper commands
Update Dockerfile to build and include test extension binary
Update go.mod with required dependencies for ginkgo and openshift-tests-extension
Add vendor dependencies for new OTE framework
Test suites:

openshift/cluster-etcd-operator/conformance/parallel
openshift/cluster-etcd-operator/conformance/serial
openshift/cluster-etcd-operator/optional/slow
openshift/cluster-etcd-operator/all

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 openshift-ci bot requested review from dusk125 and hasbro17 October 6, 2025 12:49
Copy link
Contributor

openshift-ci bot commented Oct 6, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: gangwgr
Once this PR has been reviewed and has the lgtm label, please assign dusk125 for approval. For more information see the Code Review Process.

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

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

@gangwgr gangwgr changed the title CNTRLPLANE-1315:Add OpenShift Tests Extension (OTE) for cluster-etcd-operator OCPBUGS-62738:CNTRLPLANE-1315:Add OpenShift Tests Extension (OTE) for cluster-etcd-operator Oct 6, 2025
@openshift-ci-robot openshift-ci-robot added the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Oct 6, 2025
@openshift-ci-robot
Copy link

@gangwgr: This pull request references Jira Issue OCPBUGS-62738, which is invalid:

  • expected Jira Issue OCPBUGS-62738 to depend on a bug targeting a version in 4.21.0 and in one of the following states: MODIFIED, ON_QA, VERIFIED, but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

This introduces a binary and supporting structure to enable the execution of OpenShift cluster-etcd-operator tests using the Open Test Environment (OTE).

Changes:

Add cmd/cluster-etcd-operator-tests-ext/ with main.go
Add test/extended/ directory with comprehensive README.md and sanity test
Update Makefile with flexible OTE build targets and helper commands
Update Dockerfile to build and include test extension binary
Update go.mod with required dependencies for ginkgo and openshift-tests-extension
Add vendor dependencies for new OTE framework
Test suites:

openshift/cluster-etcd-operator/conformance/parallel
openshift/cluster-etcd-operator/conformance/serial
openshift/cluster-etcd-operator/optional/slow
openshift/cluster-etcd-operator/all

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.

@gangwgr
Copy link
Contributor Author

gangwgr commented Oct 6, 2025

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Oct 6, 2025
@openshift-ci-robot
Copy link

@gangwgr: This pull request references Jira Issue OCPBUGS-62738, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.20.0) matches configured target version for branch (4.20.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note type set to "Release Note Not Required"
  • dependent bug Jira Issue OCPBUGS-62736 is in the state Verified, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
  • dependent Jira Issue OCPBUGS-62736 targets the "4.21.0" version, which is one of the valid target versions: 4.21.0
  • bug has dependents

Requesting review from QA contact:
/cc @geliu2016

In response to this:

/jira refresh

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 openshift-ci bot requested a review from geliu2016 October 6, 2025 12:56
@openshift-ci-robot
Copy link

@gangwgr: This pull request references Jira Issue OCPBUGS-62738, which is valid.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.20.0) matches configured target version for branch (4.20.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note type set to "Release Note Not Required"
  • dependent bug Jira Issue OCPBUGS-62736 is in the state Verified, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
  • dependent Jira Issue OCPBUGS-62736 targets the "4.21.0" version, which is one of the valid target versions: 4.21.0
  • bug has dependents

Requesting review from QA contact:
/cc @geliu2016

In response to this:

This pr backport of #1488
This introduces a binary and supporting structure to enable the execution of OpenShift cluster-etcd-operator tests using the Open Test Environment (OTE).

Changes:

Add cmd/cluster-etcd-operator-tests-ext/ with main.go
Add test/extended/ directory with comprehensive README.md and sanity test
Update Makefile with flexible OTE build targets and helper commands
Update Dockerfile to build and include test extension binary
Update go.mod with required dependencies for ginkgo and openshift-tests-extension
Add vendor dependencies for new OTE framework
Test suites:

openshift/cluster-etcd-operator/conformance/parallel
openshift/cluster-etcd-operator/conformance/serial
openshift/cluster-etcd-operator/optional/slow
openshift/cluster-etcd-operator/all

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.

@gangwgr
Copy link
Contributor Author

gangwgr commented Oct 7, 2025

/retest-required

Copy link
Contributor

openshift-ci bot commented Oct 7, 2025

@gangwgr: 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-azure-ovn-etcd-scaling c96f49e link false /test e2e-azure-ovn-etcd-scaling
ci/prow/e2e-gcp-ovn-etcd-scaling c96f49e link false /test e2e-gcp-ovn-etcd-scaling
ci/prow/e2e-vsphere-ovn-etcd-scaling c96f49e link false /test e2e-vsphere-ovn-etcd-scaling
ci/prow/e2e-gcp-disruptive-ovn c96f49e link false /test e2e-gcp-disruptive-ovn
ci/prow/e2e-azure c96f49e link false /test e2e-azure
ci/prow/e2e-aws-disruptive-ovn c96f49e link false /test e2e-aws-disruptive-ovn
ci/prow/e2e-aws-ovn-etcd-scaling c96f49e link false /test e2e-aws-ovn-etcd-scaling
ci/prow/e2e-metal-ovn-two-node-fencing c96f49e link false /test e2e-metal-ovn-two-node-fencing
ci/prow/e2e-metal-ovn-sno-cert-rotation-shutdown c96f49e link false /test e2e-metal-ovn-sno-cert-rotation-shutdown
ci/prow/e2e-gcp-disruptive c96f49e link false /test e2e-gcp-disruptive
ci/prow/e2e-aws-cpms c96f49e link false /test e2e-aws-cpms
ci/prow/e2e-metal-ovn-ha-cert-rotation-shutdown c96f49e link false /test e2e-metal-ovn-ha-cert-rotation-shutdown
ci/prow/e2e-aws-disruptive c96f49e link false /test e2e-aws-disruptive
ci/prow/e2e-aws-etcd-recovery c96f49e link false /test e2e-aws-etcd-recovery

Full PR test history. Your PR dashboard.

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.

COPY --from=builder /go/src/github.com/openshift/cluster-etcd-operator/bindata/bootkube/manifests /usr/share/bootkube/manifests/manifests/
COPY --from=builder /go/src/github.com/openshift/cluster-etcd-operator/cluster-etcd-operator /usr/bin/
COPY --from=builder /go/src/github.com/openshift/cluster-etcd-operator/tnf-setup-runner /usr/bin/
COPY --from=builder /go/src/github.com/openshift/cluster-etcd-operator/cluster-etcd-operator-tests-ext.gz /usr/bin/
Copy link
Contributor

Choose a reason for hiding this comment

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

disclaimer: I have no idea about the entire effort

is it desired that we ship the test binary with the production operator?

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

Labels

jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. 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.

3 participants