Skip to content
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

check_source: post check_source.pl output as comment instead of including in review message #1058

Open
lnussel opened this issue Aug 16, 2017 · 8 comments

Comments

@lnussel
Copy link
Member

lnussel commented Aug 16, 2017

Today we had a problem with the source checker that lead factoryauto to wanting to decline requests. It failed doing that as it apparently tried to post comments that contained invalid utf8. so factory-auto should make sure to only post valid strings.

@jberry-suse
Copy link
Contributor

On which requests did it fail?

@jberry-suse
Copy link
Contributor

@DimStar77
Copy link
Contributor

DimStar77 commented Aug 16, 2017 via email

@jberry-suse
Copy link
Contributor

Yeah, it is better if I can reproduce and ensure fix at least solve the case that was the reason for this issue.

@lnussel
Copy link
Member Author

lnussel commented Aug 16, 2017

https://build.opensuse.org/request/show/517144 was the one I was looking at

@lnussel lnussel changed the title repochecker: don't post invalid utf8 factory-auto: don't post invalid utf8 Aug 16, 2017
@jberry-suse
Copy link
Contributor

Just to clarify talking about review message not a comment.

@jberry-suse
Copy link
Contributor

Need to test this, but #1089 may just fix since it does an explicit encode, but not really sure what was causing the issue since I haven't attempted to reproduced.

@jberry-suse jberry-suse added the P4 label Aug 24, 2017
@jberry-suse
Copy link
Contributor

Since the primary issue was broken underlying tool which has since been fixed and the comment code has truncation which is the only time I've seen OBS complain about invalid utf8 perhaps just apply the truncation code to review message, but really this should be reworked to just include the output in comment since it is a lot more readable and consistent with current bot behavior.

@jberry-suse jberry-suse changed the title factory-auto: don't post invalid utf8 check_source: post check_source.pl output as comment instead of including in review message Aug 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants