codecov / codecov/codecov-action
[BUG] After force pushing to a remote branch on Github to override a commit, the branch no longer gets updated on app.codecov.io
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 260
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 1
Description
Describe the bug
- I force pushed to my repository's
devbranch to edit the message for this commit. - The new commit in
devis here. - The latest commit in
devin this page still points to the old commitcb8e8dc. - Github Actions did upload the code coverage report for the new commit to codecov.io in this workflow run. The code coverage is accessible here. But it does not show up for
dev.
This is an issue because I have outstanding pull requests where the code coverage report's base branch is using that old commit. For example, this dependabot PR's code coverage report is based off of the old commit cb8e8dc instead of the new one. It shows a misleading diff with C code changes that are the same as in the new commit 6f9c95df.
To Reproduce
Steps to reproduce the behavior:
- For a commit in a repository, edit the commit message and force push the remote branch.
- Check the code coverage page for that branch to see if the old commit was overwritten by the new one.
Expected behavior
The code coverage page for the dev branch should show the new commit 6f9c95df.
Regression
This is a regression.
Screenshots
N/A
Product Area
Code coverage
Versions
- OS:
ubuntu-22.04 - Git Host: GitHub
- CI/CD: GitHub Actions
- Uploader:
codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
Commit and CI link
See description
Additional context
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the force-push reproduction described in the issue and inspect the linked GitHub Actions upload run, then compare the old and new commit pages on Codecov. The fix is complete when the dev branch points to commit 6f9c95df and dependent pull-request coverage uses that commit rather than cb8e8dc.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github, github-actions
- Domain
- ci-cd, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100