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.
@coderabbitai
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
@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

@openshift-ci
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?

Choose a reason for hiding this comment

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

This is indeed a problem. Currently, I'm considering separating it from component, see openshift/service-ca-operator#283

Choose a reason for hiding this comment

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

@gangwgr Please hold on.

Choose a reason for hiding this comment

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

@tjungblu This folllowing COPY is required, because we need this binary to run test in Prow CI. such as https://github.com/openshift/release/pull/70553/files#diff-f193fda3e6e07db2100d4ba66d6a7f19b3356ddf1a931438fce96a43be7dd0bfR98. This file is in a compressed format and is very small. Remembered that @stbenjam said test is part of our product, just like origin image we see it in our payload.
COPY --from=builder /go/src/github.com/openshift/cluster-etcd-operator/cluster-etcd-operator-tests-ext.gz /usr/bin/

@gangwgr
Copy link
Contributor Author

gangwgr commented Oct 24, 2025

/assign @dusk125
Please approve this, later we will isolate go.mod from operator

@dusk125
Copy link
Contributor

dusk125 commented Oct 24, 2025

/approve
/label backport-risk-assessed

@openshift-ci openshift-ci bot added backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 24, 2025
@gangwgr
Copy link
Contributor Author

gangwgr commented Oct 27, 2025

/verified by ci runs

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Oct 27, 2025
@openshift-ci-robot
Copy link

@gangwgr: This PR has been marked as verified by ci runs.

In response to this:

/verified by ci runs

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 27, 2025

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2025

@gangwgr: you cannot LGTM your own PR.

In response to this:

/lgtm

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.

@sandeepknd
Copy link

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 27, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dusk125, gangwgr, sandeepknd

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

The pull request process is described 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

@openshift-merge-bot openshift-merge-bot bot merged commit 0d7067c into openshift:release-4.20 Oct 27, 2025
22 of 36 checks passed
@openshift-ci-robot
Copy link

@gangwgr: Jira Issue Verification Checks: Jira Issue OCPBUGS-62738
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-62738 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

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.

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. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. 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. 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.

6 participants