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 14291C433F5 for ; Tue, 11 Oct 2022 14:16:45 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 07E0C84F1D; Tue, 11 Oct 2022 16:16:25 +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="aZmdTq11"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9CB2E84F09; Tue, 11 Oct 2022 16:16:04 +0200 (CEST) Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (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 AFADF84F08 for ; Tue, 11 Oct 2022 16:15:58 +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-xd36.google.com with SMTP id 137so6676489iou.9 for ; Tue, 11 Oct 2022 07:15:58 -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=7AK/Bqy4Mz4zcmu8rdoJiK/kNNo3u16/jJBkuDsiGWA=; b=aZmdTq11F/680yNZIgztCeKeouXWq9pGoNIPsZNon01m0Ye1Amo9gfM7xOKsWBmtVl Lxed1tdmdOXJ52FYopODGzVi3ZjCjGn7CZMffT0ixolLNKnx7Eu3z0vvpM5p5crxpR8M 5kmqbKelhGVq3B73mfDeV5egh0VdsTbbgPoMQ= 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=7AK/Bqy4Mz4zcmu8rdoJiK/kNNo3u16/jJBkuDsiGWA=; b=8NBY6KZQz9rXtHR/w86JoDx+29QBzuky/hmpmyJVsdBgPtA1Jr3BVOVETQ+Vc5qZhe 25PYuTDqsYflHSxKlLYgseD+UgdBPX/tKcCrsS2SQPDfmLK9Zy1tIY6unrLcxXAPW+z5 w7ed9BUZD1ZRAv3Hy7wmSNF/JhxwiV9abXbxqbaqJKm+TCxYvsQpDSJ8q1rqVHRcGPGj YjU0jPY0rFS2S9bAKis8/FNzAyolXrdOd+W5NLhroGhEfSewTVnhKt8LRj6gPt5JgXL2 PW29nmX7GRSRHR49briKGqpGFemvFWUhRwIdZp77irTE+fD5a15RZYIDVXqSK7oHJXRj EKqA== X-Gm-Message-State: ACrzQf1GTqt78itAfg3GzCffxVDecGHFVhYg4vLrlN/7ni9WxyLr8Ha+ nVJ/doQuYoqgEKAsdzNX+BqlLTXVr6I2mw== X-Google-Smtp-Source: AMsMyM7zaQ+qvSWdD1cztIzrwWLu2HCUviLxbyzLpU2y0WQOzgW+8drzR5LDqnDh98ChpmKcCVENNg== X-Received: by 2002:a5d:9c11:0:b0:6bc:674b:1a2d with SMTP id 17-20020a5d9c11000000b006bc674b1a2dmr2707566ioe.164.1665497756888; Tue, 11 Oct 2022 07:15:56 -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 o42-20020a02742a000000b0035a9b0050easm5235155jac.18.2022.10.11.07.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Oct 2022 07:15:56 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Quentin Schulz , Rasmus Villemoes , Tom Rini , Simon Glass Subject: [PATCH v2 5/5] buildman: Detect binman reporting missing blobs Date: Tue, 11 Oct 2022 08:15:41 -0600 Message-Id: <20221011141541.538175-6-sjg@chromium.org> X-Mailer: git-send-email 2.38.0.rc1.362.ged0d419d3c-goog In-Reply-To: <20221011141541.538175-1-sjg@chromium.org> References: <20221011141541.538175-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.0.rc1.362.ged0d419d3c-goog