From patchwork Tue Oct 2 21:43:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anibal Limon X-Patchwork-Id: 148030 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp5668507lji; Tue, 2 Oct 2018 14:43:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV62F9q/vA9PRXVEZtIrs/KKfnonOS0x0KWueLMhJixa3r9YaYWkmFIM/R++qEyRHtK/G6f53 X-Received: by 2002:a63:334c:: with SMTP id z73-v6mr3355482pgz.220.1538516617967; Tue, 02 Oct 2018 14:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538516617; cv=none; d=google.com; s=arc-20160816; b=YnGbC62TxIaVUhIQe3gpPGWMY0Xc91kc3UZ+/qMVuibsW8A/zbMU762xTKT7MZcbFI VQr2IEkpTe/0TR/cdLHx9HdG3AXd4g7HswG24a4XgNzudznhDdzGtfz/HGo7+L/7ei4G FLfveB1bvqpxdCWB3N9rTj328ZkCmhOnvR8TSL8s0mGrBMWiEhUEcuM0a1GoHm6p1glm 79PhzJtqSp3vtgoH+LdEIfzW7EupYcrdWEVF6LBfyADryHKcXQD/QB4BB3DK6SVeIBLn KTuV4fQkWyGYryXLG2BlaoQb+4Eg7ADPtBLrCY7eDgobdl3BJXU7V48BEepRhVVTqH/g AUvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=EdZixnmomJYx7Qd01bi6/eNVlNmx64KknNOjAfeIJRQ=; b=EaLfsy3Tuxq2CoEtr+fPtx2CFv/HPw+5iYuZQzxp9cIfRsRYaLaSgjZEmMR7fdJtxf B/MxSqVUx8Rk1JV8CJX1aum+Co9x2TsyHy+T26YK98n6IxlGGAfNNX+UY+Mj9a9GY6U/ 9D1nBUo2L1VMmRzJ+xJ2Vk6cGf4laQGCl/TzQY5lMl+hC5huqYfcierDbsHEuCcj8FcO 49xfV0NYbyxGMl44N4xwH0JIt9JH8dlHYIG8C7o/rssnc11lfZ4Znrdft5I7rjb6e1+B +EaW7uVfORGLy/AqkBQ+NYF1siu+3TdFcuL7/TXhdifm5Jx2/3FkYa+a/5m/rgkUuK4k AK6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=i56DIOP2; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id s65-v6si16074678pgb.486.2018.10.02.14.43.37; Tue, 02 Oct 2018 14:43:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=i56DIOP2; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 5411774500; Tue, 2 Oct 2018 21:43:34 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-oi1-f193.google.com (mail-oi1-f193.google.com [209.85.167.193]) by mail.openembedded.org (Postfix) with ESMTP id 0513F74500 for ; Tue, 2 Oct 2018 21:43:32 +0000 (UTC) Received: by mail-oi1-f193.google.com with SMTP id k64-v6so2801765oia.13 for ; Tue, 02 Oct 2018 14:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UwAt+svAxvulX3rzmyM82n75OQl6JAD3EhSkJtAoH38=; b=i56DIOP28cggVa/QkJoLZ68xtQK32yVYjOOM9toDpFRTFCCsWuoKn/xxvjwgRQHhXa XYsF5MTuhIbMs6gSvRvKWsfcmbalUnyEctxQVnSNinfzIBQ+IFk3JWABwU7nMRVjftKU ZHpOBlPSdMLVZEly4CmQl3/K6gpajkrzv7YJU= 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:mime-version :content-transfer-encoding; bh=UwAt+svAxvulX3rzmyM82n75OQl6JAD3EhSkJtAoH38=; b=PewJe9GjFzfFDwoBXm95utXnYEK+ez3L33gRFbLM/LOrrLlqrNozXlYxjwSCmKrMRy k2MyuXcaToPpXNJHqwxgn5NIji6xi1ryKWJtpHsyvsmN5bdHc7t96oDiSKcYr/K0ZQRn KSzI2T+2XyYp7utTck1gQM26xIyYzECjVW6CsIywc2emPE1W6d8jENDcxq1vbMh/ClSs UKbNBMXksBVBAx8CIY7Xk3QjeH4mpY5zBWolyd3wZwrGs9ygXbNSJmr0xYzEkBFfWzAB qZ/NSrKvt56o3i8eGjDNHCXR4gxSBJsFFfbm401obHRPFqbhvG7wtzN3Wxb3COOdsVYU kHJw== X-Gm-Message-State: ABuFfoiLZweyv+3GGTbA6uHewNSao489qwMMHLjrCyfu7DhCOYo21NF8 gNXR7pdBbLKTfkpvWBu+3mMkIkG9D7I= X-Received: by 2002:aca:cd87:: with SMTP id d129-v6mr7562530oig.350.1538516613599; Tue, 02 Oct 2018 14:43:33 -0700 (PDT) Received: from blackbox.Home ([200.95.170.218]) by smtp.gmail.com with ESMTPSA id f15-v6sm6013341otf.34.2018.10.02.14.43.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Oct 2018 14:43:33 -0700 (PDT) From: =?utf-8?b?QW7DrWJhbCBMaW3Ds24=?= To: openembedded-core@lists.openembedded.org Date: Tue, 2 Oct 2018 16:43:23 -0500 Message-Id: <20181002214323.14564-1-anibal.limon@linaro.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Subject: [OE-core] [PATCH] scripts/yocto-check-layer: Don't abort when layer fails to get signatures X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org When execute in multiple layers like meta-openembedded the execution is aborted when some sublayer fails to get world signatures, so mark it as an error and continue the execution in the remaining sublayers. Signed-off-by: Aníbal Limón Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
--- scripts/yocto-check-layer | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/yocto-check-layer b/scripts/yocto-check-layer index 5a4fd752ca..9b7e53679b 100755 --- a/scripts/yocto-check-layer +++ b/scripts/yocto-check-layer @@ -169,7 +169,14 @@ def main(): td['bbvars'] = get_bb_vars() logger.info('Getting initial signatures ...') td['builddir'] = builddir - td['sigs'], td['tunetasks'] = get_signatures(td['builddir']) + try: + td['sigs'], td['tunetasks'] = get_signatures(td['builddir']) + except RuntimeError as e: + logger.info(str(e)) + results[layer['name']] = None + results_status[layer['name']] = 'FAIL (Generating world signatures)' + layers_tested = layers_tested + 1 + continue td['machines'] = args.machines if not add_layer(bblayersconf, layer, dep_layers, logger):