From patchwork Fri Feb 2 23:00:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 126768 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp44749ljc; Fri, 2 Feb 2018 15:01:23 -0800 (PST) X-Google-Smtp-Source: AH8x226bYesWNWh6QdLz/2lZIxpHVz7fqLz78OxPBqSYaBak3Y8qf/WdkQ2w/2+4qgF0vlUn6At6 X-Received: by 10.237.47.195 with SMTP id m61mr11464610qtd.95.1517612483176; Fri, 02 Feb 2018 15:01:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517612483; cv=none; d=google.com; s=arc-20160816; b=PSY3ahat+oQcMwM2DRc6iN8IKngX+pQ9Tw36p7Q5bN44DUDacYCle1jOKfukYiUd5u 487b/ZqMWpFDgOnun5GJMfeHTaQY/kva1npq0jiEXLBwlU97doJpEVC6+nk0qgmrGlsj /r+s3OuD3gMhkoUjuGsDIpg1yClLgcadj22Fx4Pqma2mEqwUXuu3EcRZNkq4y5TINr1B pWRKzkUNX4YkQVTD3zeNdXRDm89HYfrdT9NmeL50Etdmm0LTbjXXNBOH76O+NrnAuoeP e+qzcfgnI1K7vkPO3j4spt24BjsmtcnKbIhBkDSAoAvGtwon5MmdPYpjOAhnJYvKD55c 6xYg== 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:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=4PblcEJWQkDHtHZsTe+OJeinU1WkxwIBKeHp35LGWpg=; b=QTXrGavj9bpVuyh+pVyHkYjMIe/7QUjmSF/4rEZfHmN7BzCleJX8gHHSnBgvY1njFK W4tcIO6L1MV+fMgSoLiSGIr5n2iRupge5bb2G/Y28ld1D8ejteaKrKNo61TKeNArFUjE ++PlRROvs9K8nbDHEUgZBz21Y3PDZzF7Eu4heGdhThpuq8k7Izrr2MR1GmjNkgNhqyjM JJ/SF4rMXBiseVqQ29/v8VGduZznBdtrnhBY4md5gIcI02n0clL73NSy+ykRP/SXNBps Cb0hebR34GEzlx5ymuCnCvsYW3Yvx4ee9MLtT+VDn2rhQySl2iPThihBnCe2oD0Qm6Fo 2TTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id q4si806439qkb.218.2018.02.02.15.01.22; Fri, 02 Feb 2018 15:01:23 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id BE7C46087C; Fri, 2 Feb 2018 23:01:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 5F59361725; Fri, 2 Feb 2018 23:00:47 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 722296171D; Fri, 2 Feb 2018 23:00:40 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id E88BE60847 for ; Fri, 2 Feb 2018 23:00:38 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 2512C4305A99 for ; Sat, 3 Feb 2018 02:00:37 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 0UHV7YrgTO-0b68jtKA; Sat, 03 Feb 2018 02:00:37 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id pNzstMzQao-0aF8BmC6; Sat, 03 Feb 2018 02:00:36 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Sat, 3 Feb 2018 02:00:15 +0300 Message-Id: <1517612420-9939-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517612420-9939-1-git-send-email-odpbot@yandex.ru> References: <1517612420-9939-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 441 Subject: [lng-odp] [PATCH v11 1/6] shippable: report test results even if ci step failed X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov According to the documentation post_ci is executed only if ci finished successfully. Move test result reporting to separate script and call it from on_success and on_failure steps. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 441 (lumag:shippable-ci) ** https://github.com/Linaro/odp/pull/441 ** Patch: https://github.com/Linaro/odp/pull/441.patch ** Base sha: 5865787680be13b47b777e8b0b64646755be41e0 ** Merge commit sha: 11e33ced96b4e48b13f8d5d5bd2667715a149357 **/ .shippable.yml | 10 +++------- scripts/shippable-post.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100755 scripts/shippable-post.sh diff --git a/.shippable.yml b/.shippable.yml index 9bc2cb6f7..35292d983 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -40,14 +40,10 @@ build: - make - sudo env ODP_SHM_DIR=/dev/shm/odp ODP_TEST_OUT_XML=yes make check - post_ci: - - wget https://raw.githubusercontent.com/shawnliang/cunit-to-junit/master/cunit-to-junit.xsl - - | - for FILE in `find ./test ./platform/ -name "*.xml"`; do - bname=`basename $FILE`; - xsltproc --novalid cunit-to-junit.xsl $FILE > $SHIPPABLE_BUILD_DIR/shippable/testresults/${bname} - done + on_success: + - ./scripts/shippable-post.sh on_failure: + - ./scripts/shippable-post.sh - cat config.log - find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done diff --git a/scripts/shippable-post.sh b/scripts/shippable-post.sh new file mode 100755 index 000000000..ed5a44168 --- /dev/null +++ b/scripts/shippable-post.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +wget https://raw.githubusercontent.com/shawnliang/cunit-to-junit/master/cunit-to-junit.xsl + +for FILE in `find ./test ./platform/ -name "*.xml"`; do + bname="`basename $FILE`"; + xsltproc --novalid cunit-to-junit.xsl "$FILE" > \ + "$SHIPPABLE_BUILD_DIR/shippable/testresults/${bname}" +done