From patchwork Thu Nov 10 20:03:56 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: 623339 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp342735pvb; Thu, 10 Nov 2022 12:04:20 -0800 (PST) X-Google-Smtp-Source: AMsMyM6AkdWIIsdPbOcBSgm39NwaJTnaS4nGFYFaKJFYExHL1YnUUhPdkZ5CQgnwA8pFzipsmOI2 X-Received: by 2002:a05:620a:27d3:b0:6fa:ae94:6a60 with SMTP id i19-20020a05620a27d300b006faae946a60mr19949804qkp.777.1668110660595; Thu, 10 Nov 2022 12:04:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668110660; cv=none; d=google.com; s=arc-20160816; b=y96+UUpek/AqyLJ9/YNYlG5Rk6xes1T27a4JfY1JKgjHeQAoVBeI/3Xu47SOS62KZA /tUs5kulgBAXOhHRaBVsgaeJ0On+PpuqlTJl4zIKR8/5I3Yn5JCFMvRzH0r+9qoLsxAa Pd/fma2mgAeYbQCV709DH6llQisl4962tJewo6IKq+/h9IbUygQSIpHLextMIowp9NKM Gk45Khdk4uuZwLozcgr8n1UQijBio9W9O8gRJFI32kpIId3X0LplrS1wuT4bzvIczaAs VX6cXt+CiaTdAaoKB1zEc376+6ReDQzr8DpmvU5GcJKWy0atiGRwMEHwfXmtpGNewHUm rlpw== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=FZmDXkWIQDQX4rVgrGfLvjkptXWJU1Fmckwyj2CnWPY=; b=fIrezI6bRDx2kQIk+vZj4BWVXbJSfAU2k/7brQI4sEfTT+UGg9EeyjrJ+xqW+yk8hm qOa2T8n2LYak3PZ/XoIhycHUMi5izLfzGqOaW9Js6HiEJevx7EvWbR0tNe5pTt9wnf0d GSmid8SwzxhVEtMewDye6Aqg49M7Tf1tfbgB6vq/q3X55gcfDkWwu9tg/mPddig9NLiW mlYY0eIsCQBdQtN2lbi2kkg1HVtSJbnZt1vfkz3eO4pNuwJVMtyl7GkbVBC5u4JQ2MRb xd1Vds21Nxv0AlmvCuSO8Wo73J7+Z7qbr4l58jEIbeSMRsTOkweKOyFbY0ffqxw09hlG 7tZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tiQx+8iD; 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 a9-20020a0562140c2900b004bc0b51bebasi7065qvd.578.2022.11.10.12.04.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Nov 2022 12:04:20 -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=tiQx+8iD; 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 1otDmQ-0002BP-Ev; Thu, 10 Nov 2022 15:04:06 -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 1otDmO-0002Aw-EQ for qemu-devel@nongnu.org; Thu, 10 Nov 2022 15:04:04 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otDmM-00015E-QV for qemu-devel@nongnu.org; Thu, 10 Nov 2022 15:04:04 -0500 Received: by mail-wr1-x431.google.com with SMTP id g12so3800516wrs.10 for ; Thu, 10 Nov 2022 12:04:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FZmDXkWIQDQX4rVgrGfLvjkptXWJU1Fmckwyj2CnWPY=; b=tiQx+8iDh6P9X0uZXVz0TmRMe5SZZIxcjdpGM9FRhluVu3U22UC3kSaw6fjksXdvnY RYeOiGS60+LRaSVwj4LOuY0Yho+8WqFvhpwwNDxcowBKdZytkAoi6BWHAPhHedCFzO4Z Pw84xMltCRLwSkGdxlxAA0rzhCcICV9eGPfTqaMytJpeeIKqsi06JNG8eH6vNuh5v2Aa iybGne/xhBm2i+jbqEI8UATDwUVlvi/GC7v5iBtER5WZ8Qo6DlFmwYtPdN92jGVP0ybA k2AOOxssdueEc+cGMZSI6op7qdGKOJkW4j5bkfIQjYfee1IOW4ZAyQoKjSudCdWF6hje mc3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FZmDXkWIQDQX4rVgrGfLvjkptXWJU1Fmckwyj2CnWPY=; b=tmyIWKFpwbvyQKQgxWuzALPAtIQmecEPRKq+Myzk5E6V9iFtsdK4Ms5Zw1FuK6bCtl QgPGnMwZ6sSJ+0MwptF4ve6SNS4Mc8wsDpcYOMP8u/WYrQxpy5FrBi9iBTt2mJcoKD8f 9rslwilhPFqC2ute2q14tA2kPaKdbO0O9x0BMNn86eiQwgdJH1IZYNEdKxmkpHNfWWah bLpm70gCYiGi4n7Onw+45ognW3enn/1RPekXjV+hYXsjUBie3PKaNuikZuKrojCzf3Pr wfMbAPegq+vBFEHFJqlHUmwAQqRiaUJFOBduaWdkVqn+FpVfg/S2PI2txFeOKGbMtvQ2 hwYQ== X-Gm-Message-State: ACrzQf2CTwNuRh5Mq0qxsQia3UdnvBdXG1ZD0v8zHHtT/Lr83DMK/Vvb KdRATimrzdQYZIwJNXdS6sP8AA== X-Received: by 2002:a5d:4e8c:0:b0:236:6f5a:e893 with SMTP id e12-20020a5d4e8c000000b002366f5ae893mr41229058wru.44.1668110641081; Thu, 10 Nov 2022 12:04:01 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id bt17-20020a056000081100b0023677e1157fsm49296wrb.56.2022.11.10.12.04.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 12:04:00 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B3EE91FFB7; Thu, 10 Nov 2022 20:03:59 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [RFC PATCH] gitlab: integrate coverage report Date: Thu, 10 Nov 2022 20:03:56 +0000 Message-Id: <20221110200356.3425353-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.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 --- .gitlab-ci.d/buildtest.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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