mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
ANSI escape sequences do a variety of actions in the terminal like adding color to compilation warnings. generate_junitxml.py currently hits an error when trying to generate JUnitXML for compilation output that contains ANSI escape sequences. This changes generate_junitxml.py to strip ANSI escape sequences from the strings incorporated into JUnitXML (e.g. the error output of a compiler). The solution is based off the discussion at: https://stackoverflow.com/questions/14693701 Testing: - A case where generate_junitxml.py was failing to generate JUnitXML now generates valid JUnitXML. The output still contains all the compiler warnings and information needed to diagnose the issue. Change-Id: I9654a6b13350cb9582ec908b8807b630636a1ed0 Reviewed-on: http://gerrit.cloudera.org:8080/19708 Reviewed-by: Michael Smith <michael.smith@cloudera.com> Reviewed-by: Wenzhe Zhou <wzhou@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Impala Python Library
A future home for locally pip installable python packages for Impala.
Installation
$ pip install -e $IMPALA_HOME/lib/python