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

executor: improve UT coverage of executor package #10728

Merged
merged 18 commits into from
Jun 11, 2019
Merged

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Jun 5, 2019

What problem does this PR solve?

improve UT coverage of executor package to about 82%.

What is changed and how it works?

add more tests.

Check List

Tests

  • Unit test

@@ -240,101 +240,6 @@ func (s *testSerialSuite) TestRecoverTableByJobID(c *C) {
c.Assert(gcEnable, Equals, false)
}

func (s *testSerialSuite) TestRecoverTableByTableName(c *C) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This UT is moved to package executor because:

  1. Code about this test is almost in executor/ddl.go and
  2. UT coverage of package ddl doesn't decrease.

@codecov
Copy link

codecov bot commented Jun 5, 2019

Codecov Report

Merging #10728 into master will increase coverage by 0.1038%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master     #10728        +/-   ##
================================================
+ Coverage   79.5733%   79.6772%   +0.1038%     
================================================
  Files           415        415                
  Lines         87993      87980        -13     
================================================
+ Hits          70019      70100        +81     
+ Misses        12793      12699        -94     
  Partials       5181       5181

@codecov
Copy link

codecov bot commented Jun 5, 2019

Codecov Report

Merging #10728 into master will increase coverage by 0.0362%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             master     #10728        +/-   ##
================================================
+ Coverage   79.8572%   79.8935%   +0.0363%     
================================================
  Files           415        415                
  Lines         88270      88310        +40     
================================================
+ Hits          70490      70554        +64     
+ Misses        12572      12551        -21     
+ Partials       5208       5205         -3

@qw4990
Copy link
Contributor Author

qw4990 commented Jun 6, 2019

/run-all-tests

@qw4990
Copy link
Contributor Author

qw4990 commented Jun 6, 2019

/run-all-tests

Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

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

LGTM

@alivxxx alivxxx added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 6, 2019
@zhouqiang-cl
Copy link
Contributor

/bench

@zhouqiang-cl
Copy link
Contributor

Bench result:

oltp_read_only oltp_point_select oltp_write_only oltp_read_write
TPS 3626.39 85065.14 5002.90 931.73
LAT95 108.68 5.99 92.42 530.08

Bench topology:
Count Type Version
TiDB 2 c4.4xlarge 674a294
TiKV 3 i3.2xlarge v3.0.0-rc.1
PD 3 m5d.xlarge v3.0.0-rc.1

@zhouqiang-cl
Copy link
Contributor

/bench

@sre-bot
Copy link
Contributor

sre-bot commented Jun 8, 2019

Bench result:

oltp_read_only oltp_point_select oltp_write_only oltp_read_write
TPS 3460.15 76848.12 4877.55 885.26
LAT95 104.84 6.79 94.10 539.71
LAT_AVG 73.97 3.33 52.45 288.83

Bench topology:
Count Type Version
TiDB 2 c4.4xlarge 674a294
TiKV 3 i3.2xlarge v3.0.0-rc.1
PD 3 m5d.xlarge v3.0.0-rc.1

@zhouqiang-cl
Copy link
Contributor

/bench

@sre-bot
Copy link
Contributor

sre-bot commented Jun 8, 2019

Bench result:

oltp_read_only oltp_point_select oltp_write_only oltp_read_write
TPS 3428.47 80720.20 4982.59 897.26
LAT95 101.13 6.21 90.78 530.08
LAT_AVG 74.65 3.17 51.35 285.08

Bench topology:
Count Type Version
TiDB 2 c4.4xlarge 674a294
TiKV 3 i3.2xlarge v3.0.0-rc.1
PD 3 m5d.xlarge v3.0.0-rc.1

@sre-bot
Copy link
Contributor

sre-bot commented Jun 8, 2019

Bench result:

oltp_read_only oltp_point_select oltp_write_only oltp_read_write
TPS 3444.70 83292.52 4904.28 892.45
LAT95 97.55 6.09 94.10 530.08
LAT_AVG 74.30 3.07 52.16 286.51

Bench topology:
Count Type Version
TiDB 2 c4.4xlarge 674a294
TiKV 3 i3.2xlarge v3.0.0-rc.1
PD 3 m5d.xlarge v3.0.0-rc.1

@sre-bot
Copy link
Contributor

sre-bot commented Jun 8, 2019

Bench result:

oltp_read_only oltp_point_select oltp_write_only oltp_read_write
TPS 3849.94 76456.32 4746.83 878.01
LAT95 89.16 7.04 104.84 549.52
LAT_AVG 66.48 3.35 53.89 291.16

Bench topology:
Count Type Version
TiDB 2 c4.4xlarge 674a294
TiKV 3 i3.2xlarge v3.0.0-rc.1
PD 3 m5d.xlarge v3.0.0-rc.1

@zhouqiang-cl
Copy link
Contributor

/bench

3 similar comments
@zhouqiang-cl
Copy link
Contributor

/bench

@zhouqiang-cl
Copy link
Contributor

/bench

@zhouqiang-cl
Copy link
Contributor

/bench

@sre-bot
Copy link
Contributor

sre-bot commented Jun 8, 2019

Bench result:

oltp_read_only oltp_point_select oltp_write_only oltp_read_write
TPS 3817.15 77548.85 4490.88 828.20
LAT95 89.16 6.79 112.67 580.02
LAT_AVG 67.05 3.30 56.97 308.88

Bench topology:
Count Type Version
TiDB 2 c4.4xlarge 674a294
TiKV 3 i3.2xlarge v3.0.0-rc.1
PD 3 m5d.xlarge v3.0.0-rc.1

@qw4990 qw4990 requested review from XuHuaiyu and winoros and removed request for XuHuaiyu June 10, 2019 05:11
@qw4990 qw4990 force-pushed the exec_UT branch 2 times, most recently from 475a83c to 5c92c12 Compare June 10, 2019 06:01
@qw4990 qw4990 requested review from zz-jason and removed request for zz-jason June 10, 2019 06:15
@qw4990
Copy link
Contributor Author

qw4990 commented Jun 10, 2019

/run-all-tests

1 similar comment
@qw4990
Copy link
Contributor Author

qw4990 commented Jun 10, 2019

/run-all-tests

@qw4990
Copy link
Contributor Author

qw4990 commented Jun 10, 2019

/run-all-tests

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason merged commit 71def9c into pingcap:master Jun 11, 2019
@zz-jason zz-jason added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/test sig/execution SIG execution status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants