[to #526] Add codecov on Github Action#524
Conversation
|
@andylokandy please create an issue for this PR and follow the PR title format as others. |
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Codecov Report
@@ Coverage Diff @@
## master #524 +/- ##
=========================================
Coverage ? 30.66%
Complexity ? 1265
=========================================
Files ? 278
Lines ? 17343
Branches ? 1975
=========================================
Hits ? 5318
Misses ? 11439
Partials ? 586 Continue to review full report at Codecov.
|
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
| run: curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh | ||
| - name: Start TiUP Playground | ||
| run: | | ||
| /home/runner/.tiup/bin/tiup playground ${{ matrix.tikv_version }} --mode tikv-slim --kv 1 --without-monitor --kv.config /home/runner/work/client-java/client-java/.github/config/tikv_rawkv.toml --pd.config /home/runner/work/client-java/client-java/.github/config/pd.toml &> raw.out 2>&1 & |
There was a problem hiding this comment.
What about adding a step to install necessary components via tiup install <components>:<version>, then we may need not to sleep too long.
There was a problem hiding this comment.
It will add up the complexity of deciding which components are required by the playground.
There was a problem hiding this comment.
Only PD and TiKV are needed.
There was a problem hiding this comment.
ngm may be needed afterwards
There was a problem hiding this comment.
I've tested with various ways but tiup seems too easy to run into race conditions so that the sleep time can not be eliminated. So I've reverted all attempts for tiup install.
Signed-off-by: andylokandy <andylokandy@hotmail.com>
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| tikv_version: [nightly, v5.0.4, v5.3.0, v5.4.0] |
There was a problem hiding this comment.
oh, how about [v5.0.0, v5.1.0, v5.2.0, v5.3.0, v5.4.0]?
There was a problem hiding this comment.
is there a way to point to the latest patch release on each major.minor.patch tikv version?
There was a problem hiding this comment.
I'm afraid it's too much for pull request ci. It's better to do it on release or nightly ci. Anyway, tiup list tikv | awk '{print $1}' should do the job.
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-3.1 in PR #533 |
|
/run-cherry-picker |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-3.2 in PR #562 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: Andy Lok <andylokandy@hotmail.com>
Signed-off-by: andylokandy andylokandy@hotmail.com
Ref #526
What is changed and how it works?
Add CI using Github Action. Intended to replace jenkins.
Code changes
Check List for Tests