Skip to content

"Unable to locate build via Github Actions API" for the public repository #126

Closed
ba-itsys/keycloak-cassandra-extension
#13

Description

@AlekSi

Seems to be the same as closed codecov/codecov-action#557.
Similar to codecov/codecov-action#803 and codecov/codecov-action#598.
Here was a request to create a new issue in that case, so here it is.

https://github.com/FerretDB/FerretDB/actions/runs/3130125909/jobs/5080024795

Activity

  1. yurishkuro commented on Sep 27, 2022

    @yurishkuro

    Getting the same several times today, but it is transient: https://github.com/jaegertracing/jaeger/actions/runs/3136909140/jobs/5094405179

  2. thomasrockhu-codecov commented on Sep 28, 2022

    @thomasrockhu-codecov
    Contributor

    @AlekSi @yurishkuro if you have installed the Codecov GitHub app, the only reason I can think of for getting that message is that the access token used is hitting a GitHub rate limit. Do you use any other GitHub apps or know why that might be?

  3. yurishkuro commented on Sep 28, 2022

    @yurishkuro
  4. thomasrockhu-codecov commented on Sep 28, 2022

    @thomasrockhu-codecov
    Contributor

    @yurishkuro to be clear, those two things are not mutually exclusive. The app is used by Codecov to communicate with GitHub (e.g. check the codecov yaml, post the PR comment and status checks). The Action is used to upload coverage reports to Codecov.

  5. yurishkuro commented on Sep 28, 2022

    @yurishkuro

    Yes, we do have Codecov app as well. But the errors are coming from GH Action.

  6. AlekSi commented on Sep 28, 2022

    @AlekSi
    Author

    to be clear, those two things are mutually exclusive

    I guess you mean "are not".

    Yes, we do have that app installed. We also use a few other GitHub apps. Do they all use the same token (and what token is that)?

  7. GiyoMoon commented on Sep 28, 2022

    @GiyoMoon
  8. AlekSi commented on Sep 29, 2022

    @AlekSi
    Author
  9. jgarivera commented on Oct 3, 2022

    @jgarivera

    I also have the same error during this run. codecov/codecov-action@v2 was able to upload successfully though.

  10. YonatanKra commented on Oct 3, 2022

    @YonatanKra

    Hi,
    Worked fine this morning - started again now.

  11. GiyoMoon commented on Oct 3, 2022

    @GiyoMoon

    Oh great, I just re-run my job and it worked too.

  12. thomasrockhu-codecov commented on Oct 3, 2022

    @thomasrockhu-codecov
    Contributor

    I am wondering if the disruption with GitHub had anything to do with this uptick in this issue. If so, apologies, I know the error message could have been far better crafted. We are working on making it more actionable.

    As far as I know, this error message happens when we ping GitHub to confirm that the build being uploaded to Codecov matches with a real build for the same repository. This is one of the checks we do for public repositories that aren't using an upload token. I'm guessing that API call went a little haywire a few days ago.

  13. AlekSi commented on Oct 3, 2022

    @AlekSi
    Author

    That accident was resolved 6 days ago, but we are seeing the same issue right now: https://github.com/FerretDB/FerretDB/actions/runs/3175008916/jobs/5172514896

  14. thomasrockhu-codecov commented on Oct 3, 2022

    @thomasrockhu-codecov
    Contributor

    Ok, I think I tracked down the underlying issue here. I've made a ticket for the product team

  15. thomasrockhu-codecov commented on Oct 3, 2022

    @thomasrockhu-codecov
    Contributor

    I'll be tracking progress on this communty post

  16. 79 remaining items

  17. kdarkhan commented on Feb 7, 2024

    @kdarkhan

    @adamjstewart I see you are using github.event.workflow_run.pull_requests.head.sha here - which does not work as I described in google/mdbook-i18n-helpers#168.

    The syntax should have been github.event.workflow_run.pull_requests[0].head.sha - but due to a bug in Github actions event passing, it is flaky.

    My workaround is to get this sha from the original PR as I described higher.

  18. adamjstewart commented on Feb 7, 2024

    @adamjstewart

    Thanks for the link. I'm slowly rediscovering all the reasons you had to jump through so many hoops. I think I've managed to find a simpler way to download artifacts than what you're using, but it looks like all the rest of your JavaScript is still necessary.

    Need to decide if we're expected to implement all of this ourselves or start looking for codecov alternatives. Would love an official response from codecov as to how they expect people to use their action.

  19. yurishkuro commented on Feb 7, 2024

    @yurishkuro

    Even with v3, it works 50% of the time at best due to GitHub's API rate limits.

    @adamjstewart could you elaborate how GitHub API rate limits are in play here? Why does having a Codecov token make a difference w.r.t. GH rate limits?

  20. rohan-at-sentry commented on Feb 7, 2024

    @rohan-at-sentry

    @adamjstewart - I'm a PM on the codecov team.

    I'll take a look at why you're having the issue you described here, what you're describing is not the intended set up experience here. I'll respond back here with an update as soon as I have one

  21. rohan-at-sentry commented on Feb 7, 2024

    @rohan-at-sentry

    @yurishkuro

    To clarify, the reason why a token-less only approach has been so problematic over the past few years has been due to GitHub's rate limiting. Tokenless generally works by making an API call to GitHub to confirm that the repo and commit are the correct values. Making this call for thousands of repositories causes our GitHub token to hit the limit causing the issues that many of you have seen (e.g. Unable to locate build via Github Actions API).

    As a result, we needed to make decisions on how best to serve our users. This means that tokenless uploading is not currently sustainable until GitHub allows for higher rate limited APIs.

    The open source (OS) community is a major user and proponent of Codecov. A very common flow for them is to have outside contributors fork the repo, make changes, and open a PR to the upstream repository with that change. Unfortunately, GitHub does not have a way to share secrets with contributors. In order to provide support for these OS projects, we added a way for open source contributions to forks not require a token

  22. thomasrockhu-codecov commented on Feb 21, 2024

    @thomasrockhu-codecov
    Contributor

    Hi all (@kdarkhan @adamjstewart @melink14), I'm moving the conversation over to this issue regarding workflow_run. I think this particular issue is unrelated.

  23. melink14 commented on Feb 21, 2024

    @melink14

    To clarify for future readers, the reason it is related to this issue is that it explains how to securely use codecov for PRs from forks in public OS repos.

    There's no problem except that GitHub has some bugs and makes the process annoying for security reasons (as far as I know).

    I guess the other issue can be used to investigate simplifications to the process.

  24. ST-DDT commented on Mar 12, 2024

    @ST-DDT

    I recently noticed an increased error rate regarding tokenless for PRs (we are using codecov action v4.1.0).

    Is there a solution recommended by the codecov team on how to solve that?
    Could you extend your Setup GithubAction guide to include that recommendation?

  25. thomasrockhu-codecov commented on Mar 12, 2024

    @thomasrockhu-codecov
    Contributor

    @ST-DDT can you open a new issue about that? I'm going to close this one as the solution to the original is to add the token.

  26. ST-DDT commented on Mar 12, 2024

    @ST-DDT
  27. added a commit that references this issue on Apr 9, 2024
  28. added a commit that references this issue on Apr 24, 2024
  29. added a commit that references this issue on Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions