Closed Bug 1639641 Opened 4 years ago Closed 4 years ago

Fallback from UnicodeEncodeError in jstests

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

(Whiteboard: [smooshmonkey-mvp])

Attachments

(1 file)

https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=303110159&repo=mozilla-central&lineNumber=57960

[task 2020-05-20T16:01:12.255Z] Traceback (most recent call last):
[task 2020-05-20T16:01:12.255Z]   File "/builds/worker/workspace/build/src/js/src/tests/jstests.py", line 676, in <module>
[task 2020-05-20T16:01:12.256Z]     sys.exit(main())
[task 2020-05-20T16:01:12.256Z]   File "/builds/worker/workspace/build/src/js/src/tests/jstests.py", line 624, in main
[task 2020-05-20T16:01:12.256Z]     results.push(out)
[task 2020-05-20T16:01:12.256Z]   File "/builds/worker/workspace/build/src/js/src/tests/lib/results.py", line 296, in push
[task 2020-05-20T16:01:12.257Z]     self.fp.write(output.err)
[task 2020-05-20T16:01:12.257Z] UnicodeEncodeError: 'ascii' codec can't encode character '\u0e86' in position 75: ordinal not in range(128)

jsparagus doesn't escape unciode characters in the output, and it caused the failure in harness.
while jsparagus should escape it, the test harness should be robust against such output.

Whiteboard: [smooshmonkey-reserve] → [smooshmonkey-mvp]
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/5032fce072a4 Try fallback for printing stdout/stderr in jstests. r=sfink
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: