-
Notifications
You must be signed in to change notification settings - Fork 720
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
tools/ut: accelerate the build process and scatter test #8342
Conversation
/hold |
d4483c3
to
033c789
Compare
Signed-off-by: husharp <[email protected]>
/unhold |
Signed-off-by: husharp <[email protected]>
# unit tests ignore `tests` | ||
./bin/pd-ut run --race --ignore tests --coverprofile $ROOT_PATH_COV || exit 1 | ||
# unit tests ignore `tests`, `server`, `schedule`,`utils` and `encryption` | ||
./bin/pd-ut run --ignore tests,server,pkg/schedule,pkg/utils,pkg/encryption --race --coverprofile $ROOT_PATH_COV --junitfile $ROOT_PATH_JUNITFILE || exit 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if these packages are deleted or renamed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be necessary to manually change the code,when noticing abnormal test time
/test codecov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- codev can reveal missing tests
- Redundant tests can be reacted to at test time
Signed-off-by: husharp <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8342 +/- ##
=======================================
Coverage 77.20% 77.20%
=======================================
Files 470 470
Lines 61645 61651 +6
=======================================
+ Hits 47590 47597 +7
+ Misses 10474 10470 -4
- Partials 3581 3584 +3
Flags with carried forward coverage won't be shown. Click here to find out more. |
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@purelind: adding LGTM is restricted to approvers and reviewers in OWNERS files. In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024, purelind, rleungx 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 |
/unhold |
What problem does this PR solve?
accelerate pd-ut, for now all tests can be executed in 5min
Issue Number: Ref #7969
What is changed and how does it work?
race
junitfile
in ci to indicate test timecheck junitfile
Check List
Tests
Release note