-
Notifications
You must be signed in to change notification settings - Fork 6
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
clippy warnings are escalated to errors #23
Comments
Thanks for creating an issue! It looks like that the GitHub token doesn't have write permissions. Could the token has write permissions be used? If it's a forked repository, it could be the following case. In that case, it would be better to use |
it is a forked repo. It's an open-source repo, so in the general case PRs will often be from forked repos. I'll try changing the reporter and see what difference that makes to the behaviour |
here is the PR, by the way - mavlink/rust-mavlink#143 |
And sorry for poor documentation, I believe I need to write more docs. |
here is the output from the new job with the updated reporter - https://github.com/mavlink/rust-mavlink/actions/runs/3581397435/jobs/6024409026 It appears that warnings are still escalated to errors (the 'check' output on the diff uses red markings, as opposed to the yellow warnings), however the job itself has not returned an error code (so is reporting a green tick). That's probably good enough, even if not perfect. I'm now running the job again, but with clippy errors (as opposed to warnings) to check the behaviour in that case. Now I would expect the job to fail output is here - https://github.com/mavlink/rust-mavlink/actions/runs/3581634546/jobs/6024921436 update: the job has not failed, so I still don't have the behaviour i'm after.
does the above make sense? neither Is this due to a reviewdog or |
I'm fixing error/warning reporting bugs in #25 but I haven't try it in a forked repo. GitHub status depends on |
related: #25 |
One of the upstream issues has been resolved. Does that unblock this ticket? |
ping @giraffate |
i'm working on a repo that has a number of clippy warnings. I would like these to be reported, but not fail the job (clippy errors should fail the job, but not warnings)
how to i stop this action from escalating warnings into hard errors?
see https://github.com/mavlink/rust-mavlink/actions/runs/3575705031/jobs/6012579389
The text was updated successfully, but these errors were encountered: