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 2021/10/29 10:38:00 UTC
[jira] [Commented] (IMPALA-10899) buildall.sh -release_and_debug
-codecoverage doesn't work as expected
[ https://issues.apache.org/jira/browse/IMPALA-10899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17435894#comment-17435894 ]
ASF subversion and git services commented on IMPALA-10899:
----------------------------------------------------------
Commit cceeb082442a042e666a77ceb239e66cf4f63459 in impala's branch refs/heads/master from Zoltan Borok-Nagy
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=cceeb08 ]
IMPALA-10899: buildall.sh -release_and_debug -codecoverage doesn't work as expected
Until this patch buildall.sh -release_and_debug -codecoverage didn't
do a coverage build at all. It only did a release build, then a debug
build.
With this patch the above command creates a release+coverage build,
then a debug+coverage build. After each build it saves the .gcno
files to a directory in $IMPALA_HOME (gcov_release and gcov_debug).
These .gcno files are needed to generate code coverage reports later.
Testing:
* manually tested by invoking buildall.sh -release_and_debug \
-codecoverage
and
buildall.sh -release -codecoverage
Change-Id: I935501218697bf1660cc99a878cf554ef9f00f4c
Reviewed-on: http://gerrit.cloudera.org:8080/17982
Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>
> buildall.sh -release_and_debug -codecoverage doesn't work as expected
> ---------------------------------------------------------------------
>
> Key: IMPALA-10899
> URL: https://issues.apache.org/jira/browse/IMPALA-10899
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Reporter: Zoltán Borók-Nagy
> Assignee: Zoltán Borók-Nagy
> Priority: Major
> Labels: newbie, ramp-up
>
> If the user issues "buildall.sh -release_and_debug -codecoverage", the script will do a releae build, then a debug build, without generating any code coverage data:
> https://github.com/apache/impala/blob/beb8019f5300bb163424e7fdfec50b8e4b796e26/buildall.sh#L607
> We cannot really generate code coverage information for both release and debug builds because the second build overwrites the cmake directories, hence it overwrites the .gcno files as well.
> Therefore we should raise an error when the use specifies both -release_and_debug and -codecoverage. Another workaround could be to copy the .gcno files to a directory after the builds.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org