test: stabilize flaky TestAnalyzeHighestPriorityTablesWithFailedAnalysis#68124
test: stabilize flaky TestAnalyzeHighestPriorityTablesWithFailedAnalysis#68124flaky-claw wants to merge 1 commit intopingcap:masterfrom
Conversation
|
The master agent encountered an error while processing. Please try again later. ℹ️ Learn more details on Pantheon AI. |
|
[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. PRs from untrusted users cannot be marked as trusted with 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. |
📝 WalkthroughWalkthroughThis PR addresses a flaky test by enabling test-mode initialization in the test entrypoint and adding the required dependency. The test logic is simplified by replacing a partitioned table with a non-partitioned one, reducing complexity in the test scenario. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #68124 +/- ##
================================================
- Coverage 77.7559% 77.6183% -0.1376%
================================================
Files 1990 1984 -6
Lines 551769 556152 +4383
================================================
+ Hits 429033 431676 +2643
- Misses 121816 123729 +1913
+ Partials 920 747 -173
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
/check-issue-triage-complete |
What problem does this PR solve?
Issue Number: close #68123
Problem Summary:
Flaky test
TestAnalyzeHighestPriorityTablesWithFailedAnalysisinpkg/statistics/handle/autoanalyze/refresherintermittently fails, so this PR stabilizes that path.What changed and how does it work?
Root Cause
The flaky root cause remains a TEST_ISSUE where the case accidentally used partitioned
t2and entered an unrelated dynamic-partition analyze race, while this address round fixes only the missing Bazel direct dep for the stagedintestimport.Fix
Adding
//pkg/util/intesttorefresher_testis necessary becausemain_test.gonow importsgithub.com/pingcap/tidb/pkg/util/intestdirectly and Bazel strict-deps must reflect that import explicitly.Verification
Spec:
pkg/statistics/handle/autoanalyze/refresher :: TestAnalyzeHighestPriorityTablesWithFailedAnalysistidb.go_flaky.defaultBASELINE_ONLYbaseline_onlyObserved result:
Required flaky case was not skipped.
Required flaky gate passed.
Affected scope regression gate passed.
Build safety gate passed.
Intent guard gate passed.
Gate checklist:
Commands:
go test -json ./pkg/statistics/handle/autoanalyze/refresher -run '^TestAnalyzeHighestPriorityTablesWithFailedAnalysis$' -count=1go test -json ./pkg/statistics/handle/autoanalyze/refresher -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 #68123
Summary by CodeRabbit
Note: This release contains internal test improvements with no user-visible changes.