Skip to content

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

Merged
tramuntanal merged 3 commits intodevelopfrom
fix/codecov-report-on-rerun
Apr 23, 2020
Merged

fix: make codecov report to work on jobs re-run#5991
tramuntanal merged 3 commits intodevelopfrom
fix/codecov-report-on-rerun

Conversation

@leio10
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

4 participants