test: stabilize flaky TestTxnGoString#69878
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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesTransaction string test
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.12.2)level=error msg="Running error: context loading failed: failed to load packages: failed to load packages: failed to load with go/packages: context deadline exceeded" 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 |
|
@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 #69878 +/- ##
================================================
- Coverage 76.3207% 74.0036% -2.3171%
================================================
Files 2041 2056 +15
Lines 559975 578270 +18295
================================================
+ Hits 427377 427941 +564
- Misses 131697 150003 +18306
+ Partials 901 326 -575
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 #69877
Problem Summary:
Flaky test
TestTxnGoStringintests/realtikvtest/txntestintermittently fails, so this PR stabilizes that path.What changed and how does it work?
Root Cause
TestTxnGoString had a storage-independent GoString assertion coupled to RealTiKV setup, so external PD/TiKV availability could fail the case before the intended behavior was exercised.
Fix
testkit.CreateMockStore(t)preserves the same begin/insert/rollback LazyTxn state transitions while removing unrelated external setup dependency.Verification
Spec:
tests/realtikvtest/txntest :: TestTxnGoStringtidb.go_flaky.defaultBASELINE_ONLYGO_TEST_WITH_TAGSintest, deadlockbaseline_onlyObserved result:
Required flaky case was not skipped.
target_flaky_exact passed.
build passed.
Gate checklist:
Commands:
go test -json -tags=intest,deadlock ./tests/realtikvtest/txntest -run '^TestTxnGoString$' -count=1make buildCheck List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
Fixes #69877
Summary by CodeRabbit