sysctl_attachment chokes on invalid character when run on Calxeda
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox |
Fix Released
|
Medium
|
Brendan Donegan |
Bug Description
Trying to run checkbox on the Calxeda node, we can see in the output that there is a traceback generated upon executing the sysctl_attachment job:
Traceback (most recent call last):
File "/usr/lib/
results.
File "<string>", line 55, in prompt_test
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 3693: ordinal not in range(128)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/
stream.
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 3877: ordinal not in range(128)
Logged from file reactor.py, line 89
I traced this down to an invalid character in sysctl.conf, where a stylised apostrophe is being used rather than the basic '. The output of this command needs to be filtered to remove these characters - that is if we don't finally bite the bullet and address this issue in the inner workings of Checkbox rather than repeating the fix for every job that gets affected.
Related branches
- Daniel Manrique (community): Approve
-
Diff: 25 lines (+3/-1)2 files modifiedcheckbox-old/debian/changelog (+2/-0)
checkbox-old/plugins/subunit_report.py (+1/-1)
description: | updated |
Changed in checkbox: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Brendan Donegan (brendan-donegan) |
Changed in checkbox: | |
status: | In Progress → Fix Committed |
Changed in checkbox: | |
status: | Fix Committed → Fix Released |
It seems this could simply be down to how we connect to the Calxeda node. Nonetheless I think we should fix it.