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

[to #526] Add codecov on Github Action #524

Merged
merged 15 commits into from
Feb 18, 2022
Merged

[to #526] Add codecov on Github Action #524

merged 15 commits into from
Feb 18, 2022

Conversation

andylokandy
Copy link
Contributor

@andylokandy andylokandy commented Feb 15, 2022

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

  • No code

Check List for Tests

  • No code

@zz-jason
Copy link
Member

@andylokandy please create an issue for this PR and follow the PR title format as others.

@andylokandy andylokandy changed the title Add build test on Github Action [to #526] Add build test on Github Action Feb 16, 2022
.github/workflows/ci.yml Outdated Show resolved Hide resolved
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
Signed-off-by: andylokandy <andylokandy@hotmail.com>
@andylokandy andylokandy reopened this Feb 16, 2022
Signed-off-by: andylokandy <andylokandy@hotmail.com>
@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@b30a8ff). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 879ae78 differs from pull request most recent head 2cefaba. Consider uploading reports for the commit 2cefaba to get more accurate results

Impacted file tree graph

@@            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.

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

Signed-off-by: andylokandy <andylokandy@hotmail.com>
@andylokandy andylokandy changed the title [to #526] Add build test on Github Action [to #526] Add codecov on Github Action Feb 16, 2022
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Show resolved Hide resolved
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 &
Copy link
Member

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.

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 will add up the complexity of deciding which components are required by the playground.

Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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>
Copy link
Member

@zz-jason zz-jason left a 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]
Copy link
Member

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]?

Copy link
Member

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?

Copy link
Contributor Author

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.

@andylokandy andylokandy linked an issue Feb 17, 2022 that may be closed by this pull request
2 tasks
Copy link
Collaborator

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason merged commit 49476d7 into tikv:master Feb 18, 2022
ti-srebot pushed a commit to ti-srebot/client-java that referenced this pull request Feb 18, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Collaborator

cherry pick to release-3.1 in PR #533

zz-jason pushed a commit that referenced this pull request Feb 21, 2022
Co-authored-by: Andy Lok <andylokandy@hotmail.com>
@zz-jason
Copy link
Member

/run-cherry-picker

ti-srebot pushed a commit to ti-srebot/client-java that referenced this pull request Mar 22, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Collaborator

cherry pick to release-3.2 in PR #562

zz-jason pushed a commit that referenced this pull request Mar 22, 2022
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

Co-authored-by: Andy Lok <andylokandy@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add coverage report to CI
5 participants