Skip to content

*: Test DagRequest to MPPTasks#5369

Merged
ti-chi-bot merged 9 commits intopingcap:masterfrom
ywqdev:dag_request_to_tasks
Jul 15, 2022
Merged

*: Test DagRequest to MPPTasks#5369
ti-chi-bot merged 9 commits intopingcap:masterfrom
ywqdev:dag_request_to_tasks

Conversation

@ywqzzy
Copy link
Contributor

@ywqzzy ywqzzy commented Jul 14, 2022

What problem does this PR solve?

Issue Number: ref #4609

Problem Summary:

What is changed and how it works?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

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

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jul 14, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Lloyd-Pottiger
  • SeaRise

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Details

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 14, 2022
@ywqzzy ywqzzy changed the title *: Test Dag request to tasks *: Test DagRequest to tasks Jul 14, 2022
@SeaRise SeaRise self-requested a review July 14, 2022 09:30
@ywqzzy ywqzzy changed the title *: Test DagRequest to tasks *: Test DagRequest to MPPTasks Jul 14, 2022
@ywqzzy ywqzzy requested a review from guo-shaoge July 14, 2022 10:12
.buildMPPTasks(context);

size_t task_size = tasks.size();
std::vector<String> executors = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks cool. But what if swap executors[0] and executors[1] , it looks more comfortable. Because it's just like the output of explain!

Copy link
Contributor

Choose a reason for hiding this comment

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

Optional, not required.

Copy link
Contributor

Choose a reason for hiding this comment

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

Rest LGTM

Copy link
Contributor

@SeaRise SeaRise left a comment

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 added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 14, 2022
Copy link
Contributor

@Lloyd-Pottiger Lloyd-Pottiger left a comment

Choose a reason for hiding this comment

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

the rest LGTM

Comment on lines +28 to +32
context.addMockTable({"test_db", "test_table_1"}, {{"s1", TiDB::TP::TypeString}, {"s2", TiDB::TP::TypeString}, {"s3", TiDB::TP::TypeString}});
context.addMockTable({"test_db", "l_table"},
{{"s", TiDB::TP::TypeString}, {"join_c", TiDB::TP::TypeString}});
context.addMockTable({"test_db", "r_table"},
{{"s", TiDB::TP::TypeString}, {"join_c", TiDB::TP::TypeString}});
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe unify the style?

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 15, 2022
@ywqzzy
Copy link
Contributor Author

ywqzzy commented Jul 15, 2022

/merge

@ti-chi-bot
Copy link
Member

@ywqzzy: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

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 ti-community-infra/tichi repository.

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: a048ce6

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jul 15, 2022
@sre-bot
Copy link
Collaborator

sre-bot commented Jul 15, 2022

Coverage for changed files

Filename                              Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncCoprocessor.h                  1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/tests/gtest_split_tasks.cpp          67                38    43.28%           3                 0   100.00%         100                 0   100.00%          16                 8    50.00%
TestUtils/mockExecutor.cpp                 72                 8    88.89%          43                 5    88.37%         278                38    86.33%          34                 3    91.18%
TestUtils/mockExecutor.h                    6                 1    83.33%           6                 1    83.33%          15                 3    80.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                     146                47    67.81%          53                 6    88.68%         394                41    89.59%          50                11    78.00%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18578      9570             48.49%    210740  96355        54.28%

full coverage report (for internal network access only)

@ywqzzy
Copy link
Contributor Author

ywqzzy commented Jul 15, 2022

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Jul 15, 2022

Coverage for changed files

Filename                              Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncCoprocessor.h                  1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/tests/gtest_split_tasks.cpp          67                38    43.28%           3                 0   100.00%         100                 0   100.00%          16                 8    50.00%
TestUtils/mockExecutor.cpp                 72                 8    88.89%          43                 5    88.37%         278                38    86.33%          34                 3    91.18%
TestUtils/mockExecutor.h                    6                 1    83.33%           6                 1    83.33%          15                 3    80.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                     146                47    67.81%          53                 6    88.68%         394                41    89.59%          50                11    78.00%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18578      9570             48.49%    210740  96374        54.27%

full coverage report (for internal network access only)

@ywqzzy
Copy link
Contributor Author

ywqzzy commented Jul 15, 2022

/run-all-tests

@ywqzzy
Copy link
Contributor Author

ywqzzy commented Jul 15, 2022

/run-unit-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Jul 15, 2022

Coverage for changed files

Filename                              Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncCoprocessor.h                  1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/tests/gtest_split_tasks.cpp          67                38    43.28%           3                 0   100.00%         100                 0   100.00%          16                 8    50.00%
TestUtils/mockExecutor.cpp                 72                 8    88.89%          43                 5    88.37%         278                38    86.33%          34                 3    91.18%
TestUtils/mockExecutor.h                    6                 1    83.33%           6                 1    83.33%          15                 3    80.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                     146                47    67.81%          53                 6    88.68%         394                41    89.59%          50                11    78.00%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18580      9567             48.51%    210772  96352        54.29%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 537e88a into pingcap:master Jul 15, 2022
@sre-bot
Copy link
Collaborator

sre-bot commented Jul 15, 2022

Coverage for changed files

Filename                              Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Debug/dbgFuncCoprocessor.h                  1                 0   100.00%           1                 0   100.00%           1                 0   100.00%           0                 0         -
Flash/tests/gtest_split_tasks.cpp          67                38    43.28%           3                 0   100.00%         100                 0   100.00%          16                 8    50.00%
TestUtils/mockExecutor.cpp                 72                 8    88.89%          43                 5    88.37%         278                38    86.33%          34                 3    91.18%
TestUtils/mockExecutor.h                    6                 1    83.33%           6                 1    83.33%          15                 3    80.00%           0                 0         -
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                     146                47    67.81%          53                 6    88.68%         394                41    89.59%          50                11    78.00%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18580      9565             48.52%    210772  96304        54.31%

full coverage report (for internal network access only)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants