Skip to content

pseudo-tty/test_runner_default_reporter breaks Python based test runner #47173

Closed
@richardlau

Description

@richardlau

pseudo-tty/test_runner_default_reporter is emitting skip messages that our Python based test harness cannot currently parse. This means we no longer get the failure summaries on the job pages and need to manually scan/search through the console log output for actual failures.

e.g. https://ci.nodejs.org/job/node-test-commit-linux-containered/nodes=ubuntu1804_sharedlibs_withoutssl_x64/36660/console

15:32:05 --- Logging error ---
15:32:05 Traceback (most recent call last):
15:32:05   File "/usr/lib/python3.6/logging/__init__.py", line 996, in emit
15:32:05     stream.write(msg)
15:32:05 UnicodeEncodeError: 'ascii' codec can't encode character '\u2139' in position 59: ordinal not in range(128)
15:32:05 Call stack:
15:32:05   File "tools/test.py", line 1794, in <module>
15:32:05     sys.exit(Main())
15:32:05   File "tools/test.py", line 1765, in Main
15:32:05     result = RunTestCases(cases_to_run, options.progress, options.j, options.flaky_tests, options.measure_flakiness)
15:32:05   File "tools/test.py", line 978, in RunTestCases
15:32:05     return progress.Run(tasks)
15:32:05   File "tools/test.py", line 162, in Run
15:32:05     self.RunSingle(False, 0)
15:32:05   File "tools/test.py", line 238, in RunSingle
15:32:05     self.HasRun(output)
15:32:05   File "tools/test.py", line 386, in HasRun
15:32:05     'ok %i %s # skip %s' % (self._done, command, skip.group(1)))
15:32:05 Message: 'ok 3493 pseudo-tty/test_runner_default_reporter # skip [34m\u2139 tests 3[39m'
15:32:05 Arguments: ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions