subunit2html can fail on bad input
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-testr |
New
|
Undecided
|
Unassigned |
Bug Description
While attempting to add a py37 job to nova, there was a POST_FAILURE. This can be traced back to subunit2html failing to deal with unexpected input. Presumably it should be resilient in the face of anything and warn, not die. It looks like the problem could be either in subunit2html or testtools.
The relevant traceback (from http://
2018-12-10 17:14:41.586492 | ubuntu-bionic | File "/usr/os-
2018-12-10 17:14:41.586560 | ubuntu-bionic | sys.exit(main())
2018-12-10 17:14:41.586782 | ubuntu-bionic | File "/usr/os-
2018-12-10 17:14:41.586887 | ubuntu-bionic | result.
2018-12-10 17:14:41.587189 | ubuntu-bionic | File "/usr/os-
2018-12-10 17:14:41.587276 | ubuntu-bionic | sink.stopTestRun()
2018-12-10 17:14:41.587523 | ubuntu-bionic | File "/usr/os-
2018-12-10 17:14:41.587613 | ubuntu-bionic | self.decorated.
2018-12-10 17:14:41.587858 | ubuntu-bionic | File "/usr/os-
2018-12-10 17:14:41.587963 | ubuntu-bionic | return self.decorated.
2018-12-10 17:14:41.588213 | ubuntu-bionic | File "/usr/os-
2018-12-10 17:14:41.588320 | ubuntu-bionic | report = self._generate_
2018-12-10 17:14:41.588597 | ubuntu-bionic | File "/usr/os-
2018-12-10 17:14:41.588740 | ubuntu-bionic | self._generate_
2018-12-10 17:14:41.588992 | ubuntu-bionic | File "/usr/os-
2018-12-10 17:14:41.589102 | ubuntu-bionic | output=
2018-12-10 17:14:41.589322 | ubuntu-bionic | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position 1070: ordinal not in range(128)