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 6BED1C0015E for ; Sun, 16 Jul 2023 00:43:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B6DE88663B; Sun, 16 Jul 2023 02:39:19 +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="RtLn6DtC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C662E863EC; Sun, 16 Jul 2023 02:37:59 +0200 (CEST) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 EA28F86387 for ; Sun, 16 Jul 2023 02:37:49 +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-xd30.google.com with SMTP id ca18e2360f4ac-7835c92c373so95754039f.0 for ; Sat, 15 Jul 2023 17:37:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467868; x=1692059868; 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=tq63hKesJ25JHDRIJNeC5cfL0dmylM/HZJ7J1W1TlWI=; b=RtLn6DtCWoRDmUbuxMT03/Ob1dHTb9tPB2MdsFlnrt211VuagYzRXvJmf+w2kO9fiI 4W9v/j6j8jwRrs9Svz/rCv8PJGGId1355z95lC75rjJbwtEn534lYnFh2J5d3GKyrEdl dtTg9WSuojJiKzzncVH0WM+efKNxFeGFHC1q4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467868; x=1692059868; 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=tq63hKesJ25JHDRIJNeC5cfL0dmylM/HZJ7J1W1TlWI=; b=H8QNWZJ+FzHQPVXGMI85BPDGfPtdAEys4Oe/Y9NmJu0jYvM19g9IH42Do7uB8kj3Td av1LNL62O8qDRiLYPqpSpnmh+ykc4aSQv2G0D47m1kXHdBvMbtyw+X+gYDrHWPkmheHv oaPCA7+1TVHOXkgrIXPLt80YCyGzhE8lYBn5gKQW5Ul7POVdbogd8WcbC+o6Ox6FyAcr Pbq78iRt58O+TC1o+HvuFVXN1UpQIlJLGoQ9fJ5ctMvpX6p+4Rh27lMni29B11AgVW1/ xBUkP5BzrwdKhE7wp5GBPK0sNvwL7Iie9FfL0I4+hZ+OEcrI08Xsgq7UluLP/2I6dsBf +XGw== X-Gm-Message-State: ABy/qLZ3pCBxo0XuouF2brjnVNaYmLSq9tZsxOWJlZCIh/oRyjFCwm7C qUNU73lYKa7vhUDoSmz2OZjnvHrqnBvKo5nYc/8= X-Google-Smtp-Source: APBJJlFNvumb9wZYYeVab1NsapS2YY8Li5d35j5y1ULZWt0uEnp11xI/4D1zWLy6LZfJ72y8dwmBjw== X-Received: by 2002:a05:6602:2a4c:b0:780:c872:5df7 with SMTP id k12-20020a0566022a4c00b00780c8725df7mr5839879iov.9.1689467868557; Sat, 15 Jul 2023 17:37:48 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id t3-20020a05663801e300b0042b52dc77e3sm3510512jaq.158.2023.07.15.17.37.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:48 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 36/81] buildman: Pass option values to show_actions() Date: Sat, 15 Jul 2023 18:36:04 -0600 Message-ID: <20230716003718.231903-37-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.455.g037347b96a-goog In-Reply-To: <20230716003718.231903-1-sjg@chromium.org> References: <20230716003718.231903-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.8 at phobos.denx.de X-Virus-Status: Clean Pass in the individual values rather than the whole options object, so we can see what is needed. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/tools/buildman/control.py b/tools/buildman/control.py index a1a4adf25a96..5350fcc14a09 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -56,8 +56,8 @@ def get_action_summary(is_summary, commits, selected, step, threads, jobs): return msg # pylint: disable=R0913 -def show_actions(series, why_selected, boards_selected, output_dir, options, - board_warnings): +def show_actions(series, why_selected, boards_selected, output_dir, + board_warnings, step, threads, jobs, verbose): """Display a list of actions that we would take, if not a dry run. Args: @@ -70,8 +70,11 @@ def show_actions(series, why_selected, boards_selected, output_dir, options, boards_selected: Dict of selected boards, key is target name, value is Board object output_dir (str): Output directory for builder - options: Command line options object board_warnings: List of warnings obtained from board selected + step (int): Step increment through commits + threads (int): Number of processor threads being used + jobs (int): Number of jobs to build at once + verbose (bool): True to indicate why each board was selected """ col = terminal.Color() print('Dry run, so not doing much. But I would do this:') @@ -80,11 +83,11 @@ def show_actions(series, why_selected, boards_selected, output_dir, options, commits = series.commits else: commits = None - print(get_action_summary(False, commits, boards_selected, - options.step, options.threads, options.jobs)) + print(get_action_summary(False, commits, boards_selected, step, threads, + jobs)) print(f'Build directory: {output_dir}') if commits: - for upto in range(0, len(series.commits), options.step): + for upto in range(0, len(series.commits), step): commit = series.commits[upto] print(' ', col.build(col.YELLOW, commit.hash[:8], bright=False), end=' ') print(commit.subject) @@ -92,7 +95,7 @@ def show_actions(series, why_selected, boards_selected, output_dir, options, for arg in why_selected: if arg != 'all': print(arg, f': {len(why_selected[arg])} boards') - if options.verbose: + if verbose: print(f" {' '.join(why_selected[arg])}") print('Total boards to build for each ' f"commit: {len(why_selected['all'])}\n") @@ -479,8 +482,9 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, # For a dry run, just show our actions as a sanity check if options.dry_run: - show_actions(series, why_selected, selected, output_dir, options, - board_warnings) + show_actions(series, why_selected, selected, output_dir, board_warnings, + options.step, options.threads, options.jobs, + options.verbose) return 0 adjust_cfg = cfgutil.convert_list_to_dict(options.adjust_cfg) -- 2.41.0.455.g037347b96a-goog