-
Notifications
You must be signed in to change notification settings - Fork 90
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
Finding also crashes in regression finder #2113
Conversation
20f1caa
to
de4d032
Compare
de4d032
to
5392892
Compare
5392892
to
6930198
Compare
@qarmin Thanks for your contribution. We might need to clarify the regression failure here. |
c44d8c1
to
3e0d5aa
Compare
I have no idea how to make comments automatically add to PR, so I just commented them out so the CI is now green and anyone can check what's not working as I have no idea how to fix it(looks like a permissions problem) Adding comments to a thread is useful when files that didn't convert properly before are changing. In that case, apart from the information in the CI logs, there is no information that the PR has changed anything. In the case where a regression is found, CI fails and this is easily visible. |
Hello, @qarmin.
I think it ocurrs because this patch from forked repo. If so, we can just merge and see it works. |
If I understand correctly, after merging, these comments would only be added when a branch is created directly in this repository, e.g. thorvg/branch_fix_10202. |
Gotcha, I was misunderstanding. I thought the workflow in PR doesn't work only when Github Action(.yml) changed. Anyway, this problem only happens in PR which from forked repo due to the token issue.
The event I see some people do same thing in forked PR like: name: Thank contributors
on:
pull_request_target:
types:
- closed
jobs:
thank:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Comment on the pull request
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Thank you for contributing! 🎉 Sharing related article :) |
@qarmin You got a write access. please do it if it's necessary, it's recommended for thorvg maintenance. Thanks. |
using github actions to create github comments instead curl(which did not work, I do not know why) - thanks to this, a comment will be created for each PR after the first passing of the CI, indicating whether or not changes in test suite have been detected in the PR, and on subsequent passes the same comment will be updated with newer informationNot sure why, but comments not working(maybe will work after merging?) due error
peter-evans/create-or-update-comment#76
this worked fine on different project - https://github.com/qarmin/SVG-regression-finder/actions/runs/8472470087/job/23214648273
and added/updated comment: qarmin/SVG-regression-finder#5 (comment)
Also ruff uses similar workflow - https://github.com/astral-sh/ruff/blob/main/.github/workflows/pr-comment.yaml
https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/resource-not-accessible