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

🚸 improve coverage data collection #2

Merged
merged 3 commits into from
May 25, 2024

Conversation

burgholzer
Copy link
Member

@burgholzer burgholzer commented May 24, 2024

This PR improves how coverage data is collected and uploaded to codecov. Since we upload quite a couple of reports, the codecov CI was frequently failing, especially on PRs from forks.

This PR changes the workflows so that they first upload all Python coverage reports as artifacts, which are then collected and uploaded in one go.

Furthermore, this PR switches to using OIDC instead of CODECOV_TOKEN which eliminates the need for storing the codecov token as a repository secret.

An added benefit of this approach is that there is only one Python coverage upload; independent from the number of jobs and Python versions. Thus, the same coverage configuration can be used in all projects.

Before merging, this PR needs testing in at least one of the upstream repositories.

@burgholzer burgholzer self-assigned this May 24, 2024
@burgholzer burgholzer added continuous integration Anything related to the CI setup enhancement Improvement of an existing feature or request github_actions Pull requests that update Github_actions code labels May 24, 2024
this is to ensure that the codecov configuration is present
@burgholzer
Copy link
Member Author

Seems to be working: cda-tum/mqt-core#612

@burgholzer burgholzer merged commit fb662a1 into main May 25, 2024
2 checks passed
@burgholzer burgholzer deleted the improve-coverage-configuration branch May 25, 2024 07:50
burgholzer added a commit to cda-tum/mqt-core that referenced this pull request May 25, 2024
## Description

This PR experiments with the new coverage collection workflow proposed
in cda-tum/mqt-workflows#2. The workflow now
aggregates all coverage reports on the GitHub side before uploading to
Codecov. It also uses Codecov's OIDC instead of TOKEN upload.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.

---------

Signed-off-by: burgholzer <burgholzer@me.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
continuous integration Anything related to the CI setup enhancement Improvement of an existing feature or request github_actions Pull requests that update Github_actions code
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant