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

Add tarpaulin based code coverage job #146

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Conversation

tomaszklak
Copy link
Contributor

@tomaszklak tomaszklak commented Oct 3, 2023

This is a port from previous version of CI and uses the same command as previously.

There might seem to be multiple other and better ways to do it but they are all broken in some ways.

We could use the action https://github.com/actions-rs/tarpaulin but that one is no longer maintained. The last version of tarpaulin it works with is 0.22 from October 2022 and the fix is still not merged in after multiple months: actions-rs/tarpaulin#23 . Additionally there are discussions to deprecate this action: actions-rs/tarpaulin#6

Alternatively we could have used the 'official' docker image of tarpaulin: https://hub.docker.com/r/xd009642/tarpaulin . This will not work since when github action runs in a docker, the container is not started with enough privileges which causes tarpaulin to crash, see as an example of this here:
xd009642/tarpaulin#146

☑️ Definition of Done checklist

  • Commit history is clean (requirements)
  • README.md is updated
  • changelog.md is updated

@tomaszklak tomaszklak marked this pull request as ready for review October 3, 2023 14:47
packgron
packgron previously approved these changes Oct 4, 2023
Copy link
Collaborator

@packgron packgron left a comment

Choose a reason for hiding this comment

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

lgtm +2.0

packgron
packgron previously approved these changes Oct 4, 2023
@tomaszklak tomaszklak enabled auto-merge October 4, 2023 08:22
@tomaszklak tomaszklak force-pushed the LLT-4043-code-coverage branch from e559119 to 65aba2e Compare October 4, 2023 09:13
This is a port from previous version of CI and uses the same command as
previously.

There might seem to be multiple other and better ways to do it but they
are all broken in some ways.

We could use the action https://github.com/actions-rs/tarpaulin but
that one is no longer maintained. The last version of tarpaulin it works
with is 0.22 from October 2022 and the fix is still not merged in after
multiple months: actions-rs/tarpaulin#23 .
Additionally there are discussions to deprecate this action:
actions-rs/tarpaulin#6

Alternatively we could have used the 'official' docker image of
tarpaulin: https://hub.docker.com/r/xd009642/tarpaulin . This will not
work since when github action runs in a docker, the container is not
started with enough privileges which causes tarpaulin to crash, see as
an example of this here:
xd009642/tarpaulin#146
@tomaszklak tomaszklak merged commit adbe101 into main Oct 4, 2023
@tomaszklak tomaszklak deleted the LLT-4043-code-coverage branch October 4, 2023 10:56
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.

2 participants