From patchwork Wed Jan 31 20:00:16 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: 126405 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1049176ljc; Wed, 31 Jan 2018 12:01:34 -0800 (PST) X-Google-Smtp-Source: AH8x224xVB/3g+CeSz3oQ6E9P3fPoZUoDHNKabxHNu5tZJ85u11XVLPzhc4he8y+1aC0MqeUrAsC X-Received: by 10.129.135.6 with SMTP id x6mr20717444ywf.263.1517428894357; Wed, 31 Jan 2018 12:01:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517428894; cv=none; d=google.com; s=arc-20160816; b=cHTOmI59TuCgAvBufmnKvmQkvb7+eMHws2LYaASaEa44+go5fpqYZd3Zo4oO1eCDkx MNBH+YNyFvzrn0mjqIq0BVzeImfHF+t4XO0tU5hxYEmCtcRb9TCRSfWX2Lb7g3DRS6U3 Lm0AKRHmwRUmAFVL45b/aZZFuOi4RSkACRD1JRxC9i13lshbxnKnpM5DHlZnqkYypjVo D1mzRCZcVXiUmvIiWKhpTg894YbdkliE/9/r65aNXT67XiHtxtX/xSjmg58SwoWzPGJy Lq1iCTfPf0bnGEsaAkQ3vO2Rj6/PI5av+/aA4oddGf5gGcR8OJd4ZJjOogOBtTTmCaRy BhuA== 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=gq2nykl2ALmzePhDwxF+1PaxnxLnkpowTnvy6ge1Csw=; b=C/av5w55BzYjvc8F5qNzBY9BGhPTTegTA84bOUQRhnQl+TR5Y9hBGuzQrUb8yLMjE5 9bk3GOzZfChHLRRZqcZtJGDtWXUFYI5eQhziZk1/9bGfprAseDa6dsRYKvnITGywox8K ZpMfqzsGD0HN4wbvrqnaFWuHMBEr8FYxZ0kBr16BAR1sf2MJPFwAImHHPupxZ5OGYucD /U/ygxQmVIXcMakjogxB3ezE6NTNNJQfwG+zokvFCJfDXNyBgYYHoB1ZOSaVHlBMjmvw x1JOeW7uJe7rn2h3fW+KIenvj6iXazV67GK0d3LA6JkrdaRCQKo7pJfTzVAUM3Mfn8k7 7BpQ== 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 129si833484ybn.455.2018.01.31.12.01.34; Wed, 31 Jan 2018 12:01:34 -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 04AD7617A2; Wed, 31 Jan 2018 20:01:34 +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 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 0A56C6173E; Wed, 31 Jan 2018 20:00:39 +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 75035616FA; Wed, 31 Jan 2018 20:00:35 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id CB84260956 for ; Wed, 31 Jan 2018 20:00:28 +0000 (UTC) Received: from mxback18j.mail.yandex.net (mxback18j.mail.yandex.net [IPv6:2a02:6b8:0:1619::94]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 3EE8E185F84 for ; Wed, 31 Jan 2018 23:00:27 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback18j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id aVZEt30eCv-0RNmxkZV; Wed, 31 Jan 2018 23:00:27 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id MedB8d5Qzx-0QqiggFa; Wed, 31 Jan 2018 23:00:26 +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: Wed, 31 Jan 2018 23:00:16 +0300 Message-Id: <1517428820-8373-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517428820-8373-1-git-send-email-odpbot@yandex.ru> References: <1517428820-8373-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 441 Subject: [lng-odp] [PATCH v5 1/5] 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: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: eb9e424b83553d93732577a9ba50c59a684ca7ea **/ .shippable.yml | 10 +++------- scripts/shippable-post.sh | 12 ++++++++++++ 2 files changed, 15 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..0f57c24ff --- /dev/null +++ b/scripts/shippable-post.sh @@ -0,0 +1,12 @@ +#!/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 + +mkdir -p shippable/codecoverage +gcovr -r . --xml-pretty > shippable/codecoverage/coverage.xml