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 2C1C1C433F5 for ; Mon, 10 Oct 2022 20:01:34 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6779B84F0B; Mon, 10 Oct 2022 22:01:05 +0200 (CEST) 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="RkZihJJu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C817C84EFE; Mon, 10 Oct 2022 22:00:53 +0200 (CEST) Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) (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 6230A84A73 for ; Mon, 10 Oct 2022 22:00:50 +0200 (CEST) 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-io1-xd34.google.com with SMTP id r142so5123895iod.11 for ; Mon, 10 Oct 2022 13:00:50 -0700 (PDT) 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=iONTF1h0bMNvMhmhY125XEB4H+8l/BR0RySl1LW9Vr4=; b=RkZihJJurS0zh8iYJYXElNPkwxcBuw2IrrjYspqHbnWcarM02eF+rpFdHz6Ni/aKJx w5QUgbHQNSg1YC7aUGbbx82cEgPrwvXCWXs5wcELxFAS4JWKJ3LUeu8EjBqTi1aks/5x S5HvS29X8zCaL7vnCngPOOYIKrFZkalykDFYQ= 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=iONTF1h0bMNvMhmhY125XEB4H+8l/BR0RySl1LW9Vr4=; b=SQ4hkU9r/np40Og7U6tshfGqP1gWfZ8+00wW4gS4ioRuosEQ+LHyoDKgJHoUU9oeqX 939KZ32Dsgg4GDrET+qRVtJO79hXgWS55SacUaTUBVY5gKM94sOCcWisojSn35RjxJUF Uy51gS9f462qgxNhTYradxTVGSEDsomWRcK5C+y+LOyAC1442PiPBuaNtN+4mKRB+137 MAEZ7IWhYUovwIpPjuw+ijKGDyqllDXO0SZPSvjV6PjHDcqHjvS+tZJPrWbVUoNREQC0 1vevO+Zj1BiH1sge+CeUUjDVQMpixVeIQj8RuW94snphcCEj0wKHgLysm492uocEF7iB lOjA== X-Gm-Message-State: ACrzQf0h2T1x/CMeB2SAEMhjE+J9rpuYwhaoI5pSONg73ZVBliMnGLXS H6ExGz2CHQbin5Bl2+9ahabOHbOBmeodhA== X-Google-Smtp-Source: AMsMyM5zCd32s2EzajK8tqf3VMLPPs/dB8/Qoe5wEeREWK7jj0zpyMni7X4X7AqD+GPMDU9V3WlYIw== X-Received: by 2002:a05:6638:480c:b0:363:aed5:ed3c with SMTP id cp12-20020a056638480c00b00363aed5ed3cmr5286335jab.207.1665432049633; Mon, 10 Oct 2022 13:00:49 -0700 (PDT) Received: from kea.bld.corp.google.com ([2620:15c:183:200:295e:d074:1d59:53b1]) by smtp.gmail.com with ESMTPSA id z18-20020a926512000000b002f5024d8543sm4157717ilb.38.2022.10.10.13.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 13:00:49 -0700 (PDT) From: Simon Glass To: u-boot@lists.denx.de Cc: Rasmus Villemoes , Tom Rini , Simon Glass Subject: [PATCH 5/5] buildman: Detect binman reporting missing blobs Date: Mon, 10 Oct 2022 14:00:32 -0600 Message-Id: <20221010200032.73483-6-sjg@chromium.org> X-Mailer: git-send-email 2.38.0.rc2.412.g84df46c1b4-goog In-Reply-To: <20221010200032.73483-1-sjg@chromium.org> References: <20221010200032.73483-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 --- 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.0.rc2.412.g84df46c1b4-goog