-
Notifications
You must be signed in to change notification settings - Fork 109
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
[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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will add up the complexity of deciding which components are required by the playground.
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.
Only PD and TiKV are needed.
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.
ngm may be needed afterwards
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.
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>
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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
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
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