From patchwork Sun Jul 30 04:49:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Martincoski X-Patchwork-Id: 795300 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="lD7tSpYZ"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xKqs335Dcz9sDB for ; Sun, 30 Jul 2017 14:50:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id F06BC88F0D; Sun, 30 Jul 2017 04:50:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dKzA0yChnQMF; Sun, 30 Jul 2017 04:50:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3F9BF88B95; Sun, 30 Jul 2017 04:50:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 1D52B1C2197 for ; Sun, 30 Jul 2017 04:50:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E82692F47E for ; Sun, 30 Jul 2017 04:50:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ewN4i-PM8+40 for ; Sun, 30 Jul 2017 04:50:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qt0-f196.google.com (mail-qt0-f196.google.com [209.85.216.196]) by silver.osuosl.org (Postfix) with ESMTPS id 7DDC82F475 for ; Sun, 30 Jul 2017 04:50:16 +0000 (UTC) Received: by mail-qt0-f196.google.com with SMTP id d10so14591944qtb.4 for ; Sat, 29 Jul 2017 21:50:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Aw0DzIz0SiLtheaDEOgr9YmdMTpJolYmUAqc/n452jc=; b=lD7tSpYZqt+eSJJL1ka3fUoxtVpeQ7jPSo/HvsHrt2/DNENqncaJweCWyXMwZ/yyGx RC7qEPDigqC//Gykv6HYfJwJa9AfWH8/n380qs/4uDm5FjrNySc3bP8pUyQOZ0gWJzpJ q1voFd75sED1e3VbTI0PMl9PBTP8ivTRSW4z0VGsLK0PbM19GYoPbniEVHPejaJI1/+X N8UDk4Sh9+/wljv2azqT0nuf59C5ZTuX4Ngosihy7Sc/1wwYk8lTL9gWden6Kt21yJCR av/zAPi0SEHt9ofLZa6PNC0fjnDveI7lem5WR6sHuOgDWhW5o8xSNwk+nei4U2ZUCjIT E9zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Aw0DzIz0SiLtheaDEOgr9YmdMTpJolYmUAqc/n452jc=; b=m/ukApP9UeIYPYBtH+Tykr6SGkZl920A3WlXPvbFHVVIVZ8QSsdkNd1y2llY/zPn/u h5tbYpH5jNSnszfCoaUIRaKkbdLrZDnPdnfCGWapHoiiFl7wGOJZDnZNMX1YpOO1RZjh 8wt/GSHUbZ0wHDUFlfe7IiqKRQgN98n/YPJ6lBlLs2xqHURPgxGsey/681nRATo1IMH0 nPP+IV0NYX1a/Sci8vZxO6/6oSpCuxpD+M6PYH0ocFvWAn2gzxxj04ieAmjJY+UzPzYx WRj40TvVP+88BmXEQeRC1p/9ihSyovE57lR23VDDxUuoaIdq3v/cYSWSc1Ih6v4cWcbh bvyQ== X-Gm-Message-State: AIVw113+DMCqqU+VLHJk/H//j3Lf8jiI0vSeYUuT/RHB14ymhkCrs08A htsNsJ5E0t1R9iHK X-Received: by 10.200.57.101 with SMTP id t34mr16587966qtb.158.1501390215184; Sat, 29 Jul 2017 21:50:15 -0700 (PDT) Received: from ultri3.home ([201.86.229.254]) by smtp.gmail.com with ESMTPSA id x184sm12303204qke.47.2017.07.29.21.50.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 29 Jul 2017 21:50:14 -0700 (PDT) From: Ricardo Martincoski To: buildroot@buildroot.org Date: Sun, 30 Jul 2017 01:49:43 -0300 Message-Id: <20170730044946.11999-1-ricardo.martincoski@gmail.com> X-Mailer: git-send-email 2.13.0 Cc: Thomas Petazzoni , Ricardo Martincoski Subject: [Buildroot] [RFC PATCH 1/4] .gitlab-ci.yml: save rootfs as artifact for runtime tests X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Sometimes when a test fails in a gitlab pipeline the reason of the failure cannot be determined using only the logfile. Add the modified rootfs as an artifact of the job to improve troubleshooting. To accomplish this, always use -k option from the test infra, unconditionally add the resulting images to the artifacts, and let the runner do the cleanup for us. These artifacts can also be useful when a test fails locally but pass at gitlab runners. When the test does not generate a image, this message is displayed in the runner log: WARNING: test-output/*/images/*: no matching files Cc: Arnout Vandecappelle Cc: Thomas Petazzoni Signed-off-by: Ricardo Martincoski --- See also http://lists.busybox.net/pipermail/buildroot/2017-July/199332.html --- .gitlab-ci.yml | 5 ++++- .gitlab-ci.yml.in | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 42707ad1a6..f9e5b1fa6b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,12 +47,15 @@ check-DEVELOPERS: - output/build/packages-file-list.txt .runtime_test: &runtime_test - script: ./support/testing/run-tests -o test-output/ -d test-dl/ ${CI_BUILD_NAME} + # Keep build directories so the rootfs can be an artifact of the job. The + # runner will clean up those files for us. + script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k ${CI_BUILD_NAME} artifacts: when: always expire_in: 2 weeks paths: - test-output/*.log + - test-output/*/images/* acmesystems_aria_g25_128mb_defconfig: *defconfig acmesystems_aria_g25_256mb_defconfig: *defconfig acmesystems_arietta_g25_128mb_defconfig: *defconfig diff --git a/.gitlab-ci.yml.in b/.gitlab-ci.yml.in index 3088677e67..b8fce9ef96 100644 --- a/.gitlab-ci.yml.in +++ b/.gitlab-ci.yml.in @@ -47,9 +47,12 @@ check-DEVELOPERS: - output/build/packages-file-list.txt .runtime_test: &runtime_test - script: ./support/testing/run-tests -o test-output/ -d test-dl/ ${CI_BUILD_NAME} + # Keep build directories so the rootfs can be an artifact of the job. The + # runner will clean up those files for us. + script: ./support/testing/run-tests -o test-output/ -d test-dl/ -k ${CI_BUILD_NAME} artifacts: when: always expire_in: 2 weeks paths: - test-output/*.log + - test-output/*/images/*