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

Fix codecov upload for Jenkins CI scripts #6493

Conversation

antoninbas
Copy link
Contributor

@antoninbas antoninbas commented Jun 27, 2024

It seems that codecov upload has been broken for a while for ci/jenkins/test-vmc.sh and ci/jenkins/test-mc.sh. The file pattern must be quoted when calling the codecov binary, or the glob will be expanded by the shell instead of by codecov (which is bad because we want the glob to be expanded in the context of the search directory).

We also set "disable_search" to "true" when using the codecov-action in Github workflows. This action uses the codecov CLI and there is no need to keep search enabled when providing an explicit and comprehensive list of files to include in the report.

It seems that codecov upload has been broken for a while for
ci/jenkins/test-vmc.sh and ci/jenkins/test-mc.sh. The file pattern must
be quoted when calling the codecov binary, or the glob will be expanded
by the shell instead of by codecov (which is bad because we want the
glob to be expanded in the context of the search directory).

We also set "disable_search" to "true" when using the codecov-action in
Github workflows. This action uses the codecov CLI and there is no need
to keep search enabled when providing an explicit and comprehensive list
of files to include in the report.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
@antoninbas antoninbas force-pushed the fix-codecov-upload-for-jenkins-ci-scripts branch from b89ace8 to abb3802 Compare June 27, 2024 23:21
@antoninbas
Copy link
Contributor Author

/test-all
/test-multicluster-e2e

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas
Copy link
Contributor Author

I checked everything manually (Github workflows and Jenkins jobs) and it seems that coverage can now be uploaded successfully.

@antoninbas antoninbas merged commit d029557 into antrea-io:main Jun 28, 2024
53 of 58 checks passed
@antoninbas antoninbas deleted the fix-codecov-upload-for-jenkins-ci-scripts branch June 28, 2024 17:22
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.

2 participants