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 A8EEAC0015E for ; Wed, 19 Jul 2023 23:57:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7B63386870; Thu, 20 Jul 2023 01:51:43 +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="lFZNI+VF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E13AD86795; Thu, 20 Jul 2023 01:50:37 +0200 (CEST) Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (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 09BE7867B9 for ; Thu, 20 Jul 2023 01:50:32 +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-il1-x133.google.com with SMTP id e9e14a558f8ab-3460815fde5so1630875ab.2 for ; Wed, 19 Jul 2023 16:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689810630; x=1690415430; 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=L2SjRmqJVfVKuwSuZd19MUk2rwVO4pJou6BqMIYo1Hk=; b=lFZNI+VFjYPSkeYzjU/wiqlEl+wIVwFzzA+G6I2e76CYWxunA5M5q49d0txSIP6VYE 8EUyehwem0IvOP5HAeKPJJR6kys3tIQyAA+wjwi9UqtZGvXt8Y7t4BQKXRm/FxDDin5E SlY/rnPrsQSER4JNPZ422ThRhzMw9Hoc95BD4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689810630; x=1690415430; 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=L2SjRmqJVfVKuwSuZd19MUk2rwVO4pJou6BqMIYo1Hk=; b=R9rY1UTNGL0JY6AqTd2NUKehdoUy31oq9Bmj5PRbMubX6gRgBMsYe4l1kjD6uT0zmE eI9441YOdCCQ4xaVbhOpiSBXq8csOsExAYw2XEpMgbLmYUumbW+YjUOPHo4ER9rD4X/H ql6J+JdHehu5L4nybUvOK8cKFTaOl0D50HjBhK817v74US+mgWk5/APUxivIJC+7dAdm dGS7EdKSCjvhYPEnrkRF4g4moSRglov2yrgukKrazBl5Cvmlj7FwJ8hzNsSt9G0QnbQ6 FKxBmTxjYyQosTD0kSC7/DbdoY58RkEq6Ft+tBNklqTwAx0nrKCy2eGcsXhQl/WNBiBo mzZg== X-Gm-Message-State: ABy/qLa3RVwJ9WlYu6dLKvszUXUVEwMx7iLyKZsz/PZ2WPv2inAR2wE1 jhrLs46Mch4AWD8b9m7gTQx/SLAZ7OHOhMjOMQw= X-Google-Smtp-Source: APBJJlGHnQB4hxifFISJGEO3Rs9yXYswdZFeazmmBSa1lS5gzv4ZDTD/SwGlqfErdFKs6zbSRyWSOA== X-Received: by 2002:a05:6e02:1566:b0:345:d0c1:12b5 with SMTP id k6-20020a056e02156600b00345d0c112b5mr4987271ilu.26.1689810630675; Wed, 19 Jul 2023 16:50:30 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 16:50:30 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v4 42/83] buildman: Move commit numbering into determine_series() Date: Wed, 19 Jul 2023 17:48:50 -0600 Message-ID: <20230719234953.796101-43-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 Commits are numbered for use in tests. Do this in determine_series() since it is already dealing with the series. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/buildman/control.py b/tools/buildman/control.py index 26f0db47684c..51dc6fe7ce73 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -202,6 +202,9 @@ def count_commits(branch, count, col, git_dir): def determine_series(selected, col, git_dir, count, branch, work_in_output): """Determine the series which is to be built, if any + If there is a series, the commits in that series are numbered by setting + their sequence value (starting from 0). This is used by tests. + Args: selected (list of Board): List of Board objects that are marked selected @@ -254,6 +257,10 @@ def determine_series(selected, col, git_dir, count, branch, work_in_output): # Honour the count series = patchstream.get_metadata_for_list(branch, git_dir, count, series=None, allow_overwrite=True) + + # Number the commits for test purposes + for i, commit in enumerate(series.commits): + commit.sequence = i else: series = None return series @@ -580,9 +587,6 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, if series: commits = series.commits - # Number the commits for test purposes - for i, commit in enumerate(commits): - commit.sequence = i else: commits = None -- 2.41.0.487.g6d72f3e995-goog