tests: deflake TestCompactionHash - #22151
Conversation
Wait for physical compaction to complete instead of relying on a fixed sleep, which may expire before scheduled compaction finishes. Fixes etcd-io#21980 Signed-off-by: Eti Ijeoma <ijayeti@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Aijeyomah 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 @Aijeyomah. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. 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. |
|
/ok-to-test |
|
Use stress command described in https://gist.github.com/liggitt/6a3a2217fa5f846b52519acfc0ffece0 to confirm deflaking deflake |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted filessee 28 files with indirect coverage changes @@ Coverage Diff @@
## main #22151 +/- ##
==========================================
- Coverage 69.73% 69.69% -0.05%
==========================================
Files 449 449
Lines 38177 38188 +11
==========================================
- Hits 26624 26615 -9
- Misses 10123 10145 +22
+ Partials 1430 1428 -2 Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
@serathius Thanks. I have confirmed using the stress command and updated the command and result in the pr description |
|
Don't see changes. Please faimilarize youself with https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#ai-guidance Or this PR will be closed |
|
/retest |
I have updated the PR description properly and added my usage of AI. I also added screenshots of the results before and after the fix using the stress test commands. |
|
@Aijeyomah: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
Fixes #21980
TestCompactionHashwait for compaction to finish before continuing, removing the timing-related flake.Note on AI usage
I used AI to understand why TestCompactionHash was flaky. The fixes and the test were done by me.
Testing:
before:
After the fix