From: Arnaud Giersch Date: Fri, 13 Jan 2023 10:21:04 +0000 (+0100) Subject: No need to compute coverage for Java anymore. X-Git-Tag: v3.34~638 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/85dd46c25c34e9d07055b816398c825590327094 No need to compute coverage for Java anymore. [ci-skip] --- diff --git a/sonar-project.properties b/sonar-project.properties index 41b560aaa2..ce4b832abb 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -187,11 +187,9 @@ sonar.python.version=3 ### NOTE: the following properties are overridden by Jenkins configuration ### -#sonar.java.binaries #sonar.cfamily.build-wrapper-output #sonar.cfamily.gcov.reportsPath #sonar.python.coverage.reportPaths -#sonar.coverage.jacoco.xmlReportPaths #sonar.cfamily.threads #sonar.cfamily.cache.enabled #sonar.cfamily.cache.path diff --git a/tools/jenkins/Coverage.sh b/tools/jenkins/Coverage.sh index 2eb97cc93c..e37a76d237 100755 --- a/tools/jenkins/Coverage.sh +++ b/tools/jenkins/Coverage.sh @@ -55,7 +55,6 @@ NUMPROC="$(nproc)" || NUMPROC=1 cd "$BUILDFOLDER" -rm -rf jacoco_cov* rm -rf python_cov* rm -rf xml_coverage.xml @@ -72,31 +71,14 @@ cmake -Denable_documentation=OFF \ #build with sonarqube scanner wrapper /home/ci/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir bw-outputs make -j$NUMPROC tests -JACOCO_PATH="/usr/local/share/jacoco" -export JAVA_TOOL_OPTIONS="-javaagent:${JACOCO_PATH}/lib/jacocoagent.jar" export PYTHON_TOOL_OPTIONS="/usr/bin/python3-coverage run --parallel-mode --branch" ctest --no-compress-output -D ExperimentalTest -j$NUMPROC || true ctest -D ExperimentalCoverage || true -unset JAVA_TOOL_OPTIONS if [ -f Testing/TAG ] ; then - files=$( find . -size +1c -name "jacoco.exec" ) - i=0 - for file in $files - do - sourcepath=$( dirname "$file" ) - #convert jacoco reports in xml ones - ant -f "$WORKSPACE"/tools/jenkins/jacoco.xml -Dexamplesrcdir="$WORKSPACE" -Dbuilddir="$BUILDFOLDER"/"${sourcepath}" -Djarfile="$BUILDFOLDER"/simgrid.jar -Djacocodir=${JACOCO_PATH}/lib - #convert jacoco xml reports in cobertura xml reports - cover2cover.py "$BUILDFOLDER"/"${sourcepath}"/report.xml .. ../src/bindings/java src/bindings/java > "$BUILDFOLDER"/java_coverage_${i}.xml - #save jacoco xml report as sonar only allows it - mv "$BUILDFOLDER"/"${sourcepath}"/report.xml "$BUILDFOLDER"/jacoco_cov_${i}.xml - i=$((i + 1)) - done - #convert python coverage reports in xml ones cd "$BUILDFOLDER" find .. -size +1c -name ".coverage*" -exec mv {} . \; diff --git a/tools/jenkins/jacoco.xml b/tools/jenkins/jacoco.xml deleted file mode 100644 index dd4ac04527..0000000000 --- a/tools/jenkins/jacoco.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tools/tesh/tesh.py b/tools/tesh/tesh.py index 69835fb0bc..d57e557826 100755 --- a/tools/tesh/tesh.py +++ b/tools/tesh/tesh.py @@ -554,8 +554,6 @@ def main(): re.compile(r"profiling:"), re.compile(r"Unable to clean temporary file C:"), re.compile(r".*Configuration change: Set 'contexts/"), - re.compile(r"Picked up JAVA_TOOL_OPTIONS: "), - re.compile(r"Picked up _JAVA_OPTIONS: "), re.compile(r"==[0-9]+== ?WARNING: ASan doesn't fully support"), re.compile(r"==[0-9]+== ?WARNING: ASan is ignoring requested __asan_handle_no_return: stack "), re.compile(r"False positive error reports may follow"),