test: stabilize flaky TestLoadLargeRules#10938
Conversation
|
Hi @flaky-claw. Thanks for your PR. I'm waiting for a tikv member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe watcher test helper enables ChangesWatcher test setup
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: Ryan Leung <rleungx@gmail.com>
eb91e20 to
85c6938
Compare
|
/retest |
|
@flaky-claw: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #10938 +/- ##
==========================================
+ Coverage 79.18% 79.27% +0.09%
==========================================
Files 540 541 +1
Lines 74894 75983 +1089
==========================================
+ Hits 59307 60239 +932
- Misses 11414 11501 +87
- Partials 4173 4243 +70
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
What problem does this PR solve?
Issue Number: close #10346
Problem Summary:
Flaky test
TestLoadLargeRulesingithub.com/tikv/pd/pkg/mcs/scheduling/server/ruleintermittently fails, so this PR stabilizes that path.What changed and how does it work?
Root Cause
Durable embedded-etcd setup writes could consume the test budget before the watcher load assertion was reached.
Fix
Setting
UnsafeNoFsyncremoves irrelevant unit-test disk durability cost while preserving etcd-backed bulk setup and watcher loading.Verification
Spec:
github.com/tikv/pd/pkg/mcs/scheduling/server/rule :: TestLoadLargeRulespd.issue_scoped.v1BASELINE_ONLYbaseline_onlyObserved result:
Required flaky case was not skipped.
target_flaky_corrected passed.
Gate checklist:
Commands:
go test -json ./pkg/mcs/scheduling/server/rule -run '^TestLoadLargeRules$' -count=1Release note
Fixes #10346
Summary by CodeRabbit