-
Notifications
You must be signed in to change notification settings - Fork 128
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
Split codecov into separate job, combine coverage of all matrix jobs #968
Conversation
Combining coverage from all matrix jobs is beneficial for any version-dependent code paths. Resolves <#845>. Co-authored-by: Victor Lin <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #968 +/- ##
==========================================
+ Coverage 59.34% 61.43% +2.09%
==========================================
Files 42 44 +2
Lines 6011 6623 +612
Branches 1539 1769 +230
==========================================
+ Hits 3567 4069 +502
- Misses 2185 2286 +101
- Partials 259 268 +9
Continue to review full report at Codecov.
|
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.
Looks good! Of course, No source for code
is pretty descriptive looking back at it now.
It's interesting that there are coverage increases from this change. I thought coverage would only increase if we have version-dependent code paths, but the lines that have changed coverage aren't version-dependent. Do you have an idea what else could explain this?
Also, I found out you can edit PRs from forks using |
I noticed that too and made a cursory look into it but didn't come to a conclusion. I suspect noise. It'd be good to understand this, but I also think it's most likely benign.
Hmm. Unless |
Hmm, looks like maybe not based on trying it with #948.
|
@tsibley oh I hadn't enabled Allow edits and access to secrets by maintainers, it's on now if you'd like to try again. |
@victorlin Same issue. The Earlier I tried to test out how If you still have the branch around for nextstrain/nextstrain.org#520, I'd be curious to see the output of this from your local repo:
(If the local branch isn't named |
@tsibley I had removed it after making changes on that PR, but just did the following:
Maybe something is different now that the PR is closed. If you're still curious like me, can you open a PR from a personal fork and I can try using |
|
Also, noting that I can see the README edit button on https://github.com/tsibley/augur/tree/test-pr-from-fork now, that branch only. So it looks like selective push access to the branch (as long as Allow edits and access to secrets by maintainers is enabled and the PR is open?). EDIT: yeah, I took a closer look and checking that option in #948 makes it seem like it's set: but it's unchecked upon refreshing the page. Sounds like a GitHub bug, that option should not be shown on closed PRs. |
Yep, so selective authz against the branch in the originating repo. (A possibly related thing you might be interested in knowing is that (roughly) GitHub physically stores forks in the same physical repo as the base, which is why you can view commits from a fork in the base repo's context.) |
Combining coverage from all matrix jobs is beneficial for any
version-dependent code paths.
Resolves #845.
Co-authored-by: Victor Lin [email protected]
Related issue(s)
The original patch from my comment in #899 (comment) was applied unchanged by @victorlin in #948. In this PR, I correct a small omission in my original patch that didn't provide the Augur source code needed by
coverage xml
. New PR as #948 was against Victor's personal fork not a shared branch.Testing