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

*: fix ci covprofile by updating codecov version and replacing cover pkg #8044

Merged
merged 2 commits into from Apr 9, 2024

Conversation

HuSharp
Copy link
Member

@HuSharp HuSharp commented Apr 9, 2024

What problem does this PR solve?

Issue Number: Ref #4399

What is changed and how does it work?

meet error no packages being tested depend on matches for pattern /data/nvme0n1/husharp/proj/pd/client/../...

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)

Release note

None.

Copy link
Contributor

ti-chi-bot bot commented Apr 9, 2024

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • nolouch

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.

Copy link
Contributor

ti-chi-bot bot commented Apr 9, 2024

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot bot added release-note-none do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Apr 9, 2024
@ti-chi-bot ti-chi-bot bot requested review from disksing and JmPotato April 9, 2024 10:14
@ti-chi-bot ti-chi-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 9, 2024
Copy link

codecov bot commented Apr 9, 2024

Codecov Report

Merging #8044 (7f558dc) into master (35e8e95) will increase coverage by 11.98%.
Report is 1 commits behind head on master.
The diff coverage is n/a.

❗ Current head 7f558dc differs from pull request most recent head eb74a79. Consider uploading reports for the commit eb74a79 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #8044       +/-   ##
===========================================
+ Coverage   65.31%   77.30%   +11.98%     
===========================================
  Files         465      468        +3     
  Lines       52480    60867     +8387     
===========================================
+ Hits        34279    47053    +12774     
+ Misses      15183    10273     -4910     
- Partials     3018     3541      +523     
Flag Coverage Δ
unittests 77.30% <ø> (+11.98%) ⬆️

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

Signed-off-by: husharp <jinhao.hu@pingcap.com>
@HuSharp HuSharp requested review from nolouch and rleungx April 9, 2024 11:00
@HuSharp HuSharp marked this pull request as ready for review April 9, 2024 11:00
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 9, 2024
@@ -72,7 +72,7 @@ jobs:
TOTAL_JOBS: ${{needs.chunks.outputs.job-total}}
run: for i in $(seq 1 $TOTAL_JOBS); do cat covprofile_$i >> covprofile; done
- name: Send coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4.2.0
Copy link
Member Author

Choose a reason for hiding this comment

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

error is

https://codecov.io/upload/v4?package=github-action-v1.5.2-1.0.3&token=secret&branch=improve-linter&commit=9f34462e696c925657636f437c894bad31fac16e&build=8586757005&build_url=http%3A%2F%2Fgithub.com%2Ftikv%2Fpd%2Factions%2Fruns%2F8586757005&name=codecov-umbrella&tag=&slug=tikv%2Fpd&service=github-actions&flags=unittests&pr=8015&job=PD+Test&cmd_args=n,F,Q,f,C
{'detail': ErrorDetail(string='Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.', code='not_found')}

need to update codecov version ref codecov/codecov-action#557

can check more information in https://github.com/tikv/pd/actions/runs/8586757005/job/23529728059?pr=8015

@HuSharp
Copy link
Member Author

HuSharp commented Apr 9, 2024

image

@@ -35,8 +35,8 @@ test: failpoint-enable
$(MAKE) failpoint-disable

ci-test-job:
if [ -f covprofile ]; then rm ./$(value test_name)/covprofile; fi
CGO_ENABLED=1 go test ./$(value test_name)/... -v -tags deadlock -race -cover -covermode=atomic -coverprofile=./$(value test_name)/covprofile -coverpkg=$(ROOT_PATH)/...
if [ -f ./$(value test_name)/covprofile ]; then rm ./$(value test_name)/covprofile; fi
Copy link
Member Author

Choose a reason for hiding this comment

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

use absolute path because
meet such error no packages being tested depend on matches for pattern /data/nvme0n1/husharp/proj/pd/client/../...

@HuSharp HuSharp changed the title makefile: fix ci covprofile by cover pkg makefile: fix ci covprofile by updating codecov version and replacing cover pkg Apr 9, 2024
@HuSharp HuSharp changed the title makefile: fix ci covprofile by updating codecov version and replacing cover pkg *: fix ci covprofile by updating codecov version and replacing cover pkg Apr 9, 2024
@ti-chi-bot ti-chi-bot bot added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 9, 2024
@nolouch nolouch added the require-LGT1 Indicates that the PR requires an LGTM. label Apr 9, 2024
@nolouch
Copy link
Contributor

nolouch commented Apr 9, 2024

/merge

Copy link
Contributor

ti-chi-bot bot commented Apr 9, 2024

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

/run-all-tests

You only need to trigger /merge once, and 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.

If you have any questions about the PR merge process, please refer to pr process.

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.

Copy link
Contributor

ti-chi-bot bot commented Apr 9, 2024

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

Commit hash: 7f558dc

@ti-chi-bot ti-chi-bot bot added the status/can-merge Indicates a PR has been approved by a committer. label Apr 9, 2024
Copy link
Contributor

ti-chi-bot bot commented Apr 9, 2024

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

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 bot merged commit 2b8116e into tikv:master Apr 9, 2024
22 checks passed
@HuSharp HuSharp deleted the fix_coverprofile branch April 9, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none require-LGT1 Indicates that the PR requires an LGTM. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants