From patchwork Tue Nov 22 09:56:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 627505 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2344804pvb; Tue, 22 Nov 2022 01:57:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5DoYVk972V4IycRkD0zYbDtgWlIiItwieaG5wY6BdyyHYkOhx33FdIHKrOMW4tUdD8xrVo X-Received: by 2002:a05:622a:1184:b0:3a5:6f39:4bd7 with SMTP id m4-20020a05622a118400b003a56f394bd7mr2573491qtk.226.1669111076089; Tue, 22 Nov 2022 01:57:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669111076; cv=none; d=google.com; s=arc-20160816; b=R2ZESC4LPqC8ld2NE3oeeHLYjjITGuUnMOh69jfxYAOKuhBoqAZNAOoStMwMrf7ulU 3BCRFea+BrK6D8R+EiswLlOnjL2P7dt0t4ew7gl+EzUOShEeYLhlk/xuvJJTyUVzU4Qq hmoYxDpOBSsvq4+1B/PtNITlWmcb05DjU1Gn8MJPV2qVxU6Dt/YiYoQd8+b1xpx56xq2 yKo0Hmd4CM4JdFxQeTgtWsSxys0ygjKN06wBNO2txmvfehd5JWuPtF68O+BWgahzC3Yb 8QWZaS1fXiX1q+KIhs8Xye+qhq1S1joAaMFN+FHnYvSbtbxndcJwi+d8jBB4ihkCZFrf fK1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=poryMUWRLDds72xI/Jm9ugboCEqA18vwJ5mKpSpT8uc=; b=Itvm7CeiyNCLE6uVc8TwFcS35gGQFynnR9Rw62z91/y7eHSiKadFrsugOtEWazZn8Y a/xrs7EMQYZ4juuBG38vXRjX3ay07LfpYqA7d248W+Jh26LFdfjj4OqCa/NAUn05Q1Ps UbQeyTl1a7guCAQr6JVu+IKVIkjWTGUSIq9slZjihcWGmK2NtPe7P+yhI6keKqaE9pVz 1OYC6aa8PnIYepAqPwAmvo/wccHo//kQDMzDLMaDeDlhIPOQTvJY3M94s2oDC/ML3d4z 6eFvpoPAdwjmtOV0EP4S4eIfqjquHTrDydhypGJtGv6eFUWl1i6eVPtjeq1d0GOK3dlR 5ECg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i3osRi9Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l13-20020a37f90d000000b006ee8da2bb15si7528889qkj.566.2022.11.22.01.57.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 Nov 2022 01:57:56 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i3osRi9Q; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxQ0u-0002Yg-Bj; Tue, 22 Nov 2022 04:56:24 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxQ0p-0002NW-TR for qemu-devel@nongnu.org; Tue, 22 Nov 2022 04:56:19 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxQ0o-0003sd-8G for qemu-devel@nongnu.org; Tue, 22 Nov 2022 04:56:19 -0500 Received: by mail-wm1-x32a.google.com with SMTP id o30so10330553wms.2 for ; Tue, 22 Nov 2022 01:56:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=poryMUWRLDds72xI/Jm9ugboCEqA18vwJ5mKpSpT8uc=; b=i3osRi9QZq5roy5icUm/OH3mPmCaumFYI2iZU3debootxdbAtG3Pmq8gEpQKIlA9IS bKJwlkBPUro8z3+3ITdbZSr58t//FkL347BupEW/oCSNwhrEzHL5UDVADjHRba9xE2vI PD++u/PVDJZyVf/jw9eszlRbisDrXaw+SKp36flFa2rrbV8KWO7yYTRBKfZLiq+fHXPq /V9/WL/sb+JQpdg96HdNDMT07sMz1QzKfjKYcwj78binM3+892fyyjlkA1WnRNy/yt4h PWVpO03OY7H0rMtUxMfYC1n7lgATezC91OwgHNZZdLvsuth4m7ChoL7QeuZbmN1KrCqP A/fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=poryMUWRLDds72xI/Jm9ugboCEqA18vwJ5mKpSpT8uc=; b=sER6LChsRpo3WV8ahrfHujfIm/KiJn8G2Jw+03E+sqa+XcsxOCBESPvhUx0IJ+WsVK 0OwCLW4nUTp5lZ+tBT1vwIIvWHUxRGZqCQEI/vUhkOKHPWx8xjEM9E0asdQZiu00VhbH Qmz2CAifymXOdGRsGc72EpQgp5V9mM1TshMEA6SJNoMn7yvRp1WeqCQdWUoSiHd8pTRZ bNORzYn0+3s7JJsx6CCPtQlmu9okzKK+AL1LjLMIESzLmqA8F/s3kJ0CFyuMOlhLosBc KFGaauDEdvlZF6qxlLm8nkYPDG3OaBqn265vyLUeEZSUTvuimiqPPwtp0+HsOxcCuwf5 C9uQ== X-Gm-Message-State: ANoB5plVTtEENa4Xi+16bj5+ETewrk2+e/UJRGWUl4u7Lzs7ylEgnNX+ ifcn+pLKEfrDyIxKyvtwbjX97w== X-Received: by 2002:a05:600c:92a:b0:3cf:69d4:72ee with SMTP id m42-20020a05600c092a00b003cf69d472eemr2005560wmp.122.1669110976587; Tue, 22 Nov 2022 01:56:16 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id e2-20020adfdbc2000000b00241b95cae91sm13507885wrj.58.2022.11.22.01.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 01:56:13 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 98ADE1FFC2; Tue, 22 Nov 2022 09:56:11 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 11/11] gitlab: integrate coverage report Date: Tue, 22 Nov 2022 09:56:10 +0000 Message-Id: <20221122095610.3343175-12-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221122095610.3343175-1-alex.bennee@linaro.org> References: <20221122095610.3343175-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This should hopefully give is nice coverage information about what our tests (or at least the subset we are running) have hit. Ideally we would want a way to trigger coverage on tests likely to be affected by the current commit. Signed-off-by: Alex Bennée Acked-by: Stefan Hajnoczi Message-Id: <20221117172532.538149-12-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index 7173749c52..d21b4a1fd4 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -494,7 +494,17 @@ check-gprof-gcov: IMAGE: ubuntu2004 MAKE_CHECK_ARGS: check after_script: - - ${CI_PROJECT_DIR}/scripts/ci/coverage-summary.sh + - cd build + - gcovr --xml-pretty --exclude-unreachable-branches --print-summary + -o coverage.xml --root ${CI_PROJECT_DIR} . *.p + coverage: /^\s*lines:\s*\d+.\d+\%/ + artifacts: + name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} + expire_in: 2 days + reports: + coverage_report: + coverage_format: cobertura + path: build/coverage.xml build-oss-fuzz: extends: .native_build_job_template