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

[chore] Fix codecov action usage #5979

Merged
merged 2 commits into from
Nov 15, 2024
Merged

Conversation

pellared
Copy link
Member

@pellared pellared commented Nov 14, 2024

This PR makes sure that an unsuccessful upload will fail the workflow as this does not happen at the moment. See: https://github.com/open-telemetry/opentelemetry-go/actions/runs/11845773487/job/33011997881?pr=5978#step:3:175

Additionally, it configures the codecov action to be tokenless.

Related issue (most likely solved):

From https://github.com/codecov/codecov-action?tab=readme-ov-file#migration-guide:

The v5 release also coincides with the opt-out feature for tokens for public repositories. In the repository settings page in codecov.io, you can set the ability for Codecov to receive a coverage report from ANY souce. This will allow contributors or other members of a repository to upload without needing access to the Codecov token.

More codecov/codecov-action#1645

v4 was still working. See: https://github.com/open-telemetry/opentelemetry-go/actions/runs/11842872629/job/33002565858#step:3:11
We might also consider reverting to v4 of the codecov action and just setting fail_ci_if_error: true.

@pellared
Copy link
Member Author

After merging we should leave a comment under open-telemetry/community#2440 (comment) to notify if everything also works fine when the action runs on main branch.

@pellared
Copy link
Member Author

Merging as a trivial change that is supposed to fix the CI.

@pellared pellared merged commit f4ec01b into open-telemetry:main Nov 15, 2024
57 of 58 checks passed
@pellared pellared deleted the fix-codecov branch November 15, 2024 09:35
pellared added a commit to open-telemetry/opentelemetry-go-contrib that referenced this pull request Nov 15, 2024
Same as open-telemetry/opentelemetry-go#5979.

This change makes sure that an unsuccessful upload will fail the
workflow as this does not happen at the moment.

Additionally, it configures the codecov action to be tokenless.
@pellared pellared added this to the v1.33.0 milestone Nov 25, 2024
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