Skip to content

[test/e2e] Remove unused getKubeletServiceBinPath and waitForServicesConfigMapDeletion functions#3942

Open
jrvaldes wants to merge 2 commits intoopenshift:masterfrom
jrvaldes:remove-unused-getKubeletServiceBinPath
Open

[test/e2e] Remove unused getKubeletServiceBinPath and waitForServicesConfigMapDeletion functions#3942
jrvaldes wants to merge 2 commits intoopenshift:masterfrom
jrvaldes:remove-unused-getKubeletServiceBinPath

Conversation

@jrvaldes
Copy link
Copy Markdown
Contributor

@jrvaldes jrvaldes commented Apr 9, 2026

The getKubeletServiceBinPath function was defined but never called, making it dead code. Remove it to keep the codebase clean.

Summary by CodeRabbit

  • Tests
    • Removed internal test helper functions.

Note: This change affects testing infrastructure only and does not impact product functionality or end-user experience.

The getKubeletServiceBinPath function was defined but never called,
making it dead code. Remove it to keep the codebase clean.
@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 9, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 9, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 1d0b2565-e9e1-4e56-b677-00290cc53504

📥 Commits

Reviewing files that changed from the base of the PR and between 374b870 and 482c28d.

📒 Files selected for processing (1)
  • test/e2e/validation_test.go
💤 Files with no reviewable changes (1)
  • test/e2e/validation_test.go

📝 Walkthrough

Walkthrough

This change removes two test helper functions from the end-to-end validation test suite. The first function retrieved the kubelet Windows service binary path via SSH using PowerShell queries, while the second polled for ConfigMap deletion within the WMCO namespace. Both functions included error wrapping for failure cases. The removal affects 36 lines of code with no visible replacement implementations or call site updates included in the diff.

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Test Structure And Quality ❓ Inconclusive The test file test/e2e/validation_test.go appears to be a standard Go test file without obvious issues. Unable to access the actual file content from the shell command. Please provide the file contents directly or clarify what specific validation checks need to be performed.
✅ Passed checks (14 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removal of two unused helper functions from the test suite.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Go Best Practices & Build Tags ✅ Passed PR removes two unused helper functions without breaking functionality, maintains proper error handling patterns, and correctly omits build tags from platform-agnostic e2e test file.
Security: Secrets, Ssh & Csr ✅ Passed Removal of unused test helper functions does not introduce SSH, credential, or resource management security concerns. Remaining code maintains proper SSH security practices.
Kubernetes Controller Patterns ✅ Passed PR removes test utility functions from E2E test suite; no controller code, reconciliation logic, or operator implementations are modified.
Windows Service Management ✅ Passed Pull request removes two unused functions with zero call sites in codebase; all active Windows service validation coverage remains intact.
Platform-Specific Requirements ✅ Passed PR removes two unused test helper functions with no codebase references, maintaining platform-specific logic independently without introducing constraints.
Stable And Deterministic Test Names ✅ Passed PR removes two unused helper utility functions (getKubeletServiceBinPath, waitForServicesConfigMapDeletion) with no involvement in test naming or title generation.
Microshift Test Compatibility ✅ Passed PR removes two unused test utility helper functions with zero lines added and 36 lines removed. MicroShift Test Compatibility check applies only to newly added Ginkgo e2e tests, not code removal, so check is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This pull request removes two unused helper functions from test code with zero new Ginkgo e2e test additions, making the SNO compatibility check inapplicable.
Topology-Aware Scheduling Compatibility ✅ Passed PR removes dead test code with no external references or production impact; no topology-aware scheduling constraints introduced.
Ote Binary Stdout Contract ✅ Passed Removed test helper functions (testContext receiver methods) are not process-level code and thus cannot violate the OTE Binary Stdout Contract, which explicitly applies only to main(), TestMain(), and suite-level setup functions.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed This PR removes unused helper functions from a standard Go test file; no new Ginkgo e2e tests are added, so the IPv6/disconnected network compatibility check does not apply.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 9, 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

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 9, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jrvaldes

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 9, 2026
The waitForServicesConfigMapDeletion function was defined but never
called, making it dead code. Remove it to keep the codebase clean.
@jrvaldes jrvaldes changed the title [test/e2e] Remove unused getKubeletServiceBinPath function [test/e2e] Remove unused getKubeletServiceBinPath and waitForServicesConfigMapDeletion functions Apr 9, 2026
@jrvaldes jrvaldes marked this pull request as ready for review April 14, 2026 19:40
@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 Apr 14, 2026
@openshift-ci openshift-ci bot requested a review from mansikulkarni96 April 14, 2026 19:41
@jrvaldes
Copy link
Copy Markdown
Contributor Author

/override ci/prow/azure-e2e-upgrade ci/prow/gcp-e2e-operator ci/prow/nutanix-e2e-operator ci/prow/platform-none-vsphere-e2e-operator ci/prow/vsphere-disconnected-e2e-operator ci/prow/vsphere-e2e-operator ci/prow/vsphere-proxy-e2e-operator

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 14, 2026

@jrvaldes: Overrode contexts on behalf of jrvaldes: ci/prow/azure-e2e-upgrade, ci/prow/gcp-e2e-operator, ci/prow/nutanix-e2e-operator, ci/prow/platform-none-vsphere-e2e-operator, ci/prow/vsphere-disconnected-e2e-operator, ci/prow/vsphere-e2e-operator, ci/prow/vsphere-proxy-e2e-operator

Details

In response to this:

/override ci/prow/azure-e2e-upgrade ci/prow/gcp-e2e-operator ci/prow/nutanix-e2e-operator ci/prow/platform-none-vsphere-e2e-operator ci/prow/vsphere-disconnected-e2e-operator ci/prow/vsphere-e2e-operator ci/prow/vsphere-proxy-e2e-operator

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.

@jrvaldes
Copy link
Copy Markdown
Contributor Author

/test wicd-unit-vsphere

@jrvaldes
Copy link
Copy Markdown
Contributor Author

/override ci/prow/azure-e2e-operator ci/prow/gcp-e2e-operator ci/prow/vsphere-proxy-e2e-operator

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 15, 2026

@jrvaldes: Overrode contexts on behalf of jrvaldes: ci/prow/azure-e2e-operator, ci/prow/gcp-e2e-operator, ci/prow/vsphere-proxy-e2e-operator

Details

In response to this:

/override ci/prow/azure-e2e-operator ci/prow/gcp-e2e-operator ci/prow/vsphere-proxy-e2e-operator

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.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 15, 2026

@jrvaldes: 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.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant