Skip to content

GHA v4 does not work well when run from workflow_run instead of pull_request #273

Closed

Description

@rohan-at-sentry

#126 (comment)

### Related issues
- [ ] https://github.com/codecov/codecov-action/issues/1292#issuecomment-1942100350

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Feb 13, 2024
  2. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀on Feb 13, 2024
  3. rohan-at-sentry commented on Feb 13, 2024

    @rohan-at-sentry
    Author

    @thomasrockhu-codecov can you take a look at this once you're back in?

  4. moved this to Waiting for: Product Owner in GitHub Issues with 👀on Feb 13, 2024
  5. thomasrockhu-codecov commented on Feb 21, 2024

    @thomasrockhu-codecov
    Contributor

    Ok, I did a run on a workflow_run event and it seems to be working fine. See this run.

    This leads me to believe there is something else happening. @kdarkhan @adamjstewart @melink14 @JoshuaKGoldberg, if you have any logs or a link that you could point me to, I'd be happy to look in and see why the action@v4 is not working

  6. JoshuaKGoldberg commented on Feb 21, 2024

    @JoshuaKGoldberg

    Thanks for asking! All of my repos that use the Codecov action should be open source. JoshuaKGoldberg/create-typescript-app#1289 -> JoshuaKGoldberg/create-typescript-app#1303 -> JoshuaKGoldberg/create-typescript-app#1304 should be the main references for that repository in particular. If there's any logstuffs you don't have access to, I'd be happy to provide them.

    That repo also is a GitHub repo template you can use to make a new repo to test for yourself. LMK if that's not clear how to use here either 🙂

  7. thomasrockhu-codecov commented on Feb 23, 2024

    @thomasrockhu-codecov
    Contributor

    @JoshuaKGoldberg

    You need to add the token as a secret and as an argument to the codecov-action step from the message on this log

  8. adamjstewart commented on Feb 26, 2024

    @adamjstewart

    Ok, I did a run on a workflow_run event and it seems to be working fine. See this run.

    Uh, from what I can tell, this was triggered by https://github.com/thomasrockhu-codecov/example-python/pull/1, which is not from a fork. Also, the "Download coverage artifacts" step failed to find and download anything. Therefore I would be pretty surprised if the "Upload coverage to codecov" step was doing anything useful. In my testing, I was able to get both of those steps working correctly. The issue I encountered was that workflow_run never reported back to the original PR that triggered it, so PRs like torchgeo/torchgeo#1868 never received any coverage information.

  9. thomasrockhu-codecov commented on Feb 27, 2024

    @thomasrockhu-codecov
    Contributor

    @adamjstewart got it, is this specifically in PRs from forks only then?

  10. adamjstewart commented on Feb 27, 2024

    @adamjstewart

    I guess I've never tried a PR from upstream since we don't usually get any out those for open source repos.

  11. thomasrockhu-codecov commented on Feb 27, 2024

    @thomasrockhu-codecov
    Contributor

    got it, @adamjstewart I'm not sure this is a specific workflow_run thing, but I'll dig into the logs to see what happened, and why you didn't get a status check or comment. To be clear, I'm going to use this PR as #1868 doesn't seem to have been run at all. Let me know if I misunderstood something.

  12. thomasrockhu-codecov commented on Feb 27, 2024

    @thomasrockhu-codecov
    Contributor

    @adamjstewart I see the problem, the issue was due to rate limiting. Have you installed the Codecov app on your fork?

  13. adamjstewart commented on Feb 28, 2024

    @adamjstewart

    @thomasrockhu-codecov the rate limiting issue was the reason for opening #126. The reason we're using workflow_run is to try to get around the rate limiting issue. We can't expect all of our contributors to first install the Codecov app in order to get their PRs to pass the tests.

  14. added
    LowLow Priority Issues (to be fixed or re-evaluated in 12 months
    Area: Report UploadIssues with pre-ingest report uploading
    and removed
    HighHigh Priority Issues (to be fixed within 2 sprints)
    on Oct 29, 2024
  15. thomasrockhu-codecov commented on Oct 29, 2024

    @thomasrockhu-codecov
    Contributor

    @adamjstewart I'm going to close this as I believe it's been fixed. However, if you feel that isn't true, please feel free to create a new issue and tag me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: Report UploadIssues with pre-ingest report uploadingLowLow Priority Issues (to be fixed or re-evaluated in 12 monthsbugFor issues and unexpected behaviors

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions