From patchwork Thu Feb 8 01:00:14 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: 127238 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1008433ljc; Wed, 7 Feb 2018 17:09:22 -0800 (PST) X-Google-Smtp-Source: AH8x225p/XSIM3mIeA5Vm/OSeZFooOUcQigZC8nRYuT1SgCvvNobduGQZuLW59AFezmOqJ9szjB4 X-Received: by 10.200.39.241 with SMTP id x46mr12024627qtx.266.1518052162506; Wed, 07 Feb 2018 17:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518052162; cv=none; d=google.com; s=arc-20160816; b=B/rm03qUK4oIGORdIpziziAk9gNer9t2D0d1gVOWIZRK8B8i4wwK4YvhjuUFDjhA8B IzhA/JEDQeZvFPXD8zKaq3d0M/GMb7Vqaq7vNoqgg91zoUDgx3NF5GFDVqi7ehPdSZ0U WlarjMDZD3hEAZxszALhavph5NBPytzTT05lyf0+4GSQLA2jjd3ZbVe6oe695vy9LOvn d/bcebZ0+c7dcUUMa3o+EQLjwjAuRfKzOvZYN19ptfynw1LKs8Yd2SZrjczTuzPUrJ9u kibIBoJl4ua4HhTTsHpph3bFmMDA+SGElh0iZGN0YyUSTHFYWKNkkl185Ys5jsjPpNHT sFJA== 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=6AaBo88V+AQkmVcbpWc9LOpc52xrFoAsmw/HgaLdkPo=; b=e+rTtOC/S1foh8GyRfbSU5+qUKjwtvI7XAG3cZTno0smzdOVc/WM2eo/s7liXr6M1P vQmfP0WMDJSwv+zil322h2Dn7ljPakAdTt9Jkxs7HVtjbdjXoVl5RbMsqFAqjGLrhWiD SoIbf9vMglc/VezdIK8l4rZ9i3ZD4aTG3DXmVsnEnmecEZX2xRUC7kr+B38g6650CCDe pzutcbKAZ8UWcTEbaBGwvM9CPFfj7VLNPsjMk5VodvgE3g0c8dRifzNG+CvPmKkDjH1k 4cYsPWrtHg17Q1mgUjBsDJXnnakI/JCexX8Iam/fx4wdemYWsAFz9LGTgWpT6VZ2iW4F gNTw== 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 28si854665qty.15.2018.02.07.17.09.22; Wed, 07 Feb 2018 17:09:22 -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 28D50609E9; Thu, 8 Feb 2018 01:09: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_H3, RCVD_IN_MSPIKE_WL 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 C50BE61805; Thu, 8 Feb 2018 01:01:41 +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 729DE607E6; Thu, 8 Feb 2018 01:01:35 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id 78E7E607E6 for ; Thu, 8 Feb 2018 01:00:22 +0000 (UTC) Received: from mxback14g.mail.yandex.net (mxback14g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:93]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 281C65603E11 for ; Thu, 8 Feb 2018 04:00:21 +0300 (MSK) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [2a02:6b8:0:1619::15:6]) by mxback14g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 3VaUhqT2Ap-0LEq1fJK; Thu, 08 Feb 2018 04:00:21 +0300 Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id bROEKCQMzX-0KnKAEpC; Thu, 08 Feb 2018 04:00:20 +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: Thu, 8 Feb 2018 04:00:14 +0300 Message-Id: <1518051619-20953-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518051619-20953-1-git-send-email-odpbot@yandex.ru> References: <1518051619-20953-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 441 Subject: [lng-odp] [PATCH v13 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: 257b08b35ceea41bad5a7f1c626496cf111e657a ** Merge commit sha: 223a609fc64a296b12ffa57310c51ace739462bc **/ .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