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 5EE8DC4332F for ; Sat, 5 Nov 2022 23:06:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E695085265; Sun, 6 Nov 2022 00:05:23 +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="GOykscYS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3787385125; Sun, 6 Nov 2022 00:05:06 +0100 (CET) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (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 846B7851BD for ; Sun, 6 Nov 2022 00:04:59 +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-io1-xd2d.google.com with SMTP id h206so6340340iof.10 for ; Sat, 05 Nov 2022 16:04:59 -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=gsjakJlKmlfuy0iQRNFJXoLNF70isz7UcVPf4ITswsg=; b=GOykscYSRRZSoJKn5vPxQRj5aIGc3H+SbKEMEUgWYSQ8f+vXrk41alnqBf4Q/wH8R4 bKqKX/BkFxss3r6rSv1WpKuN9rJFz6OhpQECu0Cwd5FItqZM9Yiup3VMSQzP1bWLRUEA NyGuBHdKKv3P9LBJvOjDqerT68DxL9gjGyqsw= 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=WPXNphrcJNt2buGj4caWUQlCKn3p8CDEG6/SaxCzCoVgcnl+Eyq60B8UZ+o9BD2AaP HArw1X+lxtwVPvoisrg8t7lUCy3vCuPpAI9xKyr/8rCzTf7DLVbIrMmcaenMiy0G2PwB Yyft0FhM1vb4c0oz9Nr0f6k9zqSEkQpfoQo0/0ZfVGBxkFTHALbrTW1k2GPBth8Konyw JpleYcB4JYpiKa74kUjyDcif4JbBvkUTGquDCR9pdjo57NvGjh5k9M/ac5Zqts+eZ2Vd 0MURyiaqTpsipFR8+ON3XYG9PVxcGLpJgY4mhjNLa0M6cNKGH9fyxvyUiZNcvnvIlOm7 BblQ== X-Gm-Message-State: ACrzQf3Fo1IFiONDoX9GJ8eAb+j2iVEp+/esgaaDQBw6uLKCg/zW0AtX haTkMN5R6iwipWrS24bSWTlAB8in/+TuhA== X-Google-Smtp-Source: AMsMyM6L2N5i+tFC1ZJxmg3lPTdF3Gij350b1NxPExTevacFrqzFkKBSxiLenJvGyZc4Au+Pb7z36g== X-Received: by 2002:a05:6638:e84:b0:363:d405:587 with SMTP id p4-20020a0566380e8400b00363d4050587mr417834jas.86.1667689497957; Sat, 05 Nov 2022 16:04:57 -0700 (PDT) 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 a10-20020a92ce4a000000b0030014a5556bsm1271957ilr.69.2022.11.05.16.04.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Nov 2022 16:04:57 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Rasmus Villemoes , Tom Rini , Simon Glass Subject: [PATCH v3 7/9] buildman: Detect binman reporting missing blobs Date: Sat, 5 Nov 2022 17:04:37 -0600 Message-Id: <20221105230439.549139-8-sjg@chromium.org> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog In-Reply-To: <20221105230439.549139-1-sjg@chromium.org> References: <20221105230439.549139-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