test: pin upgrade start version in TestUpgradeVersion284EnableTxnFile - #70692
Conversation
Signed-off-by: Ping Yu <yuping@pingcap.com>
The test derived its upgrade start version from session.CurrentBootstrapVersion - 1, so any PR that bumps the bootstrap version (e.g. pingcap#70599, version284 -> version285) makes the upgrade start at 284 and upgradeToVer284 never runs, failing all 5 subtests in pull_unit_test_next_gen (issue pingcap#70691). Pin the start version to 283 (= version284 - 1) so the ver284 step under test always executes regardless of later bootstrap version bumps. Issue link: pingcap#70691 Signed-off-by: Ping Yu <yuping@pingcap.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe bootstrap upgrade test now runs on classic and next-gen kernels. It starts from version 283 so it always exercises the version 284 upgrade path, even when the current bootstrap version advances. ChangesBootstrap upgrade test
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This is a localized test-only change that pins the upgrade start version and limits the test to the applicable kernel; no actionable merge-blocking risk remains after normal checks and review. Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
Full details: Description checkExplanation The description includes the required issue reference, problem summary, implementation details, test checklist, side effects, documentation, and release note sections. However, it states that the test remains restricted to the next-generation kernel, which conflicts with the summarized diff that removes the classic-kernel skip. Full details: Linked Issues checkExplanation The hardcoded upgrade start version of 283 addresses issue Full details: Out of Scope Changes checkExplanation Pinning the upgrade start version is in scope for issue
✨ 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 #70692 +/- ##
================================================
- Coverage 76.3185% 73.2732% -3.0453%
================================================
Files 2041 2085 +44
Lines 557554 585428 +27874
================================================
+ Hits 425517 428962 +3445
- Misses 131137 155828 +24691
+ Partials 900 638 -262
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
[LGTM Timeline notifier]Timeline:
|
|
/retest |
Signed-off-by: Ping Yu <yuping@pingcap.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bb7133, windtalker The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: close #70691
Problem Summary:
TestUpgradeVersion284EnableTxnFilederived its upgrade start version fromsession.CurrentBootstrapVersion - 1. Any PR that bumps the bootstrap version (e.g. #70599,version284->version285) makes the upgrade under test start at 284, soupgradeToVer284never runs and all 5 subtests fail inpull_unit_test_next_gen(see issue #70691 for the full CI log and per-subtest failures).Also,
upgradeToVer284no-ops on the classic kernel, so the test's interesting assertions only apply to the next-gen kernel.What changed and how does it work?
version284 - 1) so the ver284 migration step under test always executes, regardless of later bootstrap version bumps. Later upgrade steps (285+) still run afterwards and do not touch the txn-file variables.kerneltype.IsClassic() -> t.Skip), matching the kernel-conditional behavior ofupgradeToVer284itself.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
Summary by CodeRabbit