From patchwork Fri Jan 12 03:43:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 859482 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) 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 3zHpWS2yWVz9t2l for ; Fri, 12 Jan 2018 14:43:48 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D05AB8A4D0; Fri, 12 Jan 2018 03:43:44 +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 qguSUfyXR2mw; Fri, 12 Jan 2018 03:43:43 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 88D3D8A3C3; Fri, 12 Jan 2018 03:43:43 +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 60F2C1C2039 for ; Fri, 12 Jan 2018 03:43:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5DC8E2FA6D for ; Fri, 12 Jan 2018 03:43:42 +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 8XfjjfQ2Hgk1 for ; Fri, 12 Jan 2018 03:43:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ch3vs04.rockwellcollins.com (ch3vs04.rockwellcollins.com [205.175.226.52]) by silver.osuosl.org (Postfix) with ESMTPS id A62B925D87 for ; Fri, 12 Jan 2018 03:43:40 +0000 (UTC) Received: from ofwch3n02.rockwellcollins.com (HELO ciulimr02.rockwellcollins.com) ([205.175.226.14]) by ch3vs04.rockwellcollins.com with ESMTP; 11 Jan 2018 21:43:39 -0600 X-Received: from largo.rockwellcollins.com (unknown [192.168.140.76]) by ciulimr02.rockwellcollins.com (Postfix) with ESMTP id 54B3120075; Thu, 11 Jan 2018 21:43:39 -0600 (CST) From: Matt Weber To: buildroot@buildroot.org Date: Thu, 11 Jan 2018 21:43:36 -0600 Message-Id: <1515728616-28388-1-git-send-email-matthew.weber@rockwellcollins.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] autobuilder: failure reason use build-time.log X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 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" When the make output doesn't parse to provide a result and unknown is assumed, check the build-time.log and see if the last line was a :start:. IF so, use this pkgname instead before declaring unknown. This was tested against the ti-cgt-pru hang. http://autobuild.buildroot.net/results/60e/60e11a3bb90b9f41259e4a970081b72d8b8d100b// Signed-off-by: Matthew Weber --- web/import.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/import.inc.php b/web/import.inc.php index 8eb3066..081a1cb 100644 --- a/web/import.inc.php +++ b/web/import.inc.php @@ -235,7 +235,12 @@ function import_result($buildid, $filename) if (trim($tmp[0])) $reason = $tmp[0]; else - $reason = "unknown"; + exec("tail -1 " . $thisbuildfinaldir . "build-time.log | grep :start: | cut -d':' -f4", $tmp); + if (trim($tmp[0])) + print "Using build-time.log for reason[".trim($tmp[0])."]"; + $reason = trim($tmp[0]); + else + $reason = "unknown"; } $db = new db();