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 6D998C0015E for ; Wed, 19 Jul 2023 23:56:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 127068685D; Thu, 20 Jul 2023 01:51:38 +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="cGIRUbu/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 89415867EA; Thu, 20 Jul 2023 01:50:34 +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 438478679F for ; Thu, 20 Jul 2023 01:50:29 +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 ca18e2360f4ac-78625caa702so7767739f.1 for ; Wed, 19 Jul 2023 16:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810628; x=1690415428; 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=yc9G0aRr+uLJp68vrUsWTXQf5zHAyMuTXS8LScNbShY=; b=cGIRUbu/t7KeM6ov89CVlkF/v1LMck88Ptk/lC72N3JcRkpM4ZpHUnWoWWiQdaHVWU 7HA6/fdT3w229u1SwJzCCJqB14sjgwW1PWAr6p0u4YASJDoCFPvL4mX315Xx7TRKKqO1 pwYAwFjn9fac6dk8xJ4rjJHdnWzBmIKZ+zw68= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810628; x=1690415428; 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=yc9G0aRr+uLJp68vrUsWTXQf5zHAyMuTXS8LScNbShY=; b=RGCpJoynLTrmUuoy9M1t5wP18fIeRNa/9vYywzo/JJLXtjqlVcfZUZOWFC8DEYUNgF cOm/YAhfUvz+NCE5HDF22Nqq8C6U3biKwiO7NVGi3HJVlgrBh1CeQuDd2fOS9+aGgzyT tAoBrKJa9+1bUdct591Mq5rTK8WlfRzY3kzQBNmc/xjx4rjMD7eWhGjlCHe9SDPmjnqd 8FzhIomD3jkebvrcs30IMeUXGkapXI/BThd+bxWhaIH+FR8QOI0SNhhgNzHN/OU9X0o1 6ZygVheY1nqHQi9Cha+aWfkj9PUj/60bqZG8qLoWo7YnrtW9oC9iIJz/67vwgXpHAd5D lZMw== X-Gm-Message-State: ABy/qLbadFJ726ILoQ6E/sE56m1pazp8L3fhBeO0HOYnSgH9iBxQsSIy hIpmTKsImlZY03QF7GeB6pYwDoxQ6zTqVtjt+CE= X-Google-Smtp-Source: APBJJlHWTGgB4lBWYI6I4XrxfB7Ff8ABL2WT4WqI2lRW/AgBCxltI5tsswtm+oZwB8v8b5xS3Ondgw== X-Received: by 2002:a5d:9414:0:b0:783:5e93:1e7f with SMTP id v20-20020a5d9414000000b007835e931e7fmr919688ion.18.1689810627895; Wed, 19 Jul 2023 16:50:27 -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 ed16-20020a056638291000b0042bb1779c18sm1551779jab.151.2023.07.19.16.50.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:27 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 38/83] buildman: Pass option values to show_actions() Date: Wed, 19 Jul 2023 17:48:46 -0600 Message-ID: <20230719234953.796101-39-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230719234953.796101-1-sjg@chromium.org> References: <20230719234953.796101-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.487.g6d72f3e995-goog