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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make codecov report to work on jobs re-run #5991

Merged
merged 3 commits into from Apr 23, 2020

Conversation

leio10
Copy link
Contributor

@leio10 leio10 commented Apr 15, 2020

馃帺 What? Why?

Github Actions env variables differ when a check is triggered by different events. This makes the coverage report upload process to fail when a developer forces to re-run a job, as the event is check_run instead of pull_request.

This PR replaces the codecov's github action with a direct call to the Codecov bash script, customizing the parameters used (commit SHA and PR identifier) with information extracted directly from the workflow payload, regardless of the event that triggered it. The created script uses jq queries to recover the information from the workflow payload and supports the pull_request, push and check_run events.

馃搶 Related Issues

馃搵 Subtasks

  • Add CHANGELOG entry

馃摲 Screenshots (optional)

Description

@leio10 leio10 force-pushed the fix/codecov-report-on-rerun branch 2 times, most recently from ad89b82 to ea158f5 Compare April 15, 2020 17:10
mrcasals
mrcasals previously approved these changes Apr 16, 2020
@leio10 leio10 force-pushed the fix/codecov-report-on-rerun branch from f58848f to 1c2574a Compare April 16, 2020 08:26
mrcasals
mrcasals previously approved these changes Apr 16, 2020
mrcasals
mrcasals previously approved these changes Apr 16, 2020
@mrcasals
Copy link
Contributor

Hi @decidim/core! This PR fixes an issue on coverage uploads to Codecov. There's more information on #5954, which tried to fix the same issue but I didn't get enough success.

Can you review this PR please? 馃槃

@mrcasals
Copy link
Contributor

@tramuntanal could you review this please? 馃槃 We keep hiting the same problem on different PRs... 馃槥

@tramuntanal tramuntanal merged commit b5c8775 into develop Apr 23, 2020
@tramuntanal tramuntanal deleted the fix/codecov-report-on-rerun branch April 23, 2020 16:35
faithngetich pushed a commit to faithngetich/decidim that referenced this pull request Apr 28, 2020
* Use codecov bash uploader instead of gh action

* fix: replace + with coalesce operator (//)

* fix: remove extra character added by mistake
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.

None yet

4 participants