Comment doesn't get posted when PR is opened by an external contributor #438
-
Hi @ewjoachim, everybody, When trying to add this action to the CI pipeline of an open-source library, I did encounter an issue, namely the fact that me, as an external contributor (but this seems to happen to all people, but the maintainers) opening a PR, I am able to generate the coverage comment artifacts, but I am not able to get the comment posted on the PR. These kinds of annotations do appear within the summary of
I tried to follow the indications in https://github.com/marketplace/actions/python-coverage-comment#basic-usage and the workflow appears to be as such:
Can you please point me to where the issue might lie on in your opinion? EDITHi Joachim, I took some time to revise a couple of things and I noticed that what I previously posted IMO could not be sufficient to give a complete picture. So here are a couple of more details. Besides the annotations reported above, which do relate to the PR comment component of the
What caught my attention is the following (kudos to @fabiogallotti for the catch): https://api.github.com/repos/pydantic/pydantic/actions/runs/9815232181/artifacts does contain 30 elements only (GH's default, I guess) among which you won't effectively find the Could this be the issue? Namely, not handling pagination correctly? (If I'm able) I'll try to add a test (^^^) to verify such hypothesis while waiting for your answer.Thank you again! :) EDIT 2 (^^^)As for the (existing) tests, some of them do fail on my Windows (😢) machine; most of them fail because of paths slashes within strings and I could find easy OS-agnostic solutions to make them pass, others are trickier (eg some tests in unit\test_subprocess.py) and made me stop for the moment. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
(I'll do my best to answer but I'm a little busy for the next few days. If I don't answer within 10 days, feel free to bump :) ) |
Beta Was this translation helpful? Give feedback.
-
Closed by #453 |
Beta Was this translation helpful? Give feedback.
Closed by #453