From patchwork Mon Nov 30 15:28:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 106513 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.34594.1796052533038069256 for ; Mon, 30 Nov 2026 07:28:53 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=bwgQ8Yw3; spf=pass (domain: linuxfoundation.org, ip: 209.85.128.44, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4ba013938d7so100535925e9.2 for ; Mon, 30 Nov 2026 07:28:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1796052531; x=1796657331; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=BjqNqeA04lg1SVARpOAdL0o/Eyxw7GSZLxPxXicWbIc=; b=bwgQ8Yw3gJrc24qfrljwna/Loa4awksGgcw2uw7HOfubrBlh/W1FkIhb4//Y+LDnWM MXi6LtuwGfjwP/V9m6SK6+WZQ9nPLreU8zvo2YIWh5vi8g7xcdU3HsSmyRhRn81KZz0Q 6AAWDKikeyIbEnzJJDDiKn1rZKFlCqBz5szmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796052531; x=1796657331; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=BjqNqeA04lg1SVARpOAdL0o/Eyxw7GSZLxPxXicWbIc=; b=KIxQXB1j9ddwix3WiNWButW7OozK4hiS0dM1CIhTZR7pA7WmCaYCzoMURoFSCVdjDG NAPu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HKFrKUqQ6lxkbbTwly4ZKHW7txG/gypkPSxCbq4yW qGZYb X-Received: by 2002:a05:600c:4f15:b0:4bb:6861:657d with SMTP id 5b1f17b1804b1-4bb88923954mr796430925e9.21.1796052531241; Mon, 30 Nov 2026 07:28:51 -0800 (PST) Return-Path: Received: from max.int.rpsys.net ([2001:8b0:aba:5f3c:2444:81bb:2aff:8d84]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6baa397asm66033172f8f.48.2026.11.30.07.28.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 07:28:50 -0800 (PST) From: Richard Purdie To: bitbake-devel@lists.openembedded.org Subject: [PATCH 03/17] runqueue: Add a RecipeCheckEvent Date: Mon, 30 Nov 2026 15:28:33 +0000 Message-ID: <20261130152847.3472849-3-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20261130152847.3472849-1-richard.purdie@linuxfoundation.org> References: <20261130152847.3472849-1-richard.purdie@linuxfoundation.org> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 15:29:01 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20492 This event triggers at the start of a build, once the task graph is known and provides a list of the recipes which will execure alongside any custom variable data that was requested to be cached in BB_CACHE_EXTRAVARS. Signed-off-by: Richard Purdie --- lib/bb/runqueue.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 501fb92dc49..edb6c7d01ae 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1608,6 +1608,8 @@ class RunQueue: ('bb.event.HeartbeatEvent',), data=self.cfgData) self.dm_event_handler_registered = True + bb.event.fire(RecipeCheckEvent(self.rqdata), self.cooker.data) + self.rqdata.init_progress_reporter.next_stage() self.rqexe = RunQueueExecute(self) @@ -3316,6 +3318,15 @@ class PSIEvent(bb.event.Event): self.pressure_state = pressure_state self.pressure_values = pressure_values +class RecipeCheckEvent(bb.event.Event): + def __init__(self, rqdata): + super().__init__() + recipedata = {} + for tid in rqdata.runtaskentries: + (mc, fn, taskname, taskfn) = split_tid_mcfn(tid) + recipedata[taskfn] = rqdata.dataCaches[mc].extravars[taskfn] + self.recipedata = recipedata + class runQueuePipe(): """ Abstraction for a pipe between a worker thread and the server