You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Quanlong Huang (Jira)" <ji...@apache.org> on 2022/11/11 02:46:00 UTC

[jira] [Resolved] (IMPALA-11716) bin/coverage_helper.sh doesn't work

     [ https://issues.apache.org/jira/browse/IMPALA-11716?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Quanlong Huang resolved IMPALA-11716.
-------------------------------------
    Fix Version/s: Impala 4.2.0
       Resolution: Fixed

Thank [~MikaelSmith] 's review!

> 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
>    Affects Versions: Impala 4.2.0
>            Reporter: Quanlong Huang
>            Assignee: Quanlong Huang
>            Priority: Major
>             Fix For: Impala 4.2.0
>
>
> 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org