[tracker/wip/carlosg/fix-coverage-percentage: 3/3] ci: Rebuild tree before running tests
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/fix-coverage-percentage: 3/3] ci: Rebuild tree before running tests
- Date: Sun, 27 Mar 2022 18:44:04 +0000 (UTC)
commit f41997acb5d70abff36c25e1faeb0832b411c87e
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Mar 21 14:24:51 2022 +0100
ci: Rebuild tree before running tests
For some reason, gcc or gcovr do not appreciate intermediate gcda/gcno
files being transferred between CI runners. Ensure to rebuild the
tree so that these are freshly created.
Fixes the wonky coverage reports seen lately, as individual test
runs had these fluctuations that made them report as little as 10%
covered, quite far from the more accurate ~77% we get in the correct
runs.
.gitlab-ci.yml | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8c7f91ed6..ff06146bd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -287,6 +287,7 @@ build-alpine-latest@x86_64:
# whole environment for every failed test, and that gives a whole
# screenful of junk each time unless we strip these.
unset $(env|grep -o '^CI_[^=]*')
+ ninja clean; ninja
env LANG=C.UTF-8 LC_ALL=C.UTF-8 dbus-run-session meson test -t $MESON_TEST_TIMEOUT_MULTIPLIER
--print-errorlogs ${MESON_TEST_EXTRA_ARGS}
after_script:
- pushd build
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]