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: update github action #4575

Merged
merged 12 commits into from
Jan 17, 2022
Merged

test: update github action #4575

merged 12 commits into from
Jan 17, 2022

Conversation

disksing
Copy link
Contributor

@disksing disksing commented Jan 13, 2022

What problem does this PR solve?

CI (especially jenkin CI) runs too slow.

What is changed and how it works?

  • All-in GitHub Actions
  • Split unit tests by weight
  • Run unit test and coverage in parallel

After merging this PR, we can discard unit test in Jenkins

Check List

Tests

  • Unit test

Release note

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jan 13, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JmPotato
  • rleungx

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.

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 Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Jan 13, 2022
@codecov
Copy link

codecov bot commented Jan 14, 2022

Codecov Report

Merging #4575 (770c292) into master (2aaca94) will increase coverage by 0.21%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4575      +/-   ##
==========================================
+ Coverage   74.68%   74.89%   +0.21%     
==========================================
  Files         276      276              
  Lines       27928    27611     -317     
==========================================
- Hits        20857    20680     -177     
+ Misses       5196     5064     -132     
+ Partials     1875     1867       -8     
Flag Coverage Δ
unittests 74.89% <ø> (+0.21%) ⬆️

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

Impacted Files Coverage Δ
server/storage/endpoint/rule.go 83.33% <0.00%> (-11.12%) ⬇️
server/schedule/placement/region_rule_cache.go 83.82% <0.00%> (-4.28%) ⬇️
server/cluster/store_limiter.go 47.50% <0.00%> (-3.57%) ⬇️
server/schedule/labeler/labeler.go 79.45% <0.00%> (-2.74%) ⬇️
server/election/leadership.go 73.19% <0.00%> (-2.07%) ⬇️
server/schedule/operator/status_tracker.go 94.00% <0.00%> (-0.24%) ⬇️
pkg/cache/fifo.go 100.00% <0.00%> (ø)
pkg/tempurl/tempurl.go 60.00% <0.00%> (ø)
pkg/movingaverage/queue.go 100.00% <0.00%> (ø)
server/storage/kv/mem_kv.go 100.00% <0.00%> (ø)
... and 17 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2aaca94...770c292. Read the comment docs.

ref tikv#4399

Signed-off-by: disksing <i@disksing.com>
@ti-chi-bot ti-chi-bot added release-note-none Denotes a PR that doesn't merit a release note. and removed release-note Denotes a PR that will be considered when it comes time to generate release notes. labels Jan 14, 2022
@disksing disksing marked this pull request as ready for review January 14, 2022 05:44
@ti-chi-bot ti-chi-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 14, 2022
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
scripts/ci-subtask.sh Outdated Show resolved Hide resolved
Co-authored-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: disksing <i@disksing.com>
func (s *testScatterRegionSuite) TestFiveSpecialStores(c *C) {
s.scatterSpecial(c, 5, 5, 100)
s.scatterSpecial(c, 5, 5, 1000)
func (s *testScatterRegionSuite) TestScatterRegions(c *C) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why to reduce them

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it runs too slow when -race is enabled.

@disksing disksing requested a review from lhy1024 January 14, 2022 09:43
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 17, 2022
@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 Jan 17, 2022
@JmPotato
Copy link
Member

/merge

@ti-chi-bot
Copy link
Member

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

/run-all-tests

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.

@disksing
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

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

/run-all-tests

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.

Commit hash: 26ca4d4

1 similar comment
@ti-chi-bot
Copy link
Member

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

Commit hash: 26ca4d4

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 17, 2022
@ti-chi-bot
Copy link
Member

@disksing: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

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.

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 ti-chi-bot merged commit cd51927 into tikv:master Jan 17, 2022
@disksing disksing deleted the makefile3 branch January 17, 2022 03:49
disksing added a commit to oh-my-tidb/pd that referenced this pull request Feb 8, 2022
* build: update GitHub Actions

ref tikv#4399

Signed-off-by: disksing <i@disksing.com>

* tidy

Signed-off-by: disksing <i@disksing.com>

* move docker out of check

Signed-off-by: disksing <i@disksing.com>

* Update scripts/ci-subtask.sh

Co-authored-by: JmPotato <ghzpotato@gmail.com>
Signed-off-by: disksing <i@disksing.com>

* clean up

Signed-off-by: disksing <i@disksing.com>

* 6 workers for pd-tests

Signed-off-by: disksing <i@disksing.com>

* merge together

Signed-off-by: disksing <i@disksing.com>

* minor update

Signed-off-by: disksing <i@disksing.com>

* simplify test

Signed-off-by: disksing <i@disksing.com>

Co-authored-by: JmPotato <ghzpotato@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
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. 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