-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Bot results cannot handle Unicode #5998
Comments
A cursory examination of the bot files shows that they all carry the utf-8 encoding declaration. Additionally, the broken encoding doesn't happen on the Edge results, which makes me think it isn't a universal-type issue.
The bots don't care what the tests are, they just strip lines out of the raw Travis log and post that to GitHub as a comment. I was going to call this a Travis bug, because their raw text logs aren't properly encoded, but that's true even for the Edge log, so it shouldn't be working there, either. I'll see if I can dig up anything else. |
Chromium developer @bsittler reported another case yesterday: https://travis-ci.org/w3c/web-platform-tests/jobs/281056652#L2086 I took a quick look and The root cause is this line essentially assumes the provided s = u'世界'
msg = s.encode('utf8')
print msg.encode('utf8')
----
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 0: ordinal not in range(128) This line encodes and decodes the message (to and from UTF-8). It seems to me the sole purpose is to get |
@bobholt see my comment above. By the way, I just realized this might be a separate issue from the OP, but I'm not exactly sure about the context. Could you kindly help moving my report above into a new issue if you think they are two separate issues? |
@foolip I am not exactly what this issue originally was. It could be something different, as no one mentioned exceptions. |
If you follow the link in OP and then expand the results from the bot you'll find "Loading data�" and various other errors meaning the bot did not decode using UTF-8. |
@Hexcles, should this still be priority:roadmap? |
This, along with #8285 , should be fixed soon-ish. Though it might be hard to find all edge cases, I suspect there are a few low hanging fruits which can cover many code paths. This would perhaps be a good first issue? @gsnedders I saw you using that label. Are there any plans for regarding these issues? (Like a GSoC or something?) |
@Hexcles They've partly been used to give people planning on applying to Outreachy for Mozilla to have something to do (rather than throwing them in with no guidance) for the sake of selecting applicants. |
So what's the scope here?
The last of these should probably be a prbuildbot issue handled by those working on that? |
AFAICT this issue was a prbuildbot issue and that's no longer running, so closing by default. |
Branch names containing Unicode I can sorta appreciate breaking things (although, it's 2017), but bot results?
#5976
This makes me wonder whether the bots even see the same tests I do.
cc @jugglinmike @bobholt
The text was updated successfully, but these errors were encountered: