Skip to content

Use new Codecov binary uploader#3

Merged
tzanio merged 1 commit intomfem:v2.0from
pazner:codecov-new-uploader
Nov 6, 2021
Merged

Use new Codecov binary uploader#3
tzanio merged 1 commit intomfem:v2.0from
pazner:codecov-new-uploader

Conversation

@pazner
Copy link
Copy Markdown
Member

@pazner pazner commented Nov 2, 2021

Should resolve mfem/mfem#2584

@v-dobrev
Copy link
Copy Markdown
Member

v-dobrev commented Nov 4, 2021

One thing we may want to add is the integrity check as recommended here: https://docs.codecov.com/docs/codecov-uploader

Otherwise, this looks good too me.

@v-dobrev v-dobrev requested review from tzanio and v-dobrev November 4, 2021 04:16
@v-dobrev
Copy link
Copy Markdown
Member

v-dobrev commented Nov 4, 2021

It looks like MFEM is actually NOT using the master branch from this repo but v2.0, see e.g. https://github.com/mfem/mfem/blob/167ff72edccc4e5b0a642ae3392ccaf50f455b9e/.github/workflows/builds-and-tests.yml#L204

So, I guess we should switch the target for this PR to the v2.0 branch.

@pazner pazner changed the base branch from master to v2.0 November 4, 2021 18:51
@pazner pazner force-pushed the codecov-new-uploader branch from 85218d6 to aa7d337 Compare November 4, 2021 18:58
shasum -a $i -c <(curl -s "https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM" | grep codecov)
done
# Effectively export the coverage report.
bash codecov -n "${{ inputs.name }}" -X gcov;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't think the new uploader supports -X gcov — do we need to do anything about this?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see the -X FEATURE argument in the documentation: https://docs.codecov.com/docs/codecov-uploader#uploader-command-line-arguments but I'm not sure the meaning is the same.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I tried grepping gcov in the repo of the source code for their new uploader, and it didn't look they support this option.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Based on the description, -X gcov is supposed to "Disable uploading the file" gcov, if I understand it correctly. Maybe the pattern -X FEATURE is just inaccurate and FEATURE is just FILE/DIRECTORY?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In the old uploader, -X gcov would disable running gcov (otherwise I think the uploader would run gcov in some circumstances).

In the new uploader, I think only -X network is supported. I don't think it does anything with gcov, so it's probably fine without the flag.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You are probably right. In the description of the bash uploader (https://docs.codecov.com/docs/about-the-codecov-bash-uploader), the case of -X gcov is explicitly listed along with other possible values for FEATURE, so it looks like the new uploader supports just FEATURE=network.

@pazner
Copy link
Copy Markdown
Member Author

pazner commented Nov 4, 2021

It looks like MFEM is actually NOT using the master branch from this repo but v2.0, see e.g. https://github.com/mfem/mfem/blob/167ff72edccc4e5b0a642ae3392ccaf50f455b9e/.github/workflows/builds-and-tests.yml#L204

So, I guess we should switch the target for this PR to the v2.0 branch.

Good point, I rebased and force pushed.

It's a bit confusing that master is actually behind…

@tzanio tzanio merged commit 3cf5987 into mfem:v2.0 Nov 6, 2021
@tzanio
Copy link
Copy Markdown
Member

tzanio commented Nov 6, 2021

It's a bit confusing that master is actually behind…

I think we should merge v2.0 in master... any objections?

@v-dobrev
Copy link
Copy Markdown
Member

v-dobrev commented Nov 6, 2021

It's a bit confusing that master is actually behind…

I think we should merge v2.0 in master... any objections?

Sounds good. I'm not sure if any other projects (besides the ones listed in the README: mfem, glvis, laghos, remhos) are using the master branch of this repo -- and even if they are, switching from the old master to v2.0 is probably fine.

@tzanio
Copy link
Copy Markdown
Member

tzanio commented Nov 6, 2021

See #4

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.

Switch codecov bash uploader to binary uploader (see documentation)

3 participants