test: stabilize flaky TestDropBindBySQLDigest - #71569
flaky-claw wants to merge 1 commit into
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 |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughTestDropBindBySQLDigest now creates a mock store without a domain. It removes explicit binding cache reload and garbage-collection calls, and checks for empty binding rows after dropping bindings. ChangesBind digest test
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~4 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to This test-only cleanup retains the check that digest-dropped bindings are no longer active. No product-behavior risk is established, though the reported blocked gates leave the flake-stabilization result unconfirmed. 🚥 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. A rabbit checks each binding row, Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #71569 +/- ##
================================================
- Coverage 76.2996% 72.0872% -4.2124%
================================================
Files 2041 2109 +68
Lines 554520 598505 +43985
================================================
+ Hits 423097 431446 +8349
- Misses 130523 165733 +35210
- Partials 900 1326 +426
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 #71532
Problem Summary:
Flaky test
TestDropBindBySQLDigestinpkg/bindinfo/testsintermittently fails, so this PR stabilizes that path.What changed and how does it work?
Root Cause
Redundant full binding reloads and global GC calls inflated a timeout-sensitive flaky test without strengthening its digest-drop assertions.
Fix
DropBinding already refreshes cache on success, and session binding drops do not need global storage GC.
Verification
Spec:
pkg/bindinfo/tests :: TestDropBindBySQLDigesttidb.go_flaky.defaultBASELINE_ONLYGO_TEST_WITH_TAGSintest, deadlockbaseline_onlyObserved result:
Gate checklist:
Commands:
timeout 3s /tmp/bindinfo-tests-fixed.test -test.v -test.run '^TestDropBindBySQLDigest$' -test.count=1Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
Fixes #71532
Summary by CodeRabbit