-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix e2e test issues when sno leader election enabled #434
Conversation
/hold |
761d9fc
to
4914a0b
Compare
/test e2e |
0a12a2c
to
49e4845
Compare
Signed-off-by: Qing Hao <[email protected]>
49e4845
to
442144a
Compare
|
/assign @qiujian16 @elgnay @zhiweiyin318 |
There was a problem hiding this comment.
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,
/lgtm |
/lgtm |
[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 |
/unhold |
Ref: open-cluster-management-io/ocm#727
https://issues.redhat.com/browse/ACM-15860
assertManagedClusterManifestWorksAvailable
and some cases, add the logic to check manifestwork finalizer, ensure the work agent starts working before each case.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 inassertManagedClusterDeleted
in AfterEach.restartAgentPods
, check the agent leader to ensure the work agent works before the next step.