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 "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/09/27 00:27:00 UTC
[jira] [Commented] (IMPALA-13279) In some environments, code coverage produces an empty report
[ https://issues.apache.org/jira/browse/IMPALA-13279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17885179#comment-17885179 ]
ASF subversion and git services commented on IMPALA-13279:
----------------------------------------------------------
Commit 11396d3146dfa2193420f79ec284f5212f058982 in impala's branch refs/heads/master from Joe McDonnell
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=11396d314 ]
IMPALA-13384: Only install gcovr deps for coverage builds
IMPALA-13279 upgraded gcovr to 7.2 and moved it from python 2 to
python 3.8. gcovr has several dependencies that require native
compilation, and this increased the cost of initializing the
Python 3 virtualenv substantially:
Without gcovr: 1m43.279s
With gcovr and deps: 6m35.107s
This moves gcovr to its own requirements file and only installs
gcovr if this is a coverage build (detected from the
.cmake_buid_type file).
Testing:
- Verified that a coverage build does install gcovr and
produce a report
Change-Id: I1d0fd6d21273053aaf2acee39fcb83d9093d49a2
Reviewed-on: http://gerrit.cloudera.org:8080/21849
Reviewed-by: Laszlo Gaal <la...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
> In some environments, code coverage produces an empty report
> ------------------------------------------------------------
>
> Key: IMPALA-13279
> URL: https://issues.apache.org/jira/browse/IMPALA-13279
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Affects Versions: Impala 4.5.0
> Reporter: Joe McDonnell
> Assignee: Joe McDonnell
> Priority: Major
> Fix For: Impala 4.5.0
>
>
> On some environments used for automation, all the tests run with code coverage enabled but the report at the end is empty. Impala is generating the necessary gcno/gcda files on exit, so this seems to be a bug during report generation in that environment. It works fine locally on my Ubuntu 20 development box, so there is something special about the environment.
> Testing with the latest version of gcovr (7.2) doesn't show the same issue, so one path to fixing this is to upgrade to gcovr==7.2. gcovr 7.2 requires python 3.8, so it would involve switching to the toolchain 3.8 python rather than the 3.7 python.
--
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