Skip to content

WINC-1971: [ote] Migrate proxy tests from OTP to OTE - #4459

Draft
rrasouli wants to merge 1 commit into
openshift:masterfrom
rrasouli:winc-1971-ote-proxy-suite
Draft

WINC-1971: [ote] Migrate proxy tests from OTP to OTE#4459
rrasouli wants to merge 1 commit into
openshift:masterfrom
rrasouli:winc-1971-ote-proxy-suite

Conversation

@rrasouli

@rrasouli rrasouli commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Migrates 6 proxy tests from OTP to OTE framework and registers a dedicated proxy test suite.

What's Changed

Files:

  • ote/test/e2e/proxy.go - 6 proxy tests migrated from OTP
  • ote/test/e2e/utils.go - 24 proxy utility functions
  • ote/cmd/wmco-tests-ext/main.go - Registered windows-machine-config-operator/proxy suite

Tests migrated:

  1. Test 65980 - Cluster-wide proxy settings validation (~2 min)
  2. Test 90290 - Remove trusted CA (~14 min)
  3. Test 90289 - Remove proxy variables (~22 min, includes workaround for OCPBUGS-111093)
  4. Test 66670 - Trusted CA ConfigMap tests (~17 min)
  5. Test 68320 - Import custom CA certificates (~2 min)
  6. Test 71173 - Test connectivity behind proxy (~17 min, LoadBalancer test removed for vSphere)

Fixes:

  • Removed blocking isProxy() and waitForProxyStatus() checks from BeforeEach (per OTE team feedback)
  • Registered proxy suite with [node-proxy] qualifier for CI filtering
  • Added timeout decorators (30 min) to 4 long-running tests

Running Tests Locally

Build the binary:

cd ote
GOWORK=off go build -o ../build/_output/bin/wmco-tests-ext ./cmd/wmco-tests-ext/

Option 1: Run individual test (recommended for local testing)

KUBECONFIG=/path/to/kubeconfig ../build/_output/bin/wmco-tests-ext run-test \
  -n '[OTP][sig-windows] Windows_Containers Smokerun-Author:rrasouli-Critical-65980-[node-proxy]-Cluster-wide proxy settings validation [Serial]'

Option 2: Run full suite (use in CI)

# Note: Use -o jsonl for streaming output. Default -o json buffers until suite completes.
KUBECONFIG=/path/to/kubeconfig ../build/_output/bin/wmco-tests-ext run-suite windows-machine-config-operator/proxy \
  -o jsonl \
  -c 1 \
  -j ./junit-proxy.xml

List available tests:

KUBECONFIG=/path/to/kubeconfig ../build/_output/bin/wmco-tests-ext list windows-machine-config-operator/proxy

CI Integration

  • Release PR: #83352
  • Test suite: windows-machine-config-operator/proxy
  • Trigger: /test vsphere-proxy-e2e-ote
  • Workflow: ipi-vsphere-ovn-hybrid-custom-vxlan-port-proxy

Known Issues

OCPBUGS-111093: WMCO doesn't remove proxy env vars from WICD ConfigMap when removed from cluster proxy spec. Test 90289 includes workaround (skips WICD ConfigMap verification for httpsProxy removal).

Related:

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 13, 2026
@openshift-ci-robot

openshift-ci-robot commented Aug 13, 2026

Copy link
Copy Markdown

@rrasouli: This pull request references WINC-1971 which is a valid jira issue.

Details

In response to this:

Summary

Adds a windows-machine-config-operator/proxy OTE suite that inherits from openshift/disruptive to run OTP tests tagged with [node-proxy] on vsphere proxy clusters.

Changes

  • Added proxy suite with Parents: ["openshift/disruptive"] and qualifier name.contains("[node-proxy]")
  • Picks up 4 existing OTP tests: 65980, 66670, 68320, 71173

Related

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 added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 13, 2026
@openshift-ci

openshift-ci Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

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

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🚫 Review skipped — only excluded labels are configured. (2)
  • do-not-merge/work-in-progress
  • do-not-merge/hold

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), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 8ff37ad4-1c32-4e07-88bd-ac0f1fe004b1

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

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.

@openshift-ci openshift-ci Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 13, 2026
@rrasouli
rrasouli force-pushed the winc-1971-ote-proxy-suite branch from beb86e3 to 56219a8 Compare August 16, 2026 14:00
@openshift-ci openshift-ci Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Aug 16, 2026
@rrasouli
rrasouli force-pushed the winc-1971-ote-proxy-suite branch from 56219a8 to 53cef9c Compare August 16, 2026 14:00
@rrasouli rrasouli changed the title WINC-1971: [ote] Add proxy suite for node-proxy tests WINC-1971: [ote] Migrate proxy tests from OTP to OTE Aug 16, 2026
@rrasouli
rrasouli force-pushed the winc-1971-ote-proxy-suite branch 3 times, most recently from 3e52c58 to dc2052b Compare August 17, 2026 13:21
@rrasouli
rrasouli marked this pull request as ready for review August 17, 2026 13:52
@rrasouli
rrasouli force-pushed the winc-1971-ote-proxy-suite branch from dc2052b to beb86e3 Compare August 17, 2026 17:59
@openshift-ci openshift-ci Bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 17, 2026
@openshift-ci

openshift-ci Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@rrasouli: 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/azure-e2e-upgrade beb86e3 link true /test azure-e2e-upgrade
ci/prow/security beb86e3 link true /test security
ci/prow/vsphere-disconnected-e2e-operator beb86e3 link false /test vsphere-disconnected-e2e-operator
ci/prow/aws-e2e-ote beb86e3 link false /test aws-e2e-ote
ci/prow/vsphere-e2e-operator beb86e3 link true /test vsphere-e2e-operator
ci/prow/images beb86e3 link true /test images
ci/prow/azure-e2e-operator beb86e3 link true /test azure-e2e-operator
ci/prow/ci-bundle-wmco-bundle beb86e3 link true /test ci-bundle-wmco-bundle
ci/prow/platform-none-vsphere-e2e-operator beb86e3 link true /test platform-none-vsphere-e2e-operator
ci/prow/gcp-e2e-operator beb86e3 link true /test gcp-e2e-operator
ci/prow/nutanix-e2e-operator beb86e3 link true /test nutanix-e2e-operator
ci/prow/aws-e2e-operator beb86e3 link true /test aws-e2e-operator
ci/prow/lint beb86e3 link true /test lint
ci/prow/wicd-unit-vsphere beb86e3 link true /test wicd-unit-vsphere
ci/prow/unit beb86e3 link true /test unit
ci/prow/vsphere-proxy-e2e-operator beb86e3 link true /test vsphere-proxy-e2e-operator

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.

@rrasouli
rrasouli marked this pull request as draft August 18, 2026 04:56
Migrated 6 proxy tests (65980, 90290, 90289, 66670, 68320, 71173) from
openshift-tests-private to OTE framework. All tests passing on vSphere
proxy cluster.

Key changes:
- Fixed getWMCOTimestamp() to use name= label instead of app=
- Added waitForWICDConfigMapUpdate() and waitForWICDConfigMapContains()
- Fixed checkUserCertificatesOnNodes() to poll internally
- Improved HostProcess pod polling (5s → 1s interval)
- Added restoreProxyEnvironment() logging for better debugging

Test modifications:
- Test 71173: Removed LB traffic test (vSphere incompatible, not proxy-related)
- Test 90289: Added workaround for WMCO bug (doesn't remove env vars from ConfigMap)
- Tests > 13 min tagged with Longduration and [Slow]

All tests verified passing with proper cleanup and error handling.
@rrasouli
rrasouli force-pushed the winc-1971-ote-proxy-suite branch from beb86e3 to 267db37 Compare August 18, 2026 05:09
@openshift-ci openshift-ci Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 18, 2026
@openshift-ci

openshift-ci Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rrasouli

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 Aug 18, 2026
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