Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix TestGetMergeRegionSizeAndCount test #52241

Merged
merged 5 commits into from Apr 10, 2024

Conversation

3pointer
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #52095 #52094

Problem Summary:
the backoff case will cost too mush time.

What changed and how does it work?

use failpoint and return parse error immediately.

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

@ti-chi-bot ti-chi-bot bot added release-note-none do-not-merge/needs-triage-completed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 29, 2024
Copy link

tiprow bot commented Mar 29, 2024

Hi @3pointer. 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.

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/test-infra repository.

@@ -406,6 +406,8 @@ func TestGetMergeRegionSizeAndCount(t *testing.T) {
}

ctx := context.Background()
failpoint.Enable("github.com/pingcap/tidb/br/pkg/conn/stop-retry-on-get-config-from-tikv", "return(true)")
Copy link
Member

Choose a reason for hiding this comment

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

It should check whether to return the no error. it will return an error if failpoint is deleted.

Copy link

codecov bot commented Mar 29, 2024

Codecov Report

Merging #52241 (2d580e8) into master (693ed4e) will decrease coverage by 1.0632%.
Report is 85 commits behind head on master.
The diff coverage is 100.0000%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #52241        +/-   ##
================================================
- Coverage   72.4066%   71.3435%   -1.0632%     
================================================
  Files          1490       1540        +50     
  Lines        366244     460545     +94301     
================================================
+ Hits         265185     328569     +63384     
- Misses        81476     111572     +30096     
- Partials      19583      20404       +821     
Flag Coverage Δ
integration 49.8755% <0.0000%> (?)
unit 71.0060% <100.0000%> (-1.2852%) ⬇️

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

Components Coverage Δ
dumpling 53.9957% <ø> (-2.3014%) ⬇️
parser ∅ <ø> (∅)
br 31.8670% <100.0000%> (-14.4136%) ⬇️

@hawkingrei
Copy link
Member

/ok-to-test

@hawkingrei
Copy link
Member

/retest

@hawkingrei
Copy link
Member

/check-issue-triage-complete

Signed-off-by: Leavrth <jianjun.liao@outlook.com>
@ti-chi-bot ti-chi-bot bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 7, 2024
Signed-off-by: Leavrth <jianjun.liao@outlook.com>
@Leavrth
Copy link
Contributor

Leavrth commented Apr 10, 2024

/test pull-br-integration-test

Copy link

tiprow bot commented Apr 10, 2024

@Leavrth: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test fast_test_tiprow
  • /test tidb_parser_test

Use /test all to run all jobs.

In response to this:

/test pull-br-integration-test

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/test-infra repository.

Signed-off-by: Jianjun Liao <jianjun.liao@outlook.com>
@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 10, 2024
@Leavrth
Copy link
Contributor

Leavrth commented Apr 10, 2024

/test pull-br-integration-test

Copy link

tiprow bot commented Apr 10, 2024

@Leavrth: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test fast_test_tiprow
  • /test tidb_parser_test

Use /test all to run all jobs.

In response to this:

/test pull-br-integration-test

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/test-infra repository.

Copy link

ti-chi-bot bot commented Apr 10, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hawkingrei, Leavrth

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

The pull request process is described here

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 lgtm label Apr 10, 2024
Copy link

ti-chi-bot bot commented Apr 10, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-04-07 07:21:18.256048543 +0000 UTC m=+774139.783589088: ☑️ agreed by Leavrth.
  • 2024-04-10 10:27:00.992163475 +0000 UTC m=+1044482.519704022: ☑️ agreed by hawkingrei.

@ti-chi-bot ti-chi-bot bot merged commit 5fc42c9 into pingcap:master Apr 10, 2024
32 checks passed
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created to branch release-8.1: #52487.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm needs-cherry-pick-release-8.1 ok-to-test release-note-none size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

index out of range in the TestGetMergeRegionSizeAndCount
4 participants