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 a comment for each PR about test coverage #690

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

engelmi
Copy link
Member

@engelmi engelmi commented Jan 8, 2024

This PR extends the integration test workflow in GH to add a comment about the test coverage to a PR. For this, it uses https://github.com/romeovs/lcov-reporter-action. It also splits the results of tmt into tmt logs and coverage results (html report and info file).

Note 1:
This can later be further extended to

  • create and use a badge (e.g. on the README) to display coverage
  • define coverage thresholds

Note 2:
The comment won't appear in this PR since it first needs to be merged and the comment workflow be part of this repository.

@mkemel
Copy link
Member

mkemel commented Jan 8, 2024

Shouldn't it add a comment in this PR already?

@engelmi
Copy link
Member Author

engelmi commented Jan 8, 2024

Shouldn't it add a comment in this PR already?

As far as I've understand it no. The purpose of this separate workflow is that its executed in a "secure" context and that is only when its run from checking out the bluechi repo, not the fork.

Copy link
Member

@mkemel mkemel left a comment

Choose a reason for hiding this comment

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

I understand that we can't test that it works until we merge it :) So let's merge and see

@engelmi engelmi force-pushed the add-coverage-comment branch from 66af930 to 15c41b5 Compare January 8, 2024 11:53
Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

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

LGTM

@engelmi engelmi merged commit ab78631 into eclipse-bluechi:main Jan 8, 2024
@engelmi engelmi deleted the add-coverage-comment branch February 28, 2024 08:01
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.

3 participants