Quanlong Huang created IMPALA-11716:
---------------------------------------
Summary: bin/coverage_helper.sh doesn't work
Key: IMPALA-11716
URL: https://issues.apache.org/jira/browse/IMPALA-11716
Project: IMPALA
Issue Type: Bug
Components: Infrastructure
Reporter: Quanlong Huang
Encountered the following error when generating code coverage reports:
{noformat}
$ bin/coverage_helper.sh -report
Generating report in directory: /home/quanlong/workspace/Impala/logs/coverage
Traceback (most recent call last):
File
"/home/quanlong/workspace/Impala/bin/../infra/python/env-gcc10.4.0/bin/gcovr",
line 2412, in <module>
process_datafile(file_, covdata, options)
File
"/home/quanlong/workspace/Impala/bin/../infra/python/env-gcc10.4.0/bin/gcovr",
line 845, in process_datafile
stderr=subprocess.PIPE).communicate()
File
"/home/quanlong/workspace/Impala/toolchain/toolchain-packages-gcc10.4.0/python-2.7.16/lib/python2.7/subprocess.py",
line 394, in __init__
errread, errwrite)
File
"/home/quanlong/workspace/Impala/toolchain/toolchain-packages-gcc10.4.0/python-2.7.16/lib/python2.7/subprocess.py",
line 1047, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory{noformat}
logs/coverage/gcovr.out shows the output:
{noformat}
Scanning directory /home/quanlong/workspace/Impala/be for gcda/gcno files...
Found 1277 files (and will process 688)
Processing file:
/home/quanlong/workspace/Impala/be/src/gutil/CMakeFiles/gutil.dir/stringprintf.cc.gcda
Running gcov: 'gcov
/home/quanlong/workspace/Impala/be/src/gutil/CMakeFiles/gutil.dir/stringprintf.cc.gcda
--branch-counts --branch-probabilities --preserve-paths --object-directory
/home/quanlong/workspace/Impala/be/src/gutil/CMakeFiles/gutil.dir' in
'/home/quanlong/workspace/Impala/be'
{noformat}
All files exist except the "gcov" executable. It can be manually resolved by
adding "toolchain/toolchain-packages-gcc10.4.0/gcc-10.4.0/bin" to PATH:
{code:bash}
export
PATH="$PATH:/home/quanlong/workspace/Impala/toolchain/toolchain-packages-gcc10.4.0/gcc-10.4.0/bin"
{code}
However, after this, I saw another error:
{noformat}
$ bin/coverage_helper.sh -report
Generating report in directory: /home/quanlong/workspace/Impala/logs/coverage
Traceback (most recent call last):
File
"/home/quanlong/workspace/Impala/bin/../infra/python/env-gcc10.4.0/bin/gcovr",
line 2412, in <module>
process_datafile(file_, covdata, options)
File
"/home/quanlong/workspace/Impala/bin/../infra/python/env-gcc10.4.0/bin/gcovr",
line 884, in process_datafile
process_gcov_data(fname, covdata, abs_filename, options)
File
"/home/quanlong/workspace/Impala/bin/../infra/python/env-gcc10.4.0/bin/gcovr",
line 616, in process_gcov_data
covered[lineno] = int(segments[0].strip())
ValueError: invalid literal for int() with base 10: '141*'
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)