-
Notifications
You must be signed in to change notification settings - Fork 919
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 pdb collection testing occasional failure #5382
Conversation
/assign |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #5382 +/- ##
==========================================
- Coverage 29.35% 29.35% -0.01%
==========================================
Files 632 632
Lines 43862 43862
==========================================
- Hits 12877 12874 -3
- Misses 30050 30053 +3
Partials 935 935
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
thanks, looks like the issue is a conflict with other e2e tests again
others LGMT
Can you explain a little bit why the occasional error occurs? |
done |
test/e2e/resource_test.go
Outdated
|
||
deployment = testhelper.NewDeployment(pdbNamespace, deploymentName) | ||
pdb = testhelper.NewPodDisruptionBudget(pdbNamespace, pdbName, intstr.FromString("50%")) | ||
deployment.SetLabels(matchLabels) |
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.
bug found, it should be:
deployment.SetLabels(matchLabels) | |
deployment.Spec.Selector.MatchLabels = matchLabels | |
deployment.Spec.Template.Labels = matchLabels |
Signed-off-by: chaosi-zju <[email protected]>
/retest |
It is s ready to move forward~ |
/lgtm |
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.
Thanks~
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: XiShanYongYe-Chang 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 |
What type of PR is this?
/kind failing-test
What this PR does / why we need it:
these days, the e2e case [pdb status collection testing] often failed, such as:
https://github.com/karmada-io/karmada/actions/runs/10401933004/job/28805568396?pr=5378
https://github.com/karmada-io/karmada/actions/runs/10401933004/job/28811015421?pr=5378
work
status ofdeploment/nginx
in member1:work
status ofPodDisruptionBudget/nginx
in member1:so, the pdb selected more than 3 pods by
app:nginx
, it has selected another 3 pods created by other e2e cases.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: