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

(CAT-1618) - Fix issue with code coverage in nightlies #74

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

jordanbreen28
Copy link
Contributor

@jordanbreen28 jordanbreen28 commented Jan 16, 2024

Summary

Prior to this PR, code coverage reports would attempt to upload from the nightlies despite no code coverage reports being generated. This is because we only run code coverage in the ci.yml job, and not nightly.yml.

This PR adds another conditional to the upload coverage reports to Codecov step, to ensure this step is only run when a coverage rake_task has been supplied.

Additional Context

You can see here that this step does not execute anymore when the coverage rask_task task is not run here https://github.com/puppetlabs/puppet-modulebuilder/actions/runs/7540032930/job/20523775839?pr=68.

When the coverage rask_task is run however, it executes like normal see here https://github.com/puppetlabs/puppet-modulebuilder/actions/runs/7540019355/job/20523734764

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

@jordanbreen28 jordanbreen28 added the bug Something isn't working label Jan 16, 2024
@jordanbreen28 jordanbreen28 force-pushed the CAT-1618-add_in_code_coverage branch 3 times, most recently from 316bc3f to 820b6cf Compare January 16, 2024 10:11
@jordanbreen28 jordanbreen28 marked this pull request as ready for review January 16, 2024 10:11
@jordanbreen28 jordanbreen28 requested a review from a team as a code owner January 16, 2024 10:11
Prior to this commit, code coverage reports would attempt to upload from
the nightlies despite no code coverage reports being generated. This is
because we only run code coverage in the ci.yml job, and not
nightly.yml.

This PR adds another conditional to the upload coverage reports to
Codecov step, to ensure this step is only run when a coverage rake_task
has been supplied.
@jordanbreen28 jordanbreen28 force-pushed the CAT-1618-add_in_code_coverage branch from 820b6cf to ef8fef8 Compare January 16, 2024 10:13
@david22swan david22swan merged commit d79af84 into main Jan 16, 2024
2 checks passed
@david22swan david22swan deleted the CAT-1618-add_in_code_coverage branch January 16, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants