IMPALA-13279: Upgrade gcovr to 7.2

In some environments, the code coverage report is empty even
though the tests ran successfully and gcno/gcda files are
written properly.

This upgrades to gcovr 7.2, which does not show the same
problem. gcovr 7.2 requires Python 3.8, so this switches to use
Python 3.8 from the toolchain and installs gcovr in the Python 3
virtualenv.

gcovr 7.2 outputs logging to stderr, so this also modifies
bin/coverage_helper.sh to redirect stderr to stdout.

Testing:
 - Verified that this can generate a report locally and on
   the affected environment

Change-Id: I5b1aaa92c65f54149a3e7230cbe56d5286f1051a
Reviewed-on: http://gerrit.cloudera.org:8080/21647
Reviewed-by: Michael Smith <michael.smith@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Joe McDonnell
2024-08-03 13:20:30 -07:00
committed by Impala Public Jenkins
parent c4230cff2c
commit ed94f31a25
5 changed files with 14 additions and 7 deletions

View File

@@ -79,7 +79,8 @@ if [ ${REPORT_ACTION} -eq 1 ]; then
--exclude=".*src/benchmarks.*" \
--exclude=".*generated-sources/gen-cpp.*" \
--exclude=".*src/util/bit-packing.inline.h.*" \
--html --html-details -o "${REPORT_DIRECTORY}/index.html" > "${REPORT_DIRECTORY}/gcovr.out"
--html --html-details -o "${REPORT_DIRECTORY}/index.html" \
> "${REPORT_DIRECTORY}/gcovr.out" 2>&1
fi
if [ ${ZERO_COUNTERS_ACTION} -eq 1 ]; then

View File

@@ -183,7 +183,7 @@ export IMPALA_POSTGRES_JDBC_DRIVER_VERSION=42.5.6
unset IMPALA_POSTGRES_JDBC_DRIVER_URL
export IMPALA_PYTHON_VERSION=2.7.16
unset IMPALA_PYTHON_URL
export IMPALA_PYTHON3_VERSION=3.7.16
export IMPALA_PYTHON3_VERSION=3.8.18
export IMPALA_RAPIDJSON_VERSION=1.1.0
unset IMPALA_RAPIDJSON_URL
export IMPALA_RE2_VERSION=20190301

View File

@@ -17,5 +17,5 @@
# specific language governing permissions and limitations
# under the License.
source "$(dirname "$0")/impala-python-common.sh"
source "$(dirname "$0")/impala-python3-common.sh"
exec "$PY_ENV_DIR/bin/gcovr" "$@"

View File

@@ -30,3 +30,13 @@ pylint == 2.10.2
platformdirs == 2.4.1
typing-extensions == 3.10.0.2
k5test==0.10.3
gcovr == 7.2
Jinja2 == 3.1.4
flit-core == 3.9.0
lxml == 5.2.2
Cython == 3.0.10
colorlog == 6.8.2
Pygments == 2.13.0
MarkupSafe == 2.1.5
tomli == 2.0.1
packaging == 24.1

View File

@@ -23,10 +23,6 @@
allpairspy == 2.5.0
argparse == 1.4.0
future == 0.18.3
gcovr == 4.2
Jinja2 == 2.11.3
MarkupSafe == 1.1.1
lxml == 4.9.1
hdfs == 2.0.2
docopt == 0.6.2
execnet == 1.4.0