Skip to content

fix lock failure cases#939

Open
gangwgr wants to merge 1 commit into
openshift:mainfrom
gangwgr:migrate-tests-to-ote
Open

fix lock failure cases#939
gangwgr wants to merge 1 commit into
openshift:mainfrom
gangwgr:migrate-tests-to-ote

Conversation

@gangwgr
Copy link
Copy Markdown
Contributor

@gangwgr gangwgr commented Jun 3, 2026

https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_release/80011/rehearse-80011-pull-ci-openshift-cluster-kube-controller-manager-operator-main-e2e-aws-operator-parallel/2062136380061913088 fixing lock failures

Summary by CodeRabbit

  • Tests
    • Enhanced end-to-end testing for lease recovery functionality with support for multiple namespaces.

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 3, 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 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 Jun 3, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 3, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: bde886b7-9577-4ff4-a2c4-6bb84ccaa640

📥 Commits

Reviewing files that changed from the base of the PR and between 9d636ab and aa0c868.

📒 Files selected for processing (1)
  • test/e2e/operator.go

Walkthrough

The PR extends the TestKCMLeaseRecovery e2e test to parameterize lease recovery across multiple namespaces. The test case table gains a namespace field, the helper function accepts namespace as a parameter, and lease API operations use that parameter instead of hardcoding "kube-system".

Changes

Lease Recovery Test Namespace Parameterization

Layer / File(s) Summary
Test table and function signature updates
test/e2e/operator.go
Test case table adds a namespace field for each case, and each subtest passes both namespace and leaseName to the helper function. The testKCMLeaseRecovery function signature is updated to accept the namespace parameter.
Lease operations use provided namespace
test/e2e/operator.go
Lease deletion and the subsequent polling Get operations are updated to use the provided namespace parameter instead of the hardcoded "kube-system" namespace for CoordinationV1 Leases API calls.

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 12

❌ Failed checks (2 warnings, 10 inconclusive)

Check name Status Explanation Resolution
Title check ⚠️ Warning The title is vague and does not clearly relate to the actual changes, which focus on parameterizing lease recovery tests across namespaces. Use a more descriptive title that reflects the actual changes, such as 'Parameterize lease recovery test across multiple namespaces' or 'Refactor TestKCMLeaseRecovery to support namespace parameterization'.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Stable And Deterministic Test Names ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Test Structure And Quality ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Microshift Test Compatibility ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Single Node Openshift (Sno) Test Compatibility ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Topology-Aware Scheduling Compatibility ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Ote Binary Stdout Contract ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Ipv6 And Disconnected Network Test Compatibility ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
No-Weak-Crypto ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
Container-Privileges ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
No-Sensitive-Data-In-Logs ❓ Inconclusive Repository clone failed, so this custom check could not run with code access. Retry the review run. If this persists, inspect pre-merge custom-check logs for infrastructure or agent runtime failures.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Review ran into problems

🔥 Problems

Git: Failed to clone repository. Please run the @coderabbitai full review command to re-trigger a full review. If the issue persists, set path_filters to include or exclude specific files.


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

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 3, 2026

/test e2e-aws-operator-parallel-ote

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 3, 2026

/test e2e-gcp-operator-disruptive

@gangwgr
Copy link
Copy Markdown
Contributor Author

gangwgr commented Jun 3, 2026

/test e2e-aws-operator-preferred-host-ote

@gangwgr gangwgr marked this pull request as ready for review June 3, 2026 15:36
@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 Jun 3, 2026
@openshift-ci openshift-ci Bot requested review from atiratree and deads2k June 3, 2026 15:40
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 3, 2026

@gangwgr: The following test 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-aws-ovn aa0c868 link true /test e2e-aws-ovn

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.

@atiratree
Copy link
Copy Markdown
Member

/lgtm
/approve

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 5, 2026
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented Jun 5, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: atiratree

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 Jun 5, 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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants