From patchwork Tue Nov 15 13:34:39 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: 624828 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2977601pvb; Tue, 15 Nov 2022 05:36:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf7/QwaQIptylJspJqscVsLVx6SHdmKuSINM4D4E1G/x53gmFZqtynGPFncK2P7U8K2838Zd X-Received: by 2002:a05:6214:2b92:b0:4bb:e8a8:46b7 with SMTP id kr18-20020a0562142b9200b004bbe8a846b7mr17194426qvb.43.1668519364152; Tue, 15 Nov 2022 05:36:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668519364; cv=none; d=google.com; s=arc-20160816; b=Sq1la2AKBSX8VM1GofGfvKF3juWgga+euYISplMAIHYtwcvSQZZICYPEaTtujb7Uzt VvBrXopy6KzC3Xi5V/WzbkbiRHalKqxEK0MXs4UqMYLPVsBFMS9jtc1QDpZKJaKTmx8W Z19YrOye0sa0elh4a+DLrQ0AGz/W91M5uxzLqCGrYSj1IULRf8F6uu5u2LhUP3Typ8Ul Iyyonj7Zut0NYBnjy+H82C5MjfI5qxBBESP0ix44SyLsvU8LYZY2VkdptPEPH67uIZTH zrfRjTbADccyY/CPmmiTdZ9R/QzAL4c0t9d24LHrKYj9CSohnbT/SK+kGjN3luxf+Vae z/Ag== 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=y/ae5vrQTt28MH0oBWTUQhGDSwBFm3CuIig1VKCkfko=; b=bBbmPdb1i5i/bmTNtsIuyZz98mRc0aIRTfUcy7hbihgO3g4+xnxk/Kn9/cXFyC2SUZ x0HlfjG86x49atmZymX48ZkGe2D8QDiewVXeVs5mTwc2Ww6cY5iFHdBYiGxC+gXQKYTe F2l3u/GUmmi1J3YKLIBznVVYKmG8VAx+KzWWF/L5+RTl7YS0QSCnWTifgWTkDxSe0og7 +UkG3aGTYQvMfllNgdP91G++g5xallutvN1p08ZSUkbsVXceHiXxUVOyFf6xkzCY8Hzv dk2TVQcd/vnewBiLeyfmrdxbkhDdAqwrcBJ/8Oe9EeSsnxbBFRB4JE4dXyG+xzL0y9xy xjCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VbhstaIG; 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 q12-20020a056214194c00b004b3f74336adsi7516868qvk.279.2022.11.15.05.36.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Nov 2022 05:36:04 -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=VbhstaIG; 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 1ouw6A-0006WK-VC; Tue, 15 Nov 2022 08:35:34 -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 1ouw5Y-0006JR-UW for qemu-devel@nongnu.org; Tue, 15 Nov 2022 08:34:59 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ouw5W-0004Lf-Nm for qemu-devel@nongnu.org; Tue, 15 Nov 2022 08:34:55 -0500 Received: by mail-wr1-x42e.google.com with SMTP id w14so24273448wru.8 for ; Tue, 15 Nov 2022 05:34:54 -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=y/ae5vrQTt28MH0oBWTUQhGDSwBFm3CuIig1VKCkfko=; b=VbhstaIGZSoipOm6VtzHLRWCMMPE+qGdt9UAk6pQtmLhP08uqG+TOM64tLI1RGhIoe +o86PjLoAs3nCMvC7DRj3mBtgNY02x+8HyGAX3xC+tJItB/xOnF5PHZ8Rc0QrI8Y9ByP B6Oeqiy/PK41wcpcSjUChA5imKerQTItV3/Rts+HmvUzeYXF2i0rBXvcCSG9ISCHSPgq jouz/OdzFTv5Y/l4wNUlSuMVQ2zyrXZH009CWUkSfj/fP44DVeRH70qtsCEluD+lnIAe G9qolV2wA1DcwjVW/q9YSAf+JEAC1RwaYS4vPAfCepEfZny8XMOEah2YU6wmnwFTqMtW Z4Rg== 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=y/ae5vrQTt28MH0oBWTUQhGDSwBFm3CuIig1VKCkfko=; b=6laLkot7v3vItAwBOFYqjwdGT2+30rwxp8f+nUfdfV98owwPm665ioOmG3jW5iWRue g14jB7o0kItlljdSX8tPIwtkk8CBMlv6z8GoKJYi3wX8kf+P5L5pqTt1L6+eOBCpyE7w 0uqSCWBmmrdZyg76rqID0MYBKm5k6V4DjCVrdIE9qL9mSvjDhH7qQL+FS7V75fZwfuIT toN/ncn4j1/Z5b3AzolqGTDSBwgTzhmF15gP6QcskT5PO+NPyWKBfyLQPK1QZEUSazP3 QiWI/SBiMu5QQ5pxlw0qXJSJAQB3ONw+MJT+aDPu9ZJv0KyR1GFHaXKihfG3gOWF3fWf lLMg== X-Gm-Message-State: ANoB5pkEE+saCLuLgVr2g6VAP4a6T5LmwCs3MIwFnW/V4LQu9yPnnHeQ V0hQlmpsoKsUqD/U8ykjh6eGBw== X-Received: by 2002:adf:e552:0:b0:236:7a97:12da with SMTP id z18-20020adfe552000000b002367a9712damr10691495wrm.237.1668519293233; Tue, 15 Nov 2022 05:34:53 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id n13-20020adff08d000000b002364c77bcacsm12435054wro.38.2022.11.15.05.34.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 05:34:44 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 407751FFC2; Tue, 15 Nov 2022 13:34:40 +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 10/10] gitlab: integrate coverage report Date: Tue, 15 Nov 2022 13:34:39 +0000 Message-Id: <20221115133439.2348929-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221115133439.2348929-1-alex.bennee@linaro.org> References: <20221115133439.2348929-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.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: <20221111145529.4020801-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