-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-5467 Add codecov integration #2690
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
Draft
blink1073
wants to merge
8
commits into
mongodb:master
Choose a base branch
from
blink1073:PYTHON-5467
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+108
−1
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
dcb0851
PYTHON-5467 Add codecov integration
blink1073 2a36785
fix coverage target
blink1073 2b714fe
add codecov config
blink1073 a1a464f
generate xml report
blink1073 90aea18
allow search to find coverage file
blink1073 285ee75
fix handling of codecov
blink1073 e01d66a
debug
blink1073 399ad55
debug
blink1073 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| comment: # this is a top-level key | ||
| layout: " diff, flags, files" | ||
| behavior: default | ||
| require_changes: true | ||
| require_base: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #!/bin/bash | ||
| # shellcheck disable=SC2154 | ||
| # Upload a coverate report to codecov. | ||
| set -eux | ||
|
|
||
| echo "Inside upload-codecov script" | ||
|
|
||
| if [ -z "${github_pr_number:-}" ]; then | ||
| echo "This is not a PR, not running codecov" | ||
| exit 0 | ||
| fi | ||
|
|
||
| if [ ! -f "xunit-results/TEST-results.xml" ]; then | ||
| echo "There are no XML test results, not running codecov" | ||
| exit 0 | ||
| fi | ||
|
|
||
| # TODO: handle linux and windows. | ||
| curl -Os https://cli.codecov.io/latest/linux/codecov | ||
| curl -Os https://cli.codecov.io/latest/linux/codecov.SHA256SUM | ||
| shasum -a 256 -c codecov.SHA256SUM | ||
| sudo chmod +x codecov | ||
| ./codecov upload-process \ | ||
| --report-type test_results \ | ||
| --disable-search \ | ||
| --fail-on-error \ | ||
| --token ${CODECOV_TOKEN} \ | ||
| --pr ${github_pr_number} \ | ||
| --sha "${github_commit}" \ | ||
| --branch "${github_author}:${github_pr_head_branch}" \ | ||
| --flag "${build_variant}-${task_name}" \ | ||
| --file xunit-results/TEST-results.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.