Skip to content

tests: fix unit tests for next-gen#62895

Merged
ti-chi-bot[bot] merged 20 commits into
pingcap:masterfrom
tangenta:next-gen-fix-unit-test
Aug 20, 2025
Merged

tests: fix unit tests for next-gen#62895
ti-chi-bot[bot] merged 20 commits into
pingcap:masterfrom
tangenta:next-gen-fix-unit-test

Conversation

@tangenta

@tangenta tangenta commented Aug 8, 2025

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: ref #61702

Problem Summary:

What changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

Signed-off-by: tangenta <tangenta@126.com>
@ti-chi-bot ti-chi-bot Bot added do-not-merge/needs-tests-checked release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed do-not-merge/needs-tests-checked labels Aug 8, 2025
@tiprow

tiprow Bot commented Aug 8, 2025

Copy link
Copy Markdown

Hi @tangenta. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

Details

Instructions 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.

Comment thread pkg/store/mockstore/teststore/store.go
@codecov

codecov Bot commented Aug 8, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 58.06452% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.9136%. Comparing base (d08f914) to head (1e3729d).
⚠️ Report is 58 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #62895        +/-   ##
================================================
+ Coverage   72.8153%   74.9136%   +2.0982%     
================================================
  Files          1795       1869        +74     
  Lines        487761     516025     +28264     
================================================
+ Hits         355165     386573     +31408     
+ Misses       110983     105993      -4990     
- Partials      21613      23459      +1846     
Flag Coverage Δ
integration 48.5903% <0.0000%> (?)
unit 72.4786% <58.0645%> (+0.2888%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 52.8700% <ø> (ø)
parser ∅ <ø> (∅)
br 62.9443% <ø> (+16.6150%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: tangenta <tangenta@126.com>
@ti-chi-bot ti-chi-bot Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 8, 2025
@tangenta

Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@tiprow

tiprow Bot commented Aug 11, 2025

Copy link
Copy Markdown

@tangenta: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/test pull-unit-test-next-gen

Instructions 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.

Signed-off-by: tangenta <tangenta@126.com>
@tangenta

Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@tiprow

tiprow Bot commented Aug 11, 2025

Copy link
Copy Markdown

@tangenta: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/test pull-unit-test-next-gen

Instructions 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.

@D3Hunter D3Hunter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest lgtm

Comment thread pkg/kv/kv_test.go
Comment thread pkg/testkit/mockstore.go Outdated
Signed-off-by: tangenta <tangenta@126.com>
@ti-chi-bot ti-chi-bot Bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Aug 12, 2025
@wuhuizuo

Copy link
Copy Markdown
Contributor

/test pull-unit-test-next-gen

@tiprow

tiprow Bot commented Aug 14, 2025

Copy link
Copy Markdown

@wuhuizuo: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/test pull-unit-test-next-gen

Instructions 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.

@wuhuizuo wuhuizuo added the nextgen Indicates that the Issue or PR belongs to the nextgen kernel architecture. label Aug 14, 2025
@tangenta

Copy link
Copy Markdown
Contributor Author

/test pull-unit-test-next-gen

@tiprow

tiprow Bot commented Aug 14, 2025

Copy link
Copy Markdown

@tangenta: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/test pull-unit-test-next-gen

Instructions 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.

Signed-off-by: tangenta <tangenta@126.com>
@tiprow

tiprow Bot commented Aug 19, 2025

Copy link
Copy Markdown

@tangenta: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/test pull-unit-test-next-gen

Instructions 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.

Signed-off-by: tangenta <tangenta@126.com>
…sChunkWith

Signed-off-by: tangenta <tangenta@126.com>
@wuhuizuo

Copy link
Copy Markdown
Contributor

/test pull-unit-test-next-gen

@tiprow

tiprow Bot commented Aug 20, 2025

Copy link
Copy Markdown

@wuhuizuo: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

Details

In response to this:

/test pull-unit-test-next-gen

Instructions 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.

@hawkingrei

Copy link
Copy Markdown
Contributor

/ok-to-test

@ti-chi-bot ti-chi-bot Bot added the ok-to-test Indicates a PR is ready to be tested. label Aug 20, 2025
Comment thread pkg/session/session.go Outdated
Comment thread DEPS.bzl
Comment thread DEPS.bzl
Signed-off-by: tangenta <tangenta@126.com>
Comment thread pkg/session/bootstrap_test.go Outdated

func TestTiDBUpgradeWithDistTaskEnable(t *testing.T) {
if kerneltype.IsNextGen() {
t.Skip("next-gen kernel system tables have different clustered pk setting, dropping pk will fail in upgradeToVer248")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
t.Skip("next-gen kernel system tables have different clustered pk setting, dropping pk will fail in upgradeToVer248")
t.Skip("the schema version of the first next-gen kernel release is 250, no need to go through upgrade operations below it, skip it")

please modify other messages too

Comment thread pkg/executor/importer/importer_testkit_test.go Outdated
Comment thread pkg/executor/importer/importer_testkit_test.go Outdated
Signed-off-by: tangenta <tangenta@126.com>
Signed-off-by: tangenta <tangenta@126.com>
@tangenta

Copy link
Copy Markdown
Contributor Author

/approve

@tangenta

Copy link
Copy Markdown
Contributor Author

/retest

@Benjamin2037 Benjamin2037 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-chi-bot

ti-chi-bot Bot commented Aug 20, 2025

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Benjamin2037, cfzjywxk, D3Hunter, hawkingrei, lance6716, tangenta, XuHuaiyu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the approved label Aug 20, 2025
@hawkingrei

Copy link
Copy Markdown
Contributor

/retest

@ti-chi-bot

ti-chi-bot Bot commented Aug 20, 2025

Copy link
Copy Markdown

@tangenta: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
non-block/pull-unit-test-next-gen 94cb323 link false /test pull-unit-test-next-gen

Full PR test history. Your PR dashboard.

Details

Instructions 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.

@hawkingrei

Copy link
Copy Markdown
Contributor

/retest

@ti-chi-bot ti-chi-bot Bot merged commit 8c88b61 into pingcap:master Aug 20, 2025
28 checks passed
tangenta added a commit to tangenta/tidb that referenced this pull request Aug 21, 2025
tangenta added a commit to tangenta/tidb that referenced this pull request Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved lgtm nextgen Indicates that the Issue or PR belongs to the nextgen kernel architecture. ok-to-test Indicates a PR is ready to be tested. release-note-none Denotes a PR that doesn't merit a release note. sig/planner SIG: Planner size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants