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

codecov action not associating upload with branch when commit already exists v2 #1733

Open
sdarwin opened this issue Dec 27, 2024 · 0 comments
Assignees
Labels
Medium Medium Priority Issues (to be fixed or re-evaluated in 3 months support

Comments

@sdarwin
Copy link

sdarwin commented Dec 27, 2024

Hi,

From #1296

We are seeing a result which matches the earlier report.

Tl;Dr: I know guesses are not always helpful, but my guess as to what's happening is that if CI builds on a specific branch using the exact same commit that was previously built in a pull request, the commit doesn't get associated with the branch, perhaps because create-commit has already been run.

In our repository, the develop branch is fast-forward merged into master. That means both branches have the exact same commit.

If the develop branch is uploaded first, that will be displayed correctly.

Then, codecov shows no information about the master branch, even though its github actions ran.

Presumably because it thinks that commit has already been processed.

It's surprising nobody else is experiencing this same issue. How is that possible? Or, there is something else going on.

If you are already using this github action, to replicate the issue (hopefully) fast-forward merge one branch into another. Are the results posted on codecov, and associated with the new branch?

Example step in the job:

      - name: Upload coverage
        if: matrix.coverage
        uses: codecov/codecov-action@v5
        with:
          disable_search: true
          fail_ci_if_error: true
          files: coverage.info
          name: Github Actions
          override_branch: ${{ steps.coverage_branch.outputs.override_branch }}
          token: ${{secrets.CODECOV_TOKEN}}
          verbose: true
@thomasrockhu-codecov thomasrockhu-codecov self-assigned this Jan 1, 2025
@thomasrockhu-codecov thomasrockhu-codecov added support Medium Medium Priority Issues (to be fixed or re-evaluated in 3 months labels Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Medium Priority Issues (to be fixed or re-evaluated in 3 months support
Projects
None yet
Development

No branches or pull requests

2 participants