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

github: Report code coverage #5

Merged
merged 4 commits into from
May 7, 2022
Merged

github: Report code coverage #5

merged 4 commits into from
May 7, 2022

Conversation

ernestask
Copy link
Collaborator

Closes #4

@ernestask ernestask force-pushed the wip/ernestask/coverage branch 2 times, most recently from f3b3c7d to ccb1fb4 Compare May 2, 2022 07:50
@ernestask
Copy link
Collaborator Author

Right, using proc-macro2 is the issue: mozilla/grcov#494

@gluxon
Copy link
Owner

gluxon commented May 3, 2022

That's too bad about the procedural macro incompatibility. I'd be happy to take your first 3 commits though.

@ernestask
Copy link
Collaborator Author

No rush to get the changes in. :D I’ll spend some more time later to figure things out.

ernestask added 3 commits May 3, 2022 18:55
Since the filter allows all branches, it can be removed.
Currently, tests are run on 18.04 and 20.04, but 22.04 is out already,
so this commit drops 18.04 and adds the latest release.
@ernestask ernestask force-pushed the wip/ernestask/coverage branch 7 times, most recently from ca891e4 to ef68725 Compare May 3, 2022 17:05
@ernestask ernestask force-pushed the wip/ernestask/coverage branch from ef68725 to 04659f6 Compare May 3, 2022 17:46
@ernestask
Copy link
Collaborator Author

And now we got somewhere. Now the problem is with uploading coverage results (a token is required for private repos).

@gluxon
Copy link
Owner

gluxon commented May 4, 2022

Thank you so much!! 😊

I'll try to make the repo public this weekend. I don't think it's ready for a cargo publish, but no reason to hide it either.

@gluxon
Copy link
Owner

gluxon commented May 4, 2022

Thanks for separating the commits in this PR by the way. The descriptions for each change made this easy to follow.

args: --all-features --no-fail-fast
env:
LLVM_PROFILE_FILE: "nldl-%p-%m.profraw"
RUSTFLAGS: '-Cinstrument-coverage'
Copy link
Owner

Choose a reason for hiding this comment

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

Oh this flag is stable now? That's awesome.

@gluxon gluxon merged commit b7cd1e5 into main May 7, 2022
@gluxon gluxon deleted the wip/ernestask/coverage branch May 7, 2022 22:15
@gluxon
Copy link
Owner

gluxon commented May 14, 2022

@ernestask In case you were curious, we had to add the Ubuntu version to the Swatinem/rust-cache@v1 cache key before this worked as expected. 75e29c1

Thanks again for your work here. Was fairly surprised by this and thought I'd pass knowledge.

@ernestask
Copy link
Collaborator Author

Oh, thanks! It made no sense when I was looking at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setup Code Coverage
2 participants