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 70ED1C001DF for ; Sun, 16 Jul 2023 00:44:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 15D528666E; Sun, 16 Jul 2023 02:39: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=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="HmbeSOqx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7F62F8662E; Sun, 16 Jul 2023 02:38:10 +0200 (CEST) Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) (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 EDAB0863F0 for ; Sun, 16 Jul 2023 02:37:52 +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-x130.google.com with SMTP id e9e14a558f8ab-345f4a3ff76so16639555ab.2 for ; Sat, 15 Jul 2023 17:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467871; x=1692059871; 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=ziGEv0+mcdoFhGtpQPY/Drsr+173LnnkgGAHFwdw3ow=; b=HmbeSOqxyCF6KA/qdgwZP1cSNTDGanuiMSAyfXTHT+RFuYo4Abm9snqLt7I1Xn5fY6 Pj5WdGBe4x+wUwoS2vW8G/H1VjlNcj0yjeT3i9MXSlMGrz9feI/2988wffYpIc/QxSa9 6Nca8SLkGIbrSWgW3kIC3KKO/Hn/BlVop5CZ0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467871; x=1692059871; 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=ziGEv0+mcdoFhGtpQPY/Drsr+173LnnkgGAHFwdw3ow=; b=FLbU54uFZ9WQxDXsYumQtKoDz4l5c6U1IsnYtJpi1Riby7bCv1STZBAS0xHJDAGNiN VoNOdl85bO5wCEFLS/SzKTO9G78uhkvTSZB21Ps1hUx6s+hB1zbj2D09Os3VvVEdA0I5 /WmZrPNLbfxxREH5yvPASWRzPSDAtrp9zgrgVSpfWSJ6Td1hdPwVDq+JrM3vt8a25Xy+ SfkwOpqgE7MRz6S5hMwxCUP189diF5Qb+wCUE+jU7qz3qJioVzy0df5mxFaEa1i7POYw j2fg/vkj6gAhkB5lx69LtCBS8M2jQsZpJ6DvoxtvdUB2MBgQSRv9ljZsYK3+hSYPKoM2 3gRg== X-Gm-Message-State: ABy/qLbIUmXZ9Wp0THHhK2P229cWMYFETW5UP9Pf2Bx4fG0gkdsH4N2G IxeUbPZqHCKt3IHcumeE8kVvEqdNvD3Cw0u2My8= X-Google-Smtp-Source: APBJJlE419A4bK+h+9TpRm+8Hgxc1c2bFdCdeV5oUqcxXz8te+VTonxqZ7U/gqvhJdAPscW4RAD4Ew== X-Received: by 2002:a92:c949:0:b0:346:4f31:f0db with SMTP id i9-20020a92c949000000b003464f31f0dbmr8007640ilq.26.1689467871550; Sat, 15 Jul 2023 17:37:51 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:51 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 40/81] buildman: Move commit numbering into determine_series() Date: Sat, 15 Jul 2023 18:36:08 -0600 Message-ID: <20230716003718.231903-41-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 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.455.g037347b96a-goog