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

ci: fix coverage build #1106

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

grondo
Copy link
Contributor

@grondo grondo commented Nov 2, 2023

I noticed that the coverage build is always reporting Warning: make check failed, trying recheck in ./t. Apparently, this isn't because make check-code-coverage is failing, but because one of the subsequent coverage blah steps is.

Possibly some change in the cmake check-code-coverage target is causing one of these steps to fail, or maybe it was always like this for flux-sched. Anyway, this PR just removes some of the post-check coverage steps and makes a couple others optional to avoid the extra unnecessary work of make recheck.

Problem: It appears that the coverage check commands return a
nonzero exit status even when `make check-code-coverage` succeeds,
and  therefore `make recheck` is unnecessarily executed.

The failure appears to be in one of the post-check steps,
which are possibly duplicated from the cmake version of `make
check-code-coverage`.  In any event, remove 'coverage html' (which
probably isn't useful anyway), and make success of `coverage xml`
and `coverage report` optional.
@grondo grondo requested a review from trws November 2, 2023 16:37
Copy link
Member

@trws trws left a comment

Choose a reason for hiding this comment

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

Looks good to me, good catch @grondo!

@grondo
Copy link
Contributor Author

grondo commented Nov 2, 2023

Thanks! I'll set MWP.

@grondo grondo added the merge-when-passing mergify.io - merge PR automatically once CI passes label Nov 2, 2023
@mergify mergify bot merged commit 8da547c into flux-framework:master Nov 2, 2023
20 checks passed
@grondo grondo deleted the ci-coverage-fix branch November 2, 2023 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-when-passing mergify.io - merge PR automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants