Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix e2e test issues when sno leader election enabled #434

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

haoqing0110
Copy link
Member

@haoqing0110 haoqing0110 commented Nov 29, 2024

Ref: open-cluster-management-io/ocm#727
https://issues.redhat.com/browse/ACM-15860

  • In assertManagedClusterManifestWorksAvailable and some cases, add the logic to check manifestwork finalizer, ensure the work agent starts working before each case.
  • In CreateHostedManagedClusterWithShortLeaseDuration, increase LeaseDurationSeconds to 10. Since the agent enables leader election, in some cases the agent might start slower than before, increasing the LeaseDurationSeconds to avoid force removal in assertManagedClusterDeleted in AfterEach.
  • When restartAgentPods, check the agent leader to ensure the work agent works before the next step.

@haoqing0110
Copy link
Member Author

/hold

@haoqing0110 haoqing0110 force-pushed the br_fix-e2e-sno branch 6 times, most recently from 761d9fc to 4914a0b Compare November 29, 2024 15:43
@haoqing0110
Copy link
Member Author

/test e2e

@haoqing0110 haoqing0110 force-pushed the br_fix-e2e-sno branch 6 times, most recently from 0a12a2c to 49e4845 Compare December 3, 2024 10:51
Copy link

sonarqubecloud bot commented Dec 4, 2024

@haoqing0110
Copy link
Member Author

/assign @qiujian16 @elgnay @zhiweiyin318

Choose a reason for hiding this comment

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

Copilot reviewed 5 out of 6 changed files in this pull request and generated no suggestions.

Files not reviewed (1)
  • test/e2e/klusterletconfig_test.go: Evaluated as low risk
Comments skipped due to low confidence (2)

test/e2e/util/util.go:107

  • The comment should be updated to reflect the new lease duration: LeaseDurationSeconds: 10.
// LeaseDurationSeconds: 5,

test/e2e/util/util.go:208

  • The comment should be updated to reflect the new lease duration: LeaseDurationSeconds: 10.
// LeaseDurationSeconds: 5,
@qiujian16
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 5, 2024
@zhiweiyin318
Copy link
Contributor

/lgtm

Copy link

openshift-ci bot commented Dec 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haoqing0110, qiujian16, zhiweiyin318

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-ci openshift-ci bot added the approved label Dec 5, 2024
@haoqing0110
Copy link
Member Author

/unhold

@openshift-merge-bot openshift-merge-bot bot merged commit dbe12e2 into stolostron:main Dec 5, 2024
9 checks passed
@haoqing0110 haoqing0110 deleted the br_fix-e2e-sno branch December 5, 2024 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants