Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

.*/: fix dm unit tests and integration tests #578

Merged
merged 12 commits into from
Apr 9, 2020
Merged

.*/: fix dm unit tests and integration tests #578

merged 12 commits into from
Apr 9, 2020

Conversation

lichunzhu
Copy link
Contributor

What problem does this PR solve?

This PR aims to fix wrong and unstable tests.

  1. Interationt tests relay_interrupt, start_task don't clear database dm_meta and relative database before each subtest. So the test result except the first one is meaningless,

What is changed and how it works?

  1. clear database dm_meta and relative database before each subtest. Use different table name for each subtest.

Check List

Tests

  • Unit test
  • Integration test

Related changes

  • Need to cherry-pick to the release branch

@lichunzhu lichunzhu added the priority/normal Minor change, requires approval from ≥1 primary reviewer label Apr 3, 2020
@codecov
Copy link

codecov bot commented Apr 7, 2020

Codecov Report

Merging #578 into master will increase coverage by 0.1022%.
The diff coverage is 77.4193%.

@@               Coverage Diff                @@
##             master       #578        +/-   ##
================================================
+ Coverage   57.6975%   57.7998%   +0.1022%     
================================================
  Files           200        200                
  Lines         20422      20244       -178     
================================================
- Hits          11783      11701        -82     
+ Misses         7472       7420        -52     
+ Partials       1167       1123        -44     

@lichunzhu
Copy link
Contributor Author

/run-all-tests

2 similar comments
@lichunzhu
Copy link
Contributor Author

/run-all-tests

@lichunzhu
Copy link
Contributor Author

/run-all-tests

@lichunzhu lichunzhu added the status/PTAL This PR is ready for review. Add this label back after committing new changes label Apr 8, 2020
@lichunzhu lichunzhu requested review from WangXiangUSTC and csuzhangxc and removed request for WangXiangUSTC April 8, 2020 15:25
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

rest LGTM

loader/loader.go Outdated Show resolved Hide resolved
loader/loader.go Outdated Show resolved Hide resolved
@csuzhangxc
Copy link
Member

/run-all-tests

Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM, @WangXiangUSTC PTAL

@csuzhangxc csuzhangxc added status/LGT1 One reviewer already commented LGTM and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Apr 9, 2020
Copy link
Contributor

@WangXiangUSTC WangXiangUSTC left a comment

Choose a reason for hiding this comment

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

LGTM

@WangXiangUSTC WangXiangUSTC added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM labels Apr 9, 2020
@lichunzhu lichunzhu merged commit 84b600f into master Apr 9, 2020
@lichunzhu lichunzhu deleted the fixTest branch April 9, 2020 07:15
csuzhangxc pushed a commit to csuzhangxc/dm that referenced this pull request Apr 17, 2020
lichunzhu added a commit that referenced this pull request Apr 17, 2020
* feature:  remove metrics when stopping task  (#575)

* .*/: fix dm unit tests and integration tests (#578)

* tests: fix merge

Co-authored-by: Amatist_Kurisu <[email protected]>
Co-authored-by: Chunzhu Li <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/normal Minor change, requires approval from ≥1 primary reviewer status/LGT2 Two reviewers already commented LGTM, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants