test: stabilize flaky TestLoadLargeRules#10938
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
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. |
|
Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits. 📝 Please follow instructions in the contributing guide to update your commits with the DCO Full details of the Developer Certificate of Origin can be found at developercertificate.org. The list of commits missing DCO signoff:
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. |
|
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)
📝 WalkthroughWalkthroughThe watcher test helper now starts embedded etcd with ChangesWatcher test setup
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
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