Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 568CBC4332F for ; Mon, 7 Nov 2022 23:30:43 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3E094850BD; Tue, 8 Nov 2022 00:29:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="TerswK6P"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 518138502D; Tue, 8 Nov 2022 00:29:15 +0100 (CET) Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2F08B8507C for ; Tue, 8 Nov 2022 00:29:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x130.google.com with SMTP id m15so6695224ilq.2 for ; Mon, 07 Nov 2022 15:29:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gsjakJlKmlfuy0iQRNFJXoLNF70isz7UcVPf4ITswsg=; b=TerswK6Prz8ILUtW+g0mQfMHvgFD7HOjEX1k8wShJw/uEOI9mU5R3azjFd/76/XG+j VKq3pAgLVmi9IctZ8hKOUoDYxjzFKu2shLq1W+ajAYnlygh9BL3zi6r3YqlVpzGIm5gU o88MqS5WBLXS17KgJtuQTk0ISEPbgKspuaOcs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gsjakJlKmlfuy0iQRNFJXoLNF70isz7UcVPf4ITswsg=; b=UAIcQ0gVotEx4+Uw9tDZ1E5q/C/ROrAHqBsmS1gOUzd4KR1bx5X/7XhGrRcPg497Pz rFqkmxWuUdW3NvUj85SaqmVfxEQEOFtU4oaksu9zJuTwd+5O5fSrEcS3QbqnZblgNqP/ n3PkKOWKGDhHh1r2XZkd7imIkbjR4wn1imxKgoSq5KoOTU1167LCK9PFUCiRFt0wEYmO sJ/JtIhFc7E4QC216pwDRXPVoi0hrq+uvVvZjtV47FBXCn40IlbFOY2JG1LJNK6jl2LJ d/oT6n0dp/SyVDV6kTTygD/vUHxXcvtNmRKwZ5Yj8pNxp6C4bAhFLWL0x5b7YXSbxT69 vSiQ== X-Gm-Message-State: ACrzQf1zZEOAm5pq+Gmiizz/j8a/JqdOOGvGqiyOSaLj9oNbAhDipPZ4 ygNK16N61rt3ESFXTX5/HICU5mw71xF5bg== X-Google-Smtp-Source: AMsMyM6qA1OaiJDrtvHnsdJGci/3Ce758Mhn+Iv39208jOrvcSjmkUWrXdph/UGTg+btXQLsLib8bQ== X-Received: by 2002:a05:6e02:15c4:b0:2e1:986c:91a1 with SMTP id q4-20020a056e0215c400b002e1986c91a1mr31708996ilu.22.1667863742492; Mon, 07 Nov 2022 15:29:02 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id o126-20020a022284000000b00363f8e0ab41sm3217739jao.152.2022.11.07.15.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 15:29:02 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Rasmus Villemoes , Simon Glass Subject: [PATCH v4 09/11] buildman: Detect binman reporting missing blobs Date: Mon, 7 Nov 2022 16:28:45 -0700 Message-Id: <20221107232847.753769-10-sjg@chromium.org> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog In-Reply-To: <20221107232847.753769-1-sjg@chromium.org> References: <20221107232847.753769-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Buildman should consider a build as a success (with warnings) if missing blobs have been dealt with by binman, even though buildman itself returns and error code overall. This is how other warnings are dealt with. We cannot easily access the 103 exit code, so detect the problem in the output. With this change, missing blobs result in an exit code of 101, although they still indicate failure. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/buildman/builderthread.py b/tools/buildman/builderthread.py index 6240e08c767..065d836d68c 100644 --- a/tools/buildman/builderthread.py +++ b/tools/buildman/builderthread.py @@ -288,10 +288,14 @@ class BuilderThread(threading.Thread): args.append('cfg') result = self.Make(commit, brd, 'build', cwd, *args, env=env) + if (result.return_code == 2 and + ('Some images are invalid' in result.stderr)): + # This is handled later by the check for output in + # stderr + result.return_code = 0 if adjust_cfg: errs = cfgutil.check_cfg_file(cfg_file, adjust_cfg) if errs: - print('errs', errs) result.stderr += errs result.return_code = 1 result.stderr = result.stderr.replace(src_dir + '/', '') -- 2.38.1.431.g37b22c650d-goog