-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
infra: remove --fail-with-body from pr-description.sh #12446
Conversation
What should we be doing to avoid these silent fails? |
Do less piping and always check exit value of curl commands maybe? |
I am not a bash programmer so I can't really provide valuable insight. :) Is it piping that is hiding the failure or is it the |
this option is ~1 year old only in curl - https://curl.se/mail/lib-2021-03/0056.html we can not use bash feature fail on failure in middle of pipe https://stackoverflow.com/a/32684221 , because we use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit is updated.
ok to merge as CI pass
So it is the pipe that causing the hidden failure?
Is the failure because the regexp doesn't match like if they don't have issue number and thats what we are checking? |
Pipe is not causing it.
Yes, if nothing is grepping, it is failure for grep command. |
ok, it makes sense now. Maybe we should see if we can silo off commands that can fail and those that shouldn't from the grep. @romani What about this? It has no grep.
|
If we refactor code to avoid greps or narrow them to specific segments, I will be happy to enable failures in pipelines. |
Noticed at https://github.com/checkstyle/checkstyle/actions/runs/3531403281/jobs/5924533074, check of PR description was silently failing.