test: stabilize flaky TestWorkerPool/TwoWorkers#69767
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)
📝 WalkthroughWalkthroughThe ChangesWorker pool test synchronization
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Tools execution failed with the following error: Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error) 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #69767 +/- ##
================================================
- Coverage 76.3197% 74.2777% -2.0420%
================================================
Files 2041 2054 +13
Lines 560107 576092 +15985
================================================
+ Hits 427472 427908 +436
- Misses 131734 147877 +16143
+ Partials 901 307 -594
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@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. |
What problem does this PR solve?
Issue Number: close #69730
Problem Summary:
Flaky test
TestWorkerPool/TwoWorkersinpkg/executorintermittently fails, so this PR stabilizes that path.What changed and how does it work?
Root Cause
TwoWorkersdepended on a 1 ms sleep to let worker 2 start; overloaded scheduling could let worker 1 append2first.Fix
Channel synchronization observes the intended second-worker start directly and keeps the original
[1,3,2,4]assertion.Verification
Spec:
pkg/executor :: TestWorkerPool/TwoWorkerstidb.go_flaky.defaultBASELINE_ONLYGO_TEST_WITH_TAGSintest, deadlockbaseline_onlyObserved result:
Required flaky case was not skipped.
target_exact passed.
build passed.
lint passed.
Gate checklist:
Commands:
go test -json -tags=intest,deadlock ./pkg/executor -run '^TestWorkerPool/TwoWorkers$' -count=1make buildmake lintCheck List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
Fixes #69730
Summary by CodeRabbit