From patchwork Thu Aug 27 20:05:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96599 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86B91C61DC4 for ; Thu, 27 Aug 2026 20:07:35 +0000 (UTC) Received: from SA9PR02CU001.outbound.protection.outlook.com (SA9PR02CU001.outbound.protection.outlook.com [40.93.196.16]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.3439.1787861245425650943 for ; Thu, 27 Aug 2026 13:07:25 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=xiKfdGPE; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 40.93.196.16, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gOpvuMEcOcevPPFgQWWJIaxy6ZbFcHxIXIr580sKct38xOgo6BLi7Wg7My2ERQNKxk/Jxhf71P8N0YjX1ASA/W0TZeWNE1roWlBC5eLqAm8E7LeZZyp4DuMs1E+s0MJgEyOR0bvEFOZlit0ReWiZ4yNG4k3KvSBwvniSe5abCNDcjRsSBvgMHk2sSHMAvST3WVFBsE86nkiRFCyx/nIGJkuWMRbJ5j1hJp2vBeonCxcKSFIorAQtYMa3nYnGVH51xrUqkNBXDjL4OV5ESU15pWpV7Q/7GxKyHh/SuwYgYRSJwV7MUtTRnPaR3hfIsUmypXk6WevU1WJIaNKFocIxHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fNdi0p5XXq+tXPGu6E6Bb7q4VfQSppnYsDGFMzRBVmo=; b=SeUpXKuU2z3WHfOmviuswYjQzWEUQ+fb8ECEqmUyda48OMetrErkaoJy9FKkWjd1NAa8cpr435s0mYm/Y8ogo7rH7G/idnvOztalQgxYkWPvFlGLOcFUWo5OBAm2tJzCU3aGRzcdSLRQXrICPjKyf7MgPt7NImUt+MG8SIk8uHHeZlDdpaMC6+N3Dcj31TvYiN059E9bSKlNtBap8tFEEezU113mk0FXjjks8KBGOJRq943qNmk6dNTx+5loGVLbL8yNwWb+K/ZCSFaH9Yza/k5PiPmY9tu+z9Lgl4nkcYQuOWcj5NLv2w2F5cnaQgbVON3xVe5fD+YYyFbs9MjOtQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fNdi0p5XXq+tXPGu6E6Bb7q4VfQSppnYsDGFMzRBVmo=; b=xiKfdGPEFNpVIYKITG10BnGtyfjN/OjWLicwDi9fIEGCp2ChpgbO0tHUipyhj4/uRXs9jejk+kSZl7PAKV60w33Oa1uWxXH+L1yJ38PDzt0n+mwOHQ6t5+uwOSmYD8kYJrvWSlOyKqNw6mgMS3j2+iILM7JxV95xeIPDI0IV+Zv00hl95t7Vs4SlhBbDFJucEQX22EVN+qTiCuoq5JAyprZ2n64xdNayVWiMJbg6wmI2QHy9HYG8NHonatIwYit2SKIjrgpN9BjWxbDFJfhaG7j33ONjgmI6Kl4qMdZMe5GczoQgpbEKJWorsC0J8E/evzhnI7wZhGV/2gJztbl6Bg== Received: from CH5PR02CA0014.namprd02.prod.outlook.com (2603:10b6:610:1ed::18) by PH8PR12MB6820.namprd12.prod.outlook.com (2603:10b6:510:1cb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.339.11; Thu, 27 Aug 2026 20:07:13 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::7a) by CH5PR02CA0014.outlook.office365.com (2603:10b6:610:1ed::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:12 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:00 -0600 From: To: CC: Chris Laplante Subject: [PATCH 01/11] runqueue: remove unused attributes/variables Date: Thu, 27 Aug 2026 16:05:53 -0400 Message-ID: <20260827200603.688796-2-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|PH8PR12MB6820:EE_ X-MS-Office365-Filtering-Correlation-Id: 31ae3d3e-bb09-48c2-d58b-08df0476c8af X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|82310400026|376014|36860700016|23010399003|10067099003|56012099006|11063799006|6133799003|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: WUW3LNiQdp3yU2ngoJAdi1h4HCVGTI4tb0kv/4IW8zWcHhhT2s4RiC4nykz/kRUsyPsxUIXpRHyqh6BZJ03aKOqbLBsDOWGHLgdM210uI5LtkssJbr1cRxV+Red743J3XURyQJAKWrDljxGwoQFsw4ExYU0vEQS6Sr8QoLrdAV3pKVWlYzbqMOQIWbQA0EaLsL/XZyCkC2A/z5i/uDnxhGquRuQx5EnD5xR/uBP321y7AhAhrpeeA/v9fVDnyusJ6QtIzEB6ylZ7UsKXu6biVehnoauJ3IyGpOAH5ULbDrj9LQKoZTyf8oRiltEKLZIaBPoJ7hUKx9zDRVkTJoPneSGnpqvnDZbEck0q81g2mvHlnPShEQMnS/IQuFxTvawWQm02naZKefFMq1SdzRKJk0DNBx0z6huGUMR0ve3YI37EHU6nDfcf5L5bufkteJwc2x4ti8XN1795ymUpXc+eY0JMNP2MgmvV7GOWRtafj3/5lSqrWdtL+EXCdirq2PPdfWcAkXMQma8YqFUJ2+s+1ZZ+dOptBKWPh+Ku92cW2lXJo5Sg7GwIy1M3NevJ4NSehx5jYBOobkGYWNGiDIA11WG9Xr/KJalQ+JGh6vPgY++pLT24XLVpWS0tLh+by5cPCIEHnPfgjIsya2jjNzEXfA1EQueNmlcauvYqDo80rPU4NFf/XznetRvT158JDNE4Tb5hx22DLi90mVf0lXr68A== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(82310400026)(376014)(36860700016)(23010399003)(10067099003)(56012099006)(11063799006)(6133799003)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: exGWhBeGM48M4djt5WL/oRdCVaFEiPO7PACZIhIc8HFb+9NfeeU/cXAeE1U19s+n76UfOgo+gHdbG4aptkqBeAHVjUIW+sAzN+2/xw6405HqI047Aab+CnqCPHUA9EX1fCW1poBx1AiJSpS70V2D1ZhH6Qw3VkeY//WgX9kMlBW+SoEN2Ru+3tfpo5e2kVm6BN1VVoh0xIiVF76XLX11e89fk58GuImqjzHAbudsL5wMoU7OU6oa9MTz5PdOB9IAdX3S1aE5s89SobxwGSwE4ksdJ6loGg5OOFIqHgqneQCn2JJuXqSaLn6VDXpviQimtc2o4QLte56YZHGnlGAmBM+et5QvCgyolDNwS2G7ow8+ANACLNDPB9RtCDbAkk61fk/fzvOav9o5etbMsHPQwWboFKpR0eMFGgBKIWaLE1mrjfpYzXENIU+qK1iOaNXO X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:12.8199 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 31ae3d3e-bb09-48c2-d58b-08df0476c8af X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB6820 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20076 From: Chris Laplante Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 245492de7..183475016 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -455,7 +455,6 @@ class RunTaskEntry(object): self.revdeps = set() self.hash = None self.unihash = None - self.task = None self.weight = 1 class RunQueueData: @@ -472,7 +471,6 @@ class RunQueueData: self.multi_provider_allowed = (cfgData.getVar("BB_MULTI_PROVIDER_ALLOWED") or "").split() self.setscene_ignore_tasks = get_setscene_enforce_ignore_tasks(cfgData, targets) - self.setscene_ignore_tasks_checked = False self.setscene_enforce = (cfgData.getVar('BB_SETSCENE_ENFORCE') == "1") self.init_progress_reporter = bb.progress.DummyMultiStageProcessProgressReporter() @@ -606,7 +604,6 @@ class RunQueueData: possible to execute due to circular dependencies. """ - numTasks = len(self.runtaskentries) weight = {} deps_left = {} task_done = {} @@ -655,8 +652,6 @@ class RunQueueData: message = message + msg bb.msg.fatal("RunQueue", message) - return weight - def prepare(self): """ Turn a set of taskData into a RunQueue and compute data needed @@ -1129,7 +1124,7 @@ class RunQueueData: # Calculate task weights # Check of higher length circular dependencies - self.runq_weight = self.calculate_task_weights(endpoints) + self.calculate_task_weights(endpoints) self.init_progress_reporter.next_stage() bb.event.check_for_interrupts() @@ -1587,10 +1582,10 @@ class RunQueue: bb.event.fire(bb.event.DepTreeGenerated(depgraph), self.cooker.data) if not self.dm_event_handler_registered: - res = bb.event.register(self.dm_event_handler_name, - lambda x, y: self.dm.check(self) if self.state in [RunQueueState.RUNNING, RunQueueState.CLEAN_UP] else False, - ('bb.event.HeartbeatEvent',), data=self.cfgData) - self.dm_event_handler_registered = True + bb.event.register(self.dm_event_handler_name, + lambda x, y: self.dm.check(self) if self.state in [RunQueueState.RUNNING, RunQueueState.CLEAN_UP] else False, + ('bb.event.HeartbeatEvent',), data=self.cfgData) + self.dm_event_handler_registered = True self.rqdata.init_progress_reporter.next_stage() self.rqexe = RunQueueExecute(self) From patchwork Thu Aug 27 20:05:54 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96602 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id B704DC61DD3 for ; Thu, 27 Aug 2026 20:07:35 +0000 (UTC) Received: from PH0PR06CU001.outbound.protection.outlook.com (PH0PR06CU001.outbound.protection.outlook.com [40.107.208.9]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.3441.1787861247017002287 for ; Thu, 27 Aug 2026 13:07:27 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=xxSbthYm; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 40.107.208.9, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XFqMMGjFQ+1p6L6aHvRm5yLi3oyVxMV/N7poZy2EtsTMnGXxBOTrNYXj54CKAZabji4sjLdI6w3R0W/CSKRMRhPhoBfi3RyUl6h6vkTgEwIGxO9uz0OC4pPLECie2xVAfX6b0AriecQVx3A2IUhkdv7n6f6ereaRHkxKRwUBLyK7JCZk/NaO9TGjy0TA2yHLQNP+LsEuxoZ8CKYXR3SPK602Fsmk+jlOeNnLBd+xhAK1gRl3aSS1Y14dtU0LdrAWOW7RmKj7rbuN5eCwNSiTS9qw1G6ZgtC0hrFt+b1is/SLfxnFHpP/DjqjIDhjXFa/jmBJiL27UhpRDjogG5j5xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SNhhVBU5ZYJbRHfoaujPBhqhjuPBwhMLyfR7EMvRyRM=; b=eSKvAlB371EL+2fCehXbA+cP2lgE9Hm59nkJQIKb0ZPszmyFN0vPhykMf78FH0PkHfoZ2Qe54sbjDpaRUabANpSUyyWfgguzHt6mXbq7S2Qx+/zy8mpzxo3uIztZXL4QbO3NC9KK5S0UPC8vWZINW0e32I/ikvfeC8LMNOEi7tCMvEezf+0xNWsR696eTFPH3cwirylZK1QTr/weADIRBo/NS1+HJ6DhACjxPTflVp4NqWGkU8OJATFDS8F0Wxsor5CBtvoXvls2xw4NgDJSCM8BKcYNRauqg9HgUXqR8liD60E0V0Kk5KWsj9XxnGPohKwINyMbmsVAdgfsGCXyfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SNhhVBU5ZYJbRHfoaujPBhqhjuPBwhMLyfR7EMvRyRM=; b=xxSbthYmcv6+auzEaARxPlxMTLHgxwRJ7Ij1woXm7u6bsP7fN8gGMQ0TvRC3ftqRfDWJT5o89XXZAgIkEmyvnrUKspbSlyQqoS1A7tQlOCl8oADrDaWG6D8Go5KTn3lnJq9TXKJwHHlm72pLEHTyGUxJs61kn+MFnn/unZDZ6+/YX/5Wm+AzVj75nBqxHtLE6HKJcsBHP0rTfHFEsgj/FBX5f1gSSQOK8kUgSWmELvJk0Zjtj6Fl02HxYVD9P5M9jPI0nbFMRvnynSv17cP9xWE/twJZ/+oHq8fEtRKR7J9U1yGUsH95XljZadnYU4hugcxqZqNO2jQel6nQK+bKAQ== Received: from CH5PR02CA0010.namprd02.prod.outlook.com (2603:10b6:610:1ed::22) by SA1PR12MB7039.namprd12.prod.outlook.com (2603:10b6:806:24e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.315.12; Thu, 27 Aug 2026 20:07:18 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::5b) by CH5PR02CA0010.outlook.office365.com (2603:10b6:610:1ed::22) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:14 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:13 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:00 -0600 From: To: CC: Chris Laplante Subject: [PATCH 02/11] runqueue: remove unused RunQueueExecute.sorted_setscene_tids; declare setscene_tids_generator in __init__ Date: Thu, 27 Aug 2026 16:05:54 -0400 Message-ID: <20260827200603.688796-3-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|SA1PR12MB7039:EE_ X-MS-Office365-Filtering-Correlation-Id: 39b6669e-2dc4-4e47-bc14-08df0476c957 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|82310400026|376014|1800799024|36860700016|6133799003|10067099003|11063799006|18002099003|22082099003|56012099006; X-Microsoft-Antispam-Message-Info: xmF5w6ij5aUkVLZhgRPKFBSIGj3AkfQYujxPYflo9iv4vVPvanBo0UShseuykwxSYZ4mZ+WaHJCYVnwUQeCAzd6j32TwhNANHVNOm78UHWrHKgCi88p50+yazbToCw8qgiquNXKYthRJMWRU/TKJOLx6cv+DgUrG+E8FgRO8/XkQQCmk2SmuEIktHbL1vfx/9whMwnBknpZsv/Mg4c2Y2FMc0NYSg+cURp8Y0WI6nZfB7UWsGHZ/OmSK44vbQkGeGh3WcPgxTxsFetweOOJcpcd+w2GwqZJPtckj3S24wCieqnZGu7kx2kDUgJPKHeEOzp2WmftPiKWd1FztVrk/NLIaZSGW/hU6LsratKgtYR7cP0xFIVBkqafTkSdlUkLryt+Olcd1lFeM7aTAcF8zlNBl3BkioHImDgJIQgfOKsywRJPp1MfwImj2dMP92dsH/qc26RrST8yqWtvfoOSZt5sNDA74a09QW0Byo90KHgX0bjXU4Bdn/OQ17vZv4LN2lmL92YFjcjXQdtBySsvY638lJdSWAXnQGTB7qV0fOaIlC5O/dudSy324LljqSOT3BsRyOuK2mxDZzdrcQO6aMIqE+rQItiRkjQoAZBNtAQjeoUJs+I8O6lv9XZceRdlsRzzuGqOmsC2O3T61rWrSGt6X75l4EVKjP9Wl8+cc1S2ZzOslI2oC/12yMCX2xfVlKzP4Ykfoq16lDeOJFhxJwA== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(82310400026)(376014)(1800799024)(36860700016)(6133799003)(10067099003)(11063799006)(18002099003)(22082099003)(56012099006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: s0moM7KkbIEsWGLd7YepLbMxVWAFwqQaWQOGi3ULO9v72GK6ywfvk17YZNs2g23xbj4w/7YgfwERQ1vhSuiApeKjMKRwFIBuiWYr9wERZMSy6f8jyxpD9R2eK7jZgQ6EZLkmWZKZJs6TwwlY835OulcAKolqllb61tACkcktMzgeCqKsM1knuFrkjpzownXe4DBXuJ/DeLim+Lml4YPmm/dE1o18E3wik9ecMGxXpAQDMxUWxcBE1efHCegAgOBXBnXi40PmZzcXbygFuWTGRCeBVNehGY6HpHalgpS6taq7N2MdMI5Cn/zosMc6Fj9AyOWmvkAw6JjN2zMLdgnlPifooJ+WVWZTcd73IEo8OIPjuCEWTLZNLzRYEvKwfGL5ZQweBVXzNEmqKE52cZNL2czVh0IOXeFhM1vSN5PAXqEOxmDw+aCZg87RuJSd/y8V X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:13.9151 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 39b6669e-2dc4-4e47-bc14-08df0476c957 X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7039 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20079 From: Chris Laplante This makes the code a bit clearer by avoiding an ugly 'hasattr' call. Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 183475016..b2c2aaf14 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1931,6 +1931,8 @@ class RunQueueExecute: self.tasks_notcovered = set() self.scenequeue_notneeded = set() + self.setscene_tids_generator = None + schedulers = self.get_schedulers() for scheduler in schedulers: if self.scheduler == scheduler.name: @@ -2202,9 +2204,7 @@ class RunQueueExecute: if self.updated_taskhash_queue or self.pending_migrations: self.process_possible_migrations() - if not hasattr(self, "sorted_setscene_tids"): - # Don't want to sort this set every execution - self.sorted_setscene_tids = sorted(self.rqdata.runq_setscene_tids) + if self.setscene_tids_generator is None: # Resume looping where we left off when we returned to feed the mainloop self.setscene_tids_generator = itertools.cycle(self.rqdata.runq_setscene_tids) From patchwork Thu Aug 27 20:05:55 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96604 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id F20BCC61DD5 for ; Thu, 27 Aug 2026 20:07:35 +0000 (UTC) Received: from PH0PR06CU001.outbound.protection.outlook.com (PH0PR06CU001.outbound.protection.outlook.com [40.107.208.36]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3288.1787861245673343066 for ; Thu, 27 Aug 2026 13:07:25 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=XG8EYbWm; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 40.107.208.36, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iqutXo/NdcRE1Q/LuQAEOcEx0/cr5ybBliYFe8XnFg9NbRoaC6LpxYEgP1m58WRiJfcHQAnRYiATyh2WoHStFSpHnYeXtPgwL3IKzu66gM1Uhl75sc809A4V0p+XzVmAWct2gg1pV5jhvSto+OMGhqIHSH+e+C0UsOK3Wz1GRnGv/IwhaXVqh5qJCd0aYZqlA6yXnYKXs8BeutpqtoTR4YQjuQ7nBhvYBIemTuIb36kZe03NPioDS0HWN2TuaF7Nx7ZF88jaLvX6n0zROMcv9Bau4oPpUmYhVfTbzNK67b8OnXZZoySX2ImTEn8sOxJ7RIrhUEi1OO8UE9usjlnXCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AQPbi3OPhUN/NlfgIMmqGJYORZzhchTxf3oAm+DYJEw=; b=YzbR9N00WW7AVgtX3uo/RlsNC1Bx9+nIiq6gIjWwnuNZUD0EL7V1rLViMkDD3jJ71bTJS+OnsOOamQA+RO0q9zh85t4sQeg38W4WFr/iu005NsMclGkSGu4hHhhgONFyEHKbh4kVp127A68IH+hGK9X6JWy/OZ1IZtTt3MefapgZmOYNukUY89PntDypJZbsH8HOumT7hTulkclumukWPsF19CoEdNJ5z+v6XaemxAh4WLp7Y0Rd27czBHMoE7xBSLcpiKxGy9XsM6bqK+gEEU5N2VulLYTn9WbabNOrjQ4PRt1+SXuXyWrMW1E/hX/Un1jcFj2kOymPwbLxMyIp/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AQPbi3OPhUN/NlfgIMmqGJYORZzhchTxf3oAm+DYJEw=; b=XG8EYbWmgW7xMyk/I4dJtTTzzkk8T30K0el+vLtsTFB8J9w9SCg1UEjDmEo7cGm8zNMlFQsXyLRDciT9K6ADlM/GoLhanu7v59x4aSSfVSgTOeG+xNCvT86CuZtvl2FAlMRFn8zeG8BglrfDyvE3USxB1EK8nImYhbfkzyuuN0ALn8HXMjnStBDGw578vSMQtHnFfOlR7X5FWrgTk6liJvLWAvWLuFa2ID7hpIpTNfitTqKkiqD6iIMdFZsfrlFk2NSuxEbwJ+J4CiEyWxf9WHq93sDq6NIf9DaRYxIsf+Kd6fIPoDTA+lz8E7YE6bMC+j/RZssFQEntDjqDRpjlMw== Received: from CH5PR02CA0018.namprd02.prod.outlook.com (2603:10b6:610:1ed::20) by DM6PR12MB4137.namprd12.prod.outlook.com (2603:10b6:5:218::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.10; Thu, 27 Aug 2026 20:07:18 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::9d) by CH5PR02CA0018.outlook.office365.com (2603:10b6:610:1ed::20) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:18 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:01 -0600 From: To: CC: Chris Laplante Subject: [PATCH 03/11] runqueue: remove long-unused RunQueueData get_user_idstring/get_short_user_idstring Date: Thu, 27 Aug 2026 16:05:55 -0400 Message-ID: <20260827200603.688796-4-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|DM6PR12MB4137:EE_ X-MS-Office365-Filtering-Correlation-Id: b37e09c8-1c4c-4198-55e9-08df0476cc1a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700016|1800799024|82310400026|23010399003|10067099003|11063799006|56012099006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: JOsJDjRIbSLc2tNEOmX2Rjyvh1jyrapwRaCis7rLp8PdKzm0ZqJ+W/0rtXK5rCQoVahCAN5McaP59jdsJOQuEVpphVlSs556UTp4X8JY8scCy4avR9Z4wgtDekqnmYpC98B08f4t341bAidZS78jSKvCcIdf9UXecyXfWO+kJ5GDoGmz5Fqa65jxuNR5wt0/pn7oleO3xNhZD2rIXuS05LznKnFDXsnmxS31v2DAUVNvXPYxGudQPQ3jVyvI4OkeAWPulKvQ6etccv4N2TUgojtUHocARX7zvJzr5WpM+KTkeD3r5K4wed0FTvo0wl3b2IVnPkObmKvGoARpcC0Cz8iTuDT4VGeOdSAAiOuEsTH2DsH8gb4ERCqfbjSZMjW92k+/z73/tQhWiUlA5CaVO/8U/vtQNuGOwjHm5AexT7PYx0fol3YEweSPFHTX2lLef+ybFNh+0yWUNJyznA3ppuO5cotL1jVyuSwK05x/Wo43ZUdxi6ptPf6FqtNG1CWlx4UqhsVdD/IEyClGQmY7AMbDi5x2up82YQznqUIRuhvHwrdJUBfHS+zG7WhWIZVsuAOxtLFmHG4LlK813QOcEe5sXeZOPEL/ot/4Q6ICmSg6ULMU+kyH1lM0AFdVLRUZWylYQE/CoWqUEcD+fLmJ1TkaZSoCc6AmCopCnvyS0HazbHQ3oodnuLRb5vLgrdhjD8HlxmCRI5iUMHxp/F/caA== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(36860700016)(1800799024)(82310400026)(23010399003)(10067099003)(11063799006)(56012099006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YlpgTc6Ifo4OupRCe9puMDWvTIAlG+vK3Yv4cWCHTr9Sj/zYZPETei8mIHkbfTthrFrHBHXTGbpuJE2QN8joAUVjJGSGw6DvkoVMkRv6QeI9s22EEmPAS4cg572fpMu+L0h608KiokyRGs5+0G/5AgvH8Eu4Wi1t6WBSvQmXABOnAl1xJ2/S3MQRpftaLeDmREymVzZ787jds73Cmy+Q+HOYvU1r/YGn1zl4up65bM1zb0oMCdTRKwb9HMblQneO19MI2UnoBMnJWpAhxWa27tKdQBdsT2WcIiA3/iZk5guwW6gCLLYE8eAmpavlMTx8gYjY1HV5VP9dNRJyf+LlA6GyByH3rqvjqGvHt0TgrAH5a+/PXadJmvba6mwViR7I81PpUFaVW7YBVzIzmrcB7Jkt71nQjXHkKTUuwryH6LIso+9JjEr8cfOtAN3uWvWY X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:18.5467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b37e09c8-1c4c-4198-55e9-08df0476cc1a X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4137 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20077 From: Chris Laplante These seem to last have been used in 2016, before runqueue was rewritten to not use numeric TIDs (2c88afb60 taskdata/runqueue: Rewrite without use of ID indirection) Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index b2c2aaf14..4211c83ad 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -493,15 +493,6 @@ class RunQueueData: def get_task_unihash(self, tid): return self.runtaskentries[tid].unihash - def get_user_idstring(self, tid, task_name_suffix = ""): - return tid + task_name_suffix - - def get_short_user_idstring(self, task, task_name_suffix = ""): - (mc, fn, taskname, taskfn) = split_tid_mcfn(task) - pn = self.dataCaches[mc].pkg_fn[taskfn] - taskname = taskname_from_tid(task) + task_name_suffix - return "%s:%s" % (pn, taskname) - def circular_depchains_handler(self, tasks): """ Some tasks aren't buildable, likely due to circular dependency issues. From patchwork Thu Aug 27 20:05:56 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96605 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14D76C61DCD for ; Thu, 27 Aug 2026 20:07:36 +0000 (UTC) Received: from CH4PR04CU002.outbound.protection.outlook.com (CH4PR04CU002.outbound.protection.outlook.com [40.107.201.29]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3286.1787861243996363827 for ; Thu, 27 Aug 2026 13:07:26 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=UtCJj92K; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 40.107.201.29, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=J6Jj+HzZdnDat892C0nxv72Zx17teKFu+ohIFd+YRGzc2etbnngV7sjv7z/nfndTDPcccLAG4onUZIY5f1r1bJYMHQlDN9ULgQSK4MGXfsCJMy36131ZQ+N4jNRX2vT1BdLMiNt9R80XlUEx27Be2ZmRpiWFGWHpuUFgLdir1PCTZ0q1EiiaLVi6x01HOO19zUAtCrqXiY1UDEYHbbiC4aUZnZ6euBd1z5TyL6fnR1DkPuhQZeQ/CpQHShaXn5Q2YVr/R5DHxQXQRKUFCITKqN7ro2jjTbXQ2qfQVzKSk7/Bcudm8YUbtphmebjiAgFk6O9pH8SwxSagt+quXaOAeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4oLToVcnRl3iHMVKj5TeHwbmrEK3IxjOUdBes4bqMvU=; b=Ww7FHj86rdQUcz2b4hUjP9ybdw2lcUFxnMfNNNbt7w4g0KpocV0KNhQyUt5xCuB4w7AZd7VWfJF8o+PQNf6MXG6Mc5HQEoGUAQlgbXQFDbJ5SU6wccOJbuLSj4El9R8Mk70bwqlC+OerNLD4DSkyT2DGc5WAkMj4i1bfX+tUuOwtlFc7szzi+Bhip+c5XmoHinAnWmj+pCqXNObRrF4g5A7DIkxFx9uSFDaxQPl1pZ8Jglczej5cnY5Ht8SQaWzalDD7Mj+rCKheo1eWoytAZRr8/+BqpJj3awB2IRCyVqQKom9AHwf7KC5sTaPOtI8FvkQpOLLLNc+wMLvSxfmj5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4oLToVcnRl3iHMVKj5TeHwbmrEK3IxjOUdBes4bqMvU=; b=UtCJj92KuPWlKux6rmM4ptUlMD6owDDqheYCI/WvZWRCtXAVibC+rXf2NNFGnQw5m4vrzx5JGByGe9GvDVg8k7Di78L9VHcchDlNZoSfw/l2a0UO2+K/8KFrDLEEDfOb9AoqJsscUjZdcvuUAUomVEs+wg+oy8DPP8t59Nvb9dMWNLv3JrEuLIOlerxfMvRUOmsBDxbULkXKzsiXf2eNmp46wcJAu+8HU1WB1XjsUKKn1eJFLzt7vtAQ3vTZwp5cEgD78bhRJ0dizNXnQv/17Kr2bk5Uq9o4z7FrrOE69C71lhMHt63W/Iz8M/y9L4F3kzYkLaH/V/586BjJbmnmjA== Received: from CH5PR02CA0021.namprd02.prod.outlook.com (2603:10b6:610:1ed::26) by IA0PPF002462CFE.namprd12.prod.outlook.com (2603:10b6:20f:fc04::bc4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.9; Thu, 27 Aug 2026 20:07:19 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::33) by CH5PR02CA0021.outlook.office365.com (2603:10b6:610:1ed::26) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:19 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:01 -0600 From: To: CC: Chris Laplante Subject: [PATCH 04/11] runqueue: cleanup imports Date: Thu, 27 Aug 2026 16:05:56 -0400 Message-ID: <20260827200603.688796-5-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|IA0PPF002462CFE:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f1177d4-a6e8-4e81-a706-08df0476cc86 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|82310400026|23010399003|36860700016|10067099003|56012099006|6133799003|22082099003|18002099003|11063799006; X-Microsoft-Antispam-Message-Info: lJAGrq8pYs5n2ia8hzdMSd5CEXnt3VfNsEG1QqxvebO5f72ujzcUm6aKlpAieIc00YB8MImDO+IRkRrsA4IiLOZNgJSIbppE+hbyvhHQUy+dkoBJ1w0DVilF2ZOiSUgY7DPeja+doGSTzgqqG0xd7XQs5CuZdy/LR2ylzUqYYCYM4hmEGL5MY87Aop2qgfA3pzBTFM2uwtckG8KmsRkeyEgHFLmXB9rnqneQ4NPUuKVnNlfxIoSbyGwTM9lLnSYxUQyes7JapPz1PR8XYNVE7r8zCmniIaUShkNL36Krv8bNI2X2nqPEYtyNyph/EBhod2PEt8i2RC7NLfS9H3GzFYEEJ9HVfhCyBiTY61VPSOFEad7pOBnGpGM2B8w5O3bh+DayPiM0nmcAcyjZ1IARHnTOlkCCIPUuReix8CkRQI6ip10lJ/nIE2AtNvrkmm1hl9f4i+rg7Jy5+zjh3pE1ehgY+pxYeEQM3jJJS9egQ4aVFVkt21JOw7+u1jvOGhQLj2PiXv6/7ejQLcmmEpzk/Vet6mIVzIGoA8FgLvUq4ce6PxJCiO+ajhn2zIh7iRvPyLSfUP8nQhfPHbOkeHYYww6WFQU/8+XI4sWUZZm802qY3KXvoBof1YFNoaZ0BLWzOiCBe08Zmn0ESwrP1UMs0QP48d75S3YlJQu9Unbrs6eEpHjTxQBtAvQD0LTLZg7Grt2lBEPqCK2Ogy+N/IobJA== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(82310400026)(23010399003)(36860700016)(10067099003)(56012099006)(6133799003)(22082099003)(18002099003)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LDGaN9RAsVv8eyUIzxLWHf8sbWlGXkAWXRJz6CTdapiLlyJzS0TFc8qKKyogh8NdPKle9ip/R7Wuo5szWkJzEVEMLxVNwiJxnJ+mbPgzpKDGrtulzF3x7unyQc9MoQfPjo+nYDo6QgTU1kJJwKqY0nrxpd7vFaa3xRAZNOhMzvxNVoyIqY13BLVpngYcfarjFpMdQ+1qSAhkv5d2nJcf8yoO4i6zUysZsJtuAK2COfUxtADwSloP2vHAuFSWN0z203f+K9Hg8eF7EqMzvjFEOkd4df5VvlGzJnqKbbdBFaTem4tyfis9IYxixu1weO6H/v7eZiOGcrv2vLpXwe4TrZegCRFVZVW91pBwxvXZW3q+O9WNSBrt5eBfLIhdF3Ud8kue06Hil5cVUiQmnGEb1pdM0kdHEG17efuDnTKaMqehPQhz7a+adIZ9gGgIvjgi X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:19.2521 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f1177d4-a6e8-4e81-a706-08df0476cc86 X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PPF002462CFE List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20078 From: Chris Laplante Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 4211c83ad..c7b6a9d25 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -18,15 +18,22 @@ import errno import itertools import logging import re -import bb -from bb import msg, event -from bb import monitordisk import subprocess import pickle import shlex import pprint import time +import bb.build +import bb.cache +import bb.cooker +import bb.event +import bb.monitordisk +import bb.multiprocessing +import bb.parse +import bb.progress +import bb.utils + Process = bb.multiprocessing.Process bblogger = logging.getLogger("BitBake") @@ -498,8 +505,6 @@ class RunQueueData: Some tasks aren't buildable, likely due to circular dependency issues. Identify the circular dependencies and print them in a user readable format. """ - from copy import deepcopy - valid_chains = [] explored_deps = {} msgs = [] @@ -1335,7 +1340,7 @@ class RunQueue: # here, just in case that there ever is more than one RunQueue instance, # start the handler when reaching RunQueueState.SCENE_INIT, and stop it when # done with the build. - self.dm = monitordisk.diskMonitor(cfgData) + self.dm = bb.monitordisk.diskMonitor(cfgData) self.dm_event_handler_name = '_bb_diskmonitor_' + str(id(self)) self.dm_event_handler_registered = False self.rqexe = None @@ -1634,7 +1639,7 @@ class RunQueue: logger.info("Tasks Summary: Attempted %d tasks of which %d didn't need to be rerun and all succeeded.", self.rqexe.stats.completed, self.rqexe.stats.skipped) if self.state == RunQueueState.FAILED: - raise bb.runqueue.TaskFailure(self.rqexe.failed_tids) + raise TaskFailure(self.rqexe.failed_tids) if self.state == RunQueueState.COMPLETE: # All done @@ -1647,7 +1652,7 @@ class RunQueue: # Catch unexpected exceptions and ensure we exit when an error occurs, not loop. try: return self._execute_runqueue() - except bb.runqueue.TaskFailure: + except TaskFailure: raise except SystemExit: raise From patchwork Thu Aug 27 20:05:57 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96603 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id A862FC61DC7 for ; Thu, 27 Aug 2026 20:07:35 +0000 (UTC) Received: from DM5PR21CU001.outbound.protection.outlook.com (DM5PR21CU001.outbound.protection.outlook.com [52.101.62.66]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3292.1787861250385735422 for ; Thu, 27 Aug 2026 13:07:32 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=lF23mJNW; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 52.101.62.66, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cK0NKKaieHXlm8MtxS1gOhdMwD3BoCCGULEpHCOKWKzk3jBmGrOhPFtv/zVxBwY4NPn9AjuUZBNAyDqfehXDZzA9gSZVSr1K4mFDRnDzFie7r6j5OUDlM/MUaQA+caQ7TtGEKglQrY+ZGbYAe+VlBF+rXRDlAULQliZNvvN7sTll2D38aVwRuBCRJF1JyzUk97mKxZu3sm7efrW8I2pfAKx196a/MwD/powvSVV9u97PkQ2Y34DI9nIFLyiyo9JbuowzfIPuT99vZ/3M6k9Ou9j2KyysmKuX8/J6BGi2z+whkfYYlxcZrhKTghQywusv1QuH8Bd72pqva1U1s/57Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=49YK97FDDQPAQbP8cL0a+g2bpd998lK9YKsRrIbRJZE=; b=GSDq+oXg06payX+CPCK4jXgkIHcwV3fW+sdG2BRLFP96O7ssIVlbDrvEd1hKCrleyM0WwsvOTUZmM14igp843+QsJJYg9px6xUN55oetHVsHtHnGF2zhWBfCDIo874cOUQqWIdNT2nIiTiO0wBTqi21xqRyry5aOUDvRQEBE5ultExLeqzHf6s0kz7txjlEnouY7X0qNbdF2gwgcr+/4wer7q738Crg4a4743qD0Xpo33+AofvpdNyed/EAtgKhd1LFwQWBifO253LorGZzrs7Low6pxWppHQBTwjx7DuJVBpAbLjb69batEK+WBbO79mgV6DuwV8RbTk27d20pxmw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=49YK97FDDQPAQbP8cL0a+g2bpd998lK9YKsRrIbRJZE=; b=lF23mJNWrbCR25GvBvMew6BBFyoKnHZCpNdaqG72nUoxHtTa/ReY4iblSyDxZTnZ+n/AzK051j/06ULssACywCjhyktcS1kIp8jUBKPzlX1Yg8lYjaO8cf9fMd9zLBLahIp3eHT3hbepdpJ71FS+TttjybVkjj7A0AnVK4j77fLlJgkasLO56jHFgu6h1upLIoi6mXvoXI5lzKQms9gftNUL/mjfhf1ip/vbZdzffYhqUeueJT+535aStHLYz9rEw4UC3BTkf982KtnaLDeV4rFVMk4wKK34kVoaxGn2riZpn7f3PMzMlw/eP2fZEwv1P3DRq9xlm2+h2a8lw9Htkw== Received: from CH5PR02CA0017.namprd02.prod.outlook.com (2603:10b6:610:1ed::19) by PH0PR12MB8776.namprd12.prod.outlook.com (2603:10b6:510:26f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.10; Thu, 27 Aug 2026 20:07:23 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::79) by CH5PR02CA0017.outlook.office365.com (2603:10b6:610:1ed::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:21 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:01 -0600 From: To: CC: Chris Laplante Subject: [PATCH 05/11] runqueue: remove RunQueueExecute.build_stamps2 which is never read Date: Thu, 27 Aug 2026 16:05:57 -0400 Message-ID: <20260827200603.688796-6-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|PH0PR12MB8776:EE_ X-MS-Office365-Filtering-Correlation-Id: 83518523-ec5c-4ec0-8c7c-08df0476cdb6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|1800799024|23010399003|376014|82310400026|6133799003|10067099003|11063799006|56012099006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: 8yGBBzckEco2LDL9R3QFn1nMYNPoNqoiUwfWuEVhTuI4uHgaGvE+ajxWwlHY+EqyZ6ISt+rSTXfBkY/wbN62FoELx4NCCW4yo6E54lV+0W26f/VUKvE0fKWZADWGqit7wmmkwjqFS8txKzYjwHTRunY/FphYPcb+2JtYywiQ1Kdeo6WGSQ7R5tp8jbOEtzXVzA2wrj1VIBAMbSWe7P/Dt0ou3vNw6acjt5QCed3Od0KzjPD2w6LKgJidg0gFOXmRTVdqCoH0rqXT+qdVlsW7UIehmtlo3HmjlHjNGCNxUunsRqxVEVVzhP+LAb14OeM8Le4xyrBuEHUXHDaDk4x5FgE5WH8Z0+qF3RxruTKVB1lyWUmnLHUbz8rb99qAz3knibjntJKxCggdlhCZSM5cnItz2EpHXjQLIo7bJq2zxnINgyxwInRJ06jClh1STsSyattRWtpzw1RJGAY/Bvw4oP59CXVvC16bymVCjtYf3HQLz4uDpss4S8GKoNIB1w0m0wetV4u233lQB+9bOzLRPw3bNnKXumZ2S9MyqNrA2WpuTTe55wnDbqnTtJjZs9vtnaTrDr72M4NAQ9Y0UJ2NUlfUHjpv1EDQs6DxtSlKlYlT10TBuUrYMnyhE1/1V8MnBNhS5zIe3Yu49lPW3I9VeoRGikK11RvL/aVJyWVTKbE39sYwGw9SM2fAcLlqwtjc1JXG/m0TKBHJH5pgFSYM7w== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(1800799024)(23010399003)(376014)(82310400026)(6133799003)(10067099003)(11063799006)(56012099006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M+3STkpdim+gcoK8zQTk9Lck+4pJwF99trFoyUi78JenikSV5haWhd19PcjOnm/UNux+6LPxq10fXqGehIAI79UW2ikzOqQWtweI5jgEZiGPmyAStNCobBfN+PkF8vNXejdfKoPlYeeHEb9Og6Hda4eNR8+kj52IqS85EFUsRVPZ7mKwb9BbvHEJVdblrdNPZNJ6+2m8761AT6ziVv3w5ehLwSvleWvXHDPe8S5NEFeCUnNIAkUBB/uov15Y7+GTDfAaWKVZS6fbSHB+8VkeJQks4Nbpb5j3O9M872buBoHmPnb8rIP9FKfkjvMWLamVh5I/9xuYWiyEkI24mBmj2KOdH4bCQIi8IJwgT/YigEHNzojlgbNQqlqDxxlEZtSXyYBF+WJUZWytvrW6k1ZoJRACnLLH7t/spyXkzTKRcuUodl6UpV17Z7M3+fIOW0ki X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:21.2474 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 83518523-ec5c-4ec0-8c7c-08df0476cdb6 X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR12MB8776 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20080 From: Chris Laplante Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index c7b6a9d25..d64624e40 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1873,7 +1873,6 @@ class RunQueueExecute: self.runq_tasksrun = set() self.build_stamps = {} - self.build_stamps2 = [] self.failed_tids = [] self.sq_deferred = {} self.sq_needed_harddeps = set() @@ -1965,7 +1964,6 @@ class RunQueueExecute: # self.build_stamps[pid] may not exist when use shared work directory. if task in self.build_stamps: - self.build_stamps2.remove(self.build_stamps[task]) del self.build_stamps[task] if task in self.sq_live: @@ -2315,7 +2313,6 @@ class RunQueueExecute: self.rq.worker[mc].process.stdin.flush() self.build_stamps[task] = bb.parse.siggen.stampfile_mcfn(taskname, taskfn, extrainfo=False) - self.build_stamps2.append(self.build_stamps[task]) self.sq_running.add(task) self.sq_live.add(task) self.stats.updateActiveSetscene(len(self.sq_live)) @@ -2416,7 +2413,6 @@ class RunQueueExecute: self.rq.worker[mc].process.stdin.flush() self.build_stamps[task] = bb.parse.siggen.stampfile_mcfn(taskname, taskfn, extrainfo=False) - self.build_stamps2.append(self.build_stamps[task]) self.runq_running.add(task) self.stats.taskActive() if self.can_start_task(): From patchwork Thu Aug 27 20:05:58 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96601 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF4BAC61DD4 for ; Thu, 27 Aug 2026 20:07:35 +0000 (UTC) Received: from PH7PR06CU001.outbound.protection.outlook.com (PH7PR06CU001.outbound.protection.outlook.com [52.101.201.34]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.3446.1787861253957496348 for ; Thu, 27 Aug 2026 13:07:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=I2KPm1RY; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 52.101.201.34, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wKe9Z7/lkHrdoyiDnyNmtmxFknbgHmSuvOFzW47Cfulo9VoP18Nw2NUnVPAEiuon4HPGETNGbjzsn0CwoOiTE8pOHZ+CCBbr7nO6iLzIPlKlNTacKWiNhllhmKJRP8pLTZbQRfsEzf+SSxgUfjmXoZyUHbkDeZ/fCxCzht/2mSTH0EpNPkr/2g0rz+0GtKf8si7FQkcMPcIfRB75AeDa+xkyyc8qESGFlc/OoennZ9GILONsDBtFzlfJpbLwBBYWubc/Vckg38a3agExQrF8oQ5HEzWYg+ODYfImdY8z8EdpKigjgpSl4LzsCDJPC48U5ev33W+jo2ZLvQhPWE/gJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=76A2YibjoQlUibyFEN4xsKDBtaRc35KvTAu6eyQN5f4=; b=JAtMqJfaDL/gZv6wFQVtl++L76a7ewyZFM9KQwocT1MPmhxqOAxn8J+7j3vJtP8vfQFhtTrK5+IvI4lMibQdnl2v0y9lpK7WYUfJGOtwChX4E/TzvlqYBo2jbfJF6hKCEm6tRprToH4tvtHM3pKfWxLiy2buBS+IPVr4iJZGsTNE26h45GIPd+jBIYgot0wScJ9De8eSl1tMt8Tl8oLdv8O5Qk4r3bZdd/BPCHVT5jW1FghnNUuefUehYy/BG3QgFNaqHjE3WhNrKbVPd1K4gfvbPxJACQjNPT1yFbHJ9HSrzPuPkRHPjL8ujlv8Hd9SRjRG1cigTFY8yqbtBaBv2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=76A2YibjoQlUibyFEN4xsKDBtaRc35KvTAu6eyQN5f4=; b=I2KPm1RYIvU7HRh32RdvD07trQupFAg80d/SpY20BYMIpXTeaO5EV5ulfKo1Ee4nN8C5G2WaAVOCp0Pd+qxsEEwLHfhbd0LagX3cmJUb59ETy5XjuXY4cTpK0cKbv07bsqEbJLdeBDaCZxCfNtKS0YpAAU6iOY9qqQTBtO89ye+2uK9hDAXAjSIuL/KX4bEb/ZQeHk1+VBttGrfZOx6Vsk/tDoH+pkIWlyaSDPdZ4bpbeAGxMbYdwWmg1qXqaoEv1BY98Kxm3dAqG4PGqMyYaNxG1A7wy3SWGNSkniw/u8oETvZ/NyR3VQETM7U3fvk3XdMQ76I4ZxACF79rXL5FUQ== Received: from CH5PR02CA0014.namprd02.prod.outlook.com (2603:10b6:610:1ed::18) by PH7PR12MB6695.namprd12.prod.outlook.com (2603:10b6:510:1b2::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.10; Thu, 27 Aug 2026 20:07:27 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::60) by CH5PR02CA0014.outlook.office365.com (2603:10b6:610:1ed::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:26 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:02 -0600 From: To: CC: Chris Laplante Subject: [PATCH 06/11] runqueue: optimize construction of rev_prio_map Date: Thu, 27 Aug 2026 16:05:58 -0400 Message-ID: <20260827200603.688796-7-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|PH7PR12MB6695:EE_ X-MS-Office365-Filtering-Correlation-Id: 989a3976-430d-4a0a-8a85-08df0476d0ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|23010399003|1800799024|36860700016|3023799007|56012099006|10067099003|11063799006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: UZBw++XV2gRtR2P4lZz864IGEgX6u4XNP4y+GvJ1liSrI9VFjR1ijTiFJO5N9E1BkOZS8Dm9cETs0YwY9NebW07RtNhlClQkmUS8xqHob8p1d+mBZVefJs39as739xo5B2EYeXS0Qdoh8Rse3NSa5HWDKSbI8zq0mwqcfTDFkP0wDZyZ/x3HFEUX8QinfJq1l+sRABJAtZRP8vxfFQpKbFHCd59tJEYMpJxCLV0o+GMZTNeKATZGhW/gINMfWzy1vsEhBZ05yP//6wTkfIafvAk47AoErv/Kl88rZYvATw73BmvDwvi4iqDvmmpCEtCC/xW8z5t1Be0d/uX9evVAqUd/mHVM7M/+AeZ46XIl+WL6eaaAfemvd/8Hd7v749bqXdk4tvLGRVUR3KKNOaPFLLFMTi8SgWx5RDjPo/N4j9ATVm+MH95BVE8cqO/RvrBylYF8fN0tyDzrxTaKCPGUeHxn2S/zoNz9ZF87FgZZQa6ktQZ4ghMVBrnf88Fcc1ldgJl7XN/lJu4WUEAcHzEcxyEH0GmGc2QIEfEJTa17lV3qNRu3lOgfeHQVqMxmOBTHl50ZkGOhgKCJckJU2Tqy+jFspL9lFlKtCJfa7894+V1waxRzctEWKYphEEzKpky85zENJzRRldUFodr8/YxWloplqPrciQAL1O6zRq01Uby9zeOhh8JlCUI/FB/HRDJ390xFZQ7kFPFf6VWfN+b5xw== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(82310400026)(23010399003)(1800799024)(36860700016)(3023799007)(56012099006)(10067099003)(11063799006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0aNZCAy5RlKzPHZp/B0F4wFAWuyYq8RBL87S/xdDTEiw3CCpGL8+arG7WGegiU2cCvhjmle9XEZApxn+uCqLOUPEC+7G+xUB8ZWARaWOu0BXPgP5LxgJcAOWlFijdM2J3GeSLE0Au+yBHFTBJvFfkhYQdA3HL55Bc0VwVTwqNoCLCq73JyCSxKCgFs09ybBnK/JPabf5v+HR/lTemqlPN+evYOx6Aokhd/kiqXZSRxGYUpHc8AwRsUtkFpSUxrk8QYpr+rpFKf47glcIPbRZpmG6ze5LfCIQpgmwlDJ10S5BEbvpocIDuipZ8jQr6fnKFGpy4NJBtdYibugSixBAgCbT16JJyZFfyGhRyvfIhDqRFfy7KBpvUq3kRWnsY3TOKjsI96DQCIf3guzTbFcG7Od8zIaBDmyZq7z3yLNYlGFNB8QhK8RLQETJZOz7ymWB X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:26.6191 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 989a3976-430d-4a0a-8a85-08df0476d0ea X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6695 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20082 From: Chris Laplante Make this an O(N) operation instead of O(N^2), where N = size of runtaskentries map Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index d64624e40..c55dfd9d8 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -287,9 +287,10 @@ class RunQueueScheduler(object): return tid if not self.rev_prio_map: - self.rev_prio_map = {} - for tid in self.rqdata.runtaskentries: - self.rev_prio_map[tid] = self.prio_map.index(tid) + self.rev_prio_map = { + tid: priority + for priority, tid in enumerate(self.prio_map) + } best = None bestprio = None From patchwork Thu Aug 27 20:05:59 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96600 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 956F5C61DB9 for ; Thu, 27 Aug 2026 20:07:35 +0000 (UTC) Received: from DM1PR04CU001.outbound.protection.outlook.com (DM1PR04CU001.outbound.protection.outlook.com [52.101.61.58]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3295.1787861252898703197 for ; Thu, 27 Aug 2026 13:07:33 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=xg0509EX; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 52.101.61.58, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VwRUbAYLuJ4+kMsHN1sS/y+sycVtRgsOoshjeJgr0z334fwcCHK3AdxeW8bySVRf/NjOmML086QPdJ4f9n31tAHCA9ELSSC7lkbE+E9LOhARBys2gVM40z5zN1zeAYudkbM09LIwkx0K/uzZn66IQ36r8qzN5izu/eqzLdrIqQ3zt1sjtPH0a/+kBbQALf9Np6R72cVpPDoMugnfDSWtKNz3Sm/yxVL6GENsgKjt95oAvfWcnv3Q3uLz27l12/dty9RigGkR3g1ZV4B40hLYC8NhyoP2TEhtDrY400OS79Q/dBkqhXtKKw4VPtkZb0IId840n0boMdMLq3/mdD4Oaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/SfdXytjYNn1ZsouJRp74vtepu2YhthZaDycd1cEdgc=; b=KsQUA5G4n7CreMQbkSWogSfvSBxIJ9S6USgOaXRDXeh8UEA9l2pFdCnLKb3jvBugCXLbZw1T4Ip9WsreS9mDxYpY4Q8lB0TtFcwRaBPxDiKNQ2nXUoc7ktl4L4/YpbPpoeEGwA7hftnmw2RcBHQpB3J2uLSNw8xvpR2nfVlpFrSFjLr0UAOLg9Hcn4NM/L6ryFXnVsZ5184xfn0QDNdCCs5ZF/YE54XUncm0AK7cTxgDJKs67VRQLZ9dT1ILF2zCJtqmhv1W/dXXlu2p9DA5QS00BAsGybc1/xjIUyuZVHxcEQZlr0/LVyYKrt5Mw1SZwKugKBaHPH0Ca5e3rpRgiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/SfdXytjYNn1ZsouJRp74vtepu2YhthZaDycd1cEdgc=; b=xg0509EXUoEB4ciIBK2wCGYAPNtyEn/kwkXjJevjnSFh/3hWeZgbkcq/K0wVEZoGCgggW+qLkL8O+cd9fjVQG0oxF4fc+W0fpfvjLTiWY0+qOhAHqfX5AunvlxPpfx64tvXrYtELUB2VlsavSvQHNt52ByY2krfFejQB2CcCxfiNfFBLajcDc5vpR7n+lS803zum6qK5mb216d9T0dz+UY8LEq/gweKajcYwa3jCp1hn0ry5dFLrQWj8gmhERvMYiiKS7VR8AfxaMU8sgop0gJC1R+qMyZDnRUclNga0y5F+EshLo3Rt3tyWWrCqhS6CGIjP1El6Ngvo/Vy65VDY+Q== Received: from CH5PR02CA0024.namprd02.prod.outlook.com (2603:10b6:610:1ed::6) by MW6PR12MB8707.namprd12.prod.outlook.com (2603:10b6:303:241::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.10; Thu, 27 Aug 2026 20:07:28 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::aa) by CH5PR02CA0024.outlook.office365.com (2603:10b6:610:1ed::6) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:28 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:02 -0600 From: To: CC: Chris Laplante Subject: [PATCH 07/11] runqueue: declare pressure/load attributes in RunQueueScheduler.__init__ rather than dynamically Date: Thu, 27 Aug 2026 16:05:59 -0400 Message-ID: <20260827200603.688796-8-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|MW6PR12MB8707:EE_ X-MS-Office365-Filtering-Correlation-Id: e5763d0a-80e0-4a14-6233-08df0476d1c7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700016|376014|1800799024|23010399003|82310400026|56012099006|10067099003|11063799006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: hsqk79/FgW+6T4hEV3q/XrAkWLjsjhLgqxQ5+1/3TpcKjtfw8AVkAIpj+BtowZeguL2g4d/KSY/1oWXTw3AhNRnb+BXhJiLDovUtvfT52g0j++ukPo95i1CvauJzQtQXg9aPPaMNDjcXYo+m11pDxilU4MrGBw1Wj7nahKLtQfDVT5Nt4Ag4K0oSztDTXBCP6FCqU2Q34j1UzU5dDm7xgveSVUdi7040TK3wbLPaH/hiHnbXp3hYFu6s1C7F727HOffizR67jq7INrHbJPdWbL/vESHmMUOIvWmyidY0LAiUHsVuSNzl1tR373FxHeqHEbPX9dsoMY+FmLlyAEYjzp4Xu34a1ZykovYNyTqzH1J3i2WSAQPZaAN1x2UYk18SU1gq4DnwsEAkVRFJCYeEebrLtqlWTVE8ZVMzc6wF6U8MGzAcDICz4go5UjpPe9H6zzq9efh5zTDjMuwrFWNbvyyqCPZQt8B2rtpTF/88Le0Z1CWAI19f2Q75YWe847k3J6LZc+Gzf6r9jwzGmxKBExCV+Aq3jEL9kHik4G7Z+0gTJocpNR0Dhi05dl/AT6Mkk/AsIpMshQA+N7ADknAhUeZkYW75jrbasE3eF2tT4gsxs0IMaHvVcZGb0PhD5rWteWuU90KhCYWX5RFEd6HIlRoRuvJ/Vw+mnT6xcOllaC8zPo/2O3zHwUAnWmLAMOXQUyI/M+nMB5ioGbyAX5Wopw== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700016)(376014)(1800799024)(23010399003)(82310400026)(56012099006)(10067099003)(11063799006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JhiLZLkFeZa4xotCY1jvr24Ve1XQtIkfanCnh41BDUe2Ulh8w7g/a7WkoPzcXDhOCfoyDV63RLBe29w0ZUkbV9RScv05emfyFkSAAHCuTMSDYs08G2Yy3r8wo+rwWAR0PmTmjNBZ36h/tJDYhw+c6t9ImsjEVfYlYe3U67tZatScexd8hoeUc3tkZqTMBNcTClcJoBTLTv/XLhzjnQzqjFupQ1TFdYL8Irv2TkMAwmEbwn/MRVC+nSyW2IsMeT1FKNxIRT9iv4/WAdPT2dqXg03dPy+UN5JdlsTWn8tx7MYeHN5Qq5EfLO4/IXZPnbJ+CL9+mx6dZAiIgIvsikRnaXRckAkRrYbIU+8Uebvp5zX/+FPemNQfa4jWrnVRSQZa5Ux+bYa2aCfl9Qc7ATjZR8JmlNQQEp1rvawvqg60b+p2MBjOomp+6in8KnK/WPEf X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:28.0715 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5763d0a-80e0-4a14-6233-08df0476d1c7 X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8707 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:35 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20081 From: Chris Laplante Also moves float parsing for prev_* to when the files are read, rather than every call to exceeds_max_pressure. Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index c55dfd9d8..9325bf356 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -173,6 +173,13 @@ class RunQueueScheduler(object): self.buildable.add(tid) self.rev_prio_map = None + self.prev_cpu_pressure = 0.0 + self.prev_io_pressure = 0.0 + self.prev_memory_pressure = 0.0 + self.prev_pressure_time = 0.0 + self.check_pressure = False + self.pressure_state = None + self.loadfactor_limit = None self.is_pressure_usable() def is_pressure_usable(self): @@ -187,9 +194,9 @@ class RunQueueScheduler(object): open("/proc/pressure/io") as io_pressure_fds, \ open("/proc/pressure/memory") as memory_pressure_fds: - self.prev_cpu_pressure = cpu_pressure_fds.readline().split()[4].split("=")[1] - self.prev_io_pressure = io_pressure_fds.readline().split()[4].split("=")[1] - self.prev_memory_pressure = memory_pressure_fds.readline().split()[4].split("=")[1] + self.prev_cpu_pressure = float(cpu_pressure_fds.readline().split()[4].split("=")[1]) + self.prev_io_pressure = float(io_pressure_fds.readline().split()[4].split("=")[1]) + self.prev_memory_pressure = float(memory_pressure_fds.readline().split()[4].split("=")[1]) self.prev_pressure_time = time.time() self.check_pressure = True except: @@ -208,15 +215,15 @@ class RunQueueScheduler(object): open("/proc/pressure/io") as io_pressure_fds, \ open("/proc/pressure/memory") as memory_pressure_fds: # extract "total" from /proc/pressure/{cpu|io} - curr_cpu_pressure = cpu_pressure_fds.readline().split()[4].split("=")[1] - curr_io_pressure = io_pressure_fds.readline().split()[4].split("=")[1] - curr_memory_pressure = memory_pressure_fds.readline().split()[4].split("=")[1] + curr_cpu_pressure = float(cpu_pressure_fds.readline().split()[4].split("=")[1]) + curr_io_pressure = float(io_pressure_fds.readline().split()[4].split("=")[1]) + curr_memory_pressure = float(memory_pressure_fds.readline().split()[4].split("=")[1]) now = time.time() tdiff = now - self.prev_pressure_time psi_accumulation_interval = 1.0 - cpu_pressure = (float(curr_cpu_pressure) - float(self.prev_cpu_pressure)) / tdiff - io_pressure = (float(curr_io_pressure) - float(self.prev_io_pressure)) / tdiff - memory_pressure = (float(curr_memory_pressure) - float(self.prev_memory_pressure)) / tdiff + cpu_pressure = (curr_cpu_pressure - self.prev_cpu_pressure) / tdiff + io_pressure = (curr_io_pressure - self.prev_io_pressure) / tdiff + memory_pressure = (curr_memory_pressure - self.prev_memory_pressure) / tdiff exceeds_cpu_pressure = self.rq.max_cpu_pressure and cpu_pressure > self.rq.max_cpu_pressure exceeds_io_pressure = self.rq.max_io_pressure and io_pressure > self.rq.max_io_pressure exceeds_memory_pressure = self.rq.max_memory_pressure and memory_pressure > self.rq.max_memory_pressure @@ -229,7 +236,7 @@ class RunQueueScheduler(object): pressure_state = (exceeds_cpu_pressure, exceeds_io_pressure, exceeds_memory_pressure) pressure_values = (round(cpu_pressure,1), self.rq.max_cpu_pressure, round(io_pressure,1), self.rq.max_io_pressure, round(memory_pressure,1), self.rq.max_memory_pressure) - if hasattr(self, "pressure_state") and pressure_state != self.pressure_state: + if self.pressure_state is not None and pressure_state != self.pressure_state: psi_logger.verbose("Pressure status changed to CPU: %s, IO: %s, Mem: %s (CPU: %s/%s, IO: %s/%s, Mem: %s/%s) - using %s/%s bitbake threads" % (pressure_state + pressure_values + (len(self.rq.runq_running.difference(self.rq.runq_complete)), self.rq.number_tasks))) bb.event.fire(PSIEvent(pressure_state, pressure_values), self.rq.cfgData) self.pressure_state = pressure_state @@ -240,7 +247,7 @@ class RunQueueScheduler(object): # bb.warn("Comparing %s to %s" % (loadfactor, self.rq.max_loadfactor)) if loadfactor > self.rq.max_loadfactor: limit = True - if hasattr(self, "loadfactor_limit") and limit != self.loadfactor_limit: + if self.loadfactor_limit is not None and limit != self.loadfactor_limit: bb.note("Load average limiting set to %s as load average: %s - using %s/%s bitbake threads" % (limit, loadfactor, len(self.rq.runq_running.difference(self.rq.runq_complete)), self.rq.number_tasks)) self.loadfactor_limit = limit return limit From patchwork Thu Aug 27 20:06:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96609 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55587C61DC7 for ; Thu, 27 Aug 2026 20:07:46 +0000 (UTC) Received: from DM5PR21CU001.outbound.protection.outlook.com (DM5PR21CU001.outbound.protection.outlook.com [52.101.62.41]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3298.1787861260258695146 for ; Thu, 27 Aug 2026 13:07:40 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=VzZPG1bT; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 52.101.62.41, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u30qUKMWT01aQ5G8P+XUj5S4wyG+SeDP2Bp5+0kZ5qLzXe7TeYlQSRsx9kp0owgPkHFmO/UaAD3lyqhzHablpTqmvQLAJJQ+leiGQhLvEtonkNfhnMsdLL3dMb9pyndGUChG/iFPQZ8lDBmP0pwJ6qrKCmf9+MwtMSn4Uav3WtErI74nXbrN3M4fLuE2D2FusISCLs1enXnPw/rPv9LvpnksPU07Jf190MWqbbd5RC/QBb3yG8ZiGAYm/Yud0O3whN1G/s6HbwlcPzpZvLLcHQn25M4qCMcAZ7ROANHFZwNPbahL9Ewi+V4T5cQ9/M+rStqZ4lMSOMW6bkDE3bCHqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=feCHibeONQxWBFb5YmDZDJxkJMOQaACQYjBFLBPRV6U=; b=Lhh4AUOjzEgAqU51rdOeyJ0pJunY2fJvHG8JwHiqbkZVgyWZkON+SgPVCwEeJ11lfgWB0IniXP4uxPxKotbi7E4wc4a5PgnQTXUiA4sh2b9ScQmPPdAh7e4fRIF04jiAduGemXMN2LZd3pQ6oPmrpYCXELn/Uyx64wsP3+T5+QvgRk64UBdicqh1+2leLiEq1rqHBEghf63pu/peYJYIKwlMS/cteqy7R3rlFDdHfAHVPakc5QLslOMtoznmuKqfwwxe9cITuDRUPPZuWmSf0LNOXdSCTf3++5A33Pc0Cx4bvBXQpMIo+x/6SdWjjC4rqNpFnjT2id4+aowujH0GQQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=feCHibeONQxWBFb5YmDZDJxkJMOQaACQYjBFLBPRV6U=; b=VzZPG1bTvaRB85k98qr7kGQSG4JaPFjyga5L643qVB5143TdpKSPfn3P3g9RvcwS0BhB8zujDnDa4/dKKqWGnsQih38A7753tW4XajfByDZyCNYQ7A9UVHbQ6p45TSCSzLPIIGnoUlTC0ilU/lcVEnvxvRAb0/UBh1o1vxTnjr8I4qAJZCmx7SBclAQdKRyCJ3ipw8wJsp9r9fOMSt+NQX0zOY7Xk9Rcy37xPNU1+p1Vtx/2Rt3sExSWn7gaa3ub3dNMA/VlUm9ZNJAalTNNsNkVbCcllT8Zze8DevZmDPmphr3zxcUl2eylGJBwGfrld2ZvYDKPil6SC5aBd+DLgg== Received: from CH5PR02CA0015.namprd02.prod.outlook.com (2603:10b6:610:1ed::9) by CY8PR12MB8068.namprd12.prod.outlook.com (2603:10b6:930:75::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.10; Thu, 27 Aug 2026 20:07:29 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::1c) by CH5PR02CA0015.outlook.office365.com (2603:10b6:610:1ed::9) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:28 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:03 -0600 From: To: CC: Chris Laplante Subject: [PATCH 08/11] runqueue: fix remaining attributes created outside of constructor Date: Thu, 27 Aug 2026 16:06:00 -0400 Message-ID: <20260827200603.688796-9-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|CY8PR12MB8068:EE_ X-MS-Office365-Filtering-Correlation-Id: ff762678-e762-47d7-68b3-08df0476d249 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|23010399003|82310400026|376014|36860700016|6133799003|10067099003|11063799006|56012099006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: ZYdcK0MME+Cfx9+qb/Tz+xgDVgwDAnz/yiooD32ZZ+YN2o/3CAmzrDvCJDeGSJO84LdCUk0+HFNUt79obn0HcTi5zX01KtnOMMYmALKlcgI9rkOAEgvkQdbosSWr7GB+/LE6dn/STWuM/HFtJYl0PsgybJHXf5csSOa+ktvgkM1wtQFliC9JmpculhQtnNabiXCiExFmMejduwXD3f3upSAnblPUqJlxYcR2C92j2trzw6QoURD5aHDX5LlrKOv8fLGfHIR3kbDOuBaF77YdPOAAItTLpLZOjRj1tOHcOZ3HBhDuae4Cu6QbjK2a+yfoB3DAL2bovNoVYndr2Lra5vWphAoZSpEMblculfNJ+4sbFavhuwZKUYXikqmfUOBDUyJw3mAD8W4vdUBIMRex90TY2P3+NQwcUUxtELb4/W0h2TThcvrDlVDSSiaeLfVuDqw4AiakJCKRjEFvQXYMcYLeivP0kNaGIYwiXuZ785ml9scPIcusEMhtHN+6aVeblEE30lHtdX3eA33A2Sm0tXv6ArDrK/tsQnMdMwaBIQgA67+69mCcdG1q+W9UA1jdye5ryoTVfef4RAToltk9dR5PoOXqn6Qzn8as6sp2z72FFH8QCjn0LK7ZYXlbYwsDrlKQLFWrn0E/+NmD4QORH6caxBS612+KFW9hByxJfauqGM2XrHKAANAj4dKR1DyblXPonnAmVUFaYk7YBx+k+w== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(23010399003)(82310400026)(376014)(36860700016)(6133799003)(10067099003)(11063799006)(56012099006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: TDnhsWg9Pk37bRpVv+5KSbJdw6prV0krO4WeUmgyst0wTxdIVW8O+iNsbHSe7e9FPlBdMTWqAxssi1KPutgx2JevKuElVYAoUMhM65+7UXhtw9pklR9/EW4r2crWBjQXtzTLn2dJkClLkoS2xuwywn9IyXoW3nx5AnZVsAW8OdczO+hyI5Ht+raB2T+O09EJASz6cD33YWJVkPnomoYbckUQAd2IxDvKNzkpoYfH7ZLGYUp/sUJ1da57aCfKvtcd4hmEi0aij2w3TADYpkld4qs8AyhITzeTPnP1kJa4E/8RkhuTljvCuq7PS5YAFJD7mWWjChTX0dUOfZMcWMIoWHcBseZbnf1/B+PKbgkDO8f/MWiONZsFdg7/CUFRaKjdUrwjAUctf/DzQt0w8pdZbsTwmbp62vRVMLHynP6zAWiqLeY2T9o/WOP97ZJhYwKK X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:28.9204 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ff762678-e762-47d7-68b3-08df0476d249 X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8068 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20086 From: Chris Laplante Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 9325bf356..826801855 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -488,6 +488,8 @@ class RunQueueData: self.setscene_ignore_tasks = get_setscene_enforce_ignore_tasks(cfgData, targets) self.setscene_enforce = (cfgData.getVar('BB_SETSCENE_ENFORCE') == "1") self.init_progress_reporter = bb.progress.DummyMultiStageProcessProgressReporter() + self.target_tids = [] + self.runq_setscene_tids = set() self.reset() @@ -1354,6 +1356,9 @@ class RunQueue: self.rqexe = None self.worker = {} self.fakeworker = {} + self.teardown = False + self.invalidtasks_dump = set() + self.dumpsigs_launched = None @staticmethod def send_pickled_data(worker, data, name): @@ -1697,7 +1702,7 @@ class RunQueue: bb.parse.siggen.dump_sigtask(taskfn, taskname, dataCaches[mc].stamp[taskfn], True) def dump_signatures(self, options): - if not hasattr(self, "dumpsigs_launched"): + if self.dumpsigs_launched is None: if bb.cooker.CookerFeatures.RECIPE_SIGGEN_INFO not in self.cooker.featureset: bb.fatal("The dump signatures functionality needs the RECIPE_SIGGEN_INFO feature enabled") @@ -1891,6 +1896,7 @@ class RunQueueExecute: self.holdoff_tasks = set() self.holdoff_need_update = True self.sqdone = False + self.taskdepdata_cache = {} self.stats = RunQueueStats(len(self.rqdata.runtaskentries), len(self.rqdata.runq_setscene_tids)) From patchwork Thu Aug 27 20:06:01 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96606 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 27F99C61DD6 for ; Thu, 27 Aug 2026 20:07:36 +0000 (UTC) Received: from CH5PR02CU005.outbound.protection.outlook.com (CH5PR02CU005.outbound.protection.outlook.com [40.107.200.31]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.3447.1787861255347863697 for ; Thu, 27 Aug 2026 13:07:35 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=qKIhuRu1; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 40.107.200.31, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SmGdSh5tqaF2AS9G2xKPaCgC+ssJE1FHx0xPgM/JiQBzA0Ep4sTl6HEelbOKEIGL4pjvVCP1tVG08BhEC+M+pI3im++0kR4FQIeMHWjU/4I5nIILekc5aLfxf7m1Aq2yIDkohhXi3aiMMgWb2W3ZZEWXcKcw3wDCpsRNb9mo66Q1SUJbud0WNZ3hLj3+QNsS9pUuvEooAlu9DcRDyibv+wTKna+nlt7ly3RTPZby8bCHAVOyxY/ALqcN1oR7z9u3a0kyIJa5lMEiEsbNQmFfdqJ3hozIQdaGTMiUYd9FSwKq0bubIG3mTpvr/vfLKxX6OpgHsDyoIdn20ZiWvC5KAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4KfzDITMcT/dMOtgAorjEMl11ILAgKuBKO0ANvlr+DU=; b=akTM6LAeYJ651LB9z6xZtklRHFDNgmroNdkp0+eVw8koa4rLmVYoKBycV3nCULl/2xibUxDjE5Z5mFsF3BM9sMMPimQwTuCfAsSADSfo5WM0LkpwcdBTJI1iX7aD/k/QdKtx7lmFRqtSWXAKezWE8vIByBOdFDsEX9lQrfK7MTGMsBogI/jjZDXSJbYIL3006zyo0mfjwj1XzoOPTTA/J66OX+4ruC8IDp7FMXLsBTKT0hx5wtNzPGOkrK842tNd/uTIOv8Kom5CAZ3jJ9iIPUm12pnzwYbYlw+wtmdETlqrL8veUfMY/iDUjbkczkRLHDvB2mTQ5rufbfGmzRdbkw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4KfzDITMcT/dMOtgAorjEMl11ILAgKuBKO0ANvlr+DU=; b=qKIhuRu1JOipTw/ZnugRENikTkV1L/5ZjgjpuKke1u71whRemrs8gHvJjKpjyGmOS22CWnmD3zgUmc/gZhzwssMhhYgiJkaqmhymnyWjSB3Wh/OlIIIvzvjebbS5yWLO6Y6hOYaySy2cq2ayhc53Elx1AW8Av/cm28nyrYL0Cnf5JW/7OMtvIGKBVwSTcUZ/CqqlBPdDvBZrW2uAYA0xO8RfOPsBP3t0M84GWtncSaMIQD6U3AxU1I5TM9OepkhLecI/lUgnwG6yM6LVWnot0mq+to/AnnOlNn0cuXGTnUysMbKKxN+xJZEWHELQl7pRBDoti/6tLa2hFRD+EyifjQ== Received: from CH5PR02CA0017.namprd02.prod.outlook.com (2603:10b6:610:1ed::19) by PH7PR12MB8179.namprd12.prod.outlook.com (2603:10b6:510:2b8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.7; Thu, 27 Aug 2026 20:07:30 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::82) by CH5PR02CA0017.outlook.office365.com (2603:10b6:610:1ed::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:29 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:03 -0600 From: To: CC: Chris Laplante Subject: [PATCH 09/11] runqueue: wait for covered tasks before setscene Date: Thu, 27 Aug 2026 16:06:01 -0400 Message-ID: <20260827200603.688796-10-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|PH7PR12MB8179:EE_ X-MS-Office365-Filtering-Correlation-Id: 196bd5cd-a237-4ff6-c16d-08df0476d2e9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700016|82310400026|376014|23010399003|18002099003|22082099003|10067099003|11063799006|56012099006|6133799003; X-Microsoft-Antispam-Message-Info: 4CXwG4BoTYpr9vcZVea4Vs3WZs/tzcp+oyLudJlCY/kbHgasUc8WXJoHiP9bjY8mxgSTzA39dw4wZCUHKdz/ooJtsEeZ5YB9n/rKQK4gDlcnCq2IZF0wFkWTQAULjnaamnZDyR++HxWC6Ubg/fJYguv2rhHeRe592P10oG7YxRigvH4li+zpUIepy9I8WXwPCWJ07Qq+iR5Yu1VmJEdvtVgxMj/VZQWCcBEDN1AcA6oBOrEQMeJyn8Dea2nZnBaMDgrEH4IXp5aJub3tVyL3qC0q2pZxzvS/0wczqh7qAvddJewyyA0fMtH2SvBArMox7NOZJNqnIVRTD9lm186ihqnaem1YnHhnTukJIKEtVhDzU/E7giEZ1V0+aZMTZwwHlN1EfiaFkVIIbzYrCJIQ6nFFfSoj9wLXHj8HBtjjN5BJQtFjrmLUfsfyJqiJ52SeTH78OwAVP4uJ+6akY22U3s8H5Y0a0oHmBfjBeUvhyqLLfKFEOgGUQODJOv0aDOfV/mnVezMxjxHhpV0NEBK6FcOQjEcy7gH/y5PmNOgWqsxDxAzDUU/JjxtMPaNSmRhGQKe+pivfzdzvM45592PAwiNiRfLeO0Gs7CYK8YDM3U0CopWDUbJRn4ezG9svsiEEWoJqgcqubGHnuE+OTrTiTOIQFNgsTn4dXlbNDzoYNX3ox0+AJGvBGxAExghYtXNFQpiBkrzbab4kpfrcAqfcjg== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700016)(82310400026)(376014)(23010399003)(18002099003)(22082099003)(10067099003)(11063799006)(56012099006)(6133799003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 10aAme6QaP03E9JOL4pmAMZDLLQGiCC4RScME3ekEEAIe+L2WHDGKr3ShUeE/tYPKUi2He+Yy1g5OWgmzxoEC5G4XXcHMC7wh7pjhWxAO5yVD6MTSVCloF/SAh5rfQHXGTohHGufnu2lzXPIYIsF5VBbJnO4Rjf+D1sXLTOUURv4isPUzz1wbSneXyUJ9z+8HdlBWVLGxXku6rSfoDaqLbbWCRLwqN8P5OKx+fsiBz5SO8JnyZgX1eDq1wGY+osGxqrMlDyN5oXTCUBUIFXb/lX/THhhsztk0SFACxy1Jvn6WXobixUKsTFKwoSterP7n7EpjoRcW8z4lXIB/6Q3dp/0ISiSW80XZmfFJ/jFgb7CCxc71fOf2A3TZhnwIqkulc4rowVPY4zjAY6aVdIOv7IcbImUhlXF6/HLZ6c/MDAjcpE/m3+CPdO7Sz53Q8d4 X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:29.9813 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 196bd5cd-a237-4ff6-c16d-08df0476d2e9 X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8179 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20083 From: Chris Laplante The existing continue only affected the inner loop, allowing setscene execution while covered tasks were still running. Check the collection directly so candidate selection waits as intended. AI-Generated: GPT-5.6 Sol Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 826801855..7de6c8636 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -2252,9 +2252,8 @@ class RunQueueExecute: return True continue # If covered tasks are running, need to wait for them to complete - for t in self.sqdata.sq_covered_tasks[nexttask]: - if t in self.runq_running and t not in self.runq_complete: - continue + if any(t in self.runq_running and t not in self.runq_complete for t in self.sqdata.sq_covered_tasks[nexttask]): + continue if nexttask in self.sq_deferred: # Deferred tasks that were still deferred were skipped above so we now need to process logger.debug("Task %s no longer deferred" % nexttask) From patchwork Thu Aug 27 20:06:02 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96607 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F022C61DC4 for ; Thu, 27 Aug 2026 20:07:46 +0000 (UTC) Received: from BN1PR04CU002.outbound.protection.outlook.com (BN1PR04CU002.outbound.protection.outlook.com [52.101.56.39]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3296.1787861259500976342 for ; Thu, 27 Aug 2026 13:07:39 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=qmWtr5pk; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 52.101.56.39, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ekOcrHAy/bjDSaYb97sdgcr9498YO5z2r9kCUrONtvg9yCkajwocendKjHTZ/vkyG93LGC3yMiqZg4PXcW3b2/4/9zVr28SK0BF8y7/8fHNvOTpNQZ0693vbA5QzD7vKCMhEYJFP3HudFrPmF7lRbFxrcxpgW+LF6Buo5PAoQiBMf28IrLwJUukxk/p/v/C/hDoaZaycQezBKBPV2DBXI5hEaMzggmax9+3b4uNFMp+m4EJSa5a0J9M2x+j+CLkoLxpDXkNYYNFTz2rCxzoqYi4Y0Zn/sYbiFBK4DaYO420ujN/RbXgIyNXxjFVNNzF7Q7d3XZyOdEDmyr2u5a1fbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Ykq/7vYypGbZnsC8+zUfDZtVB0kwoJ4V97ca9UhNs9M=; b=hlLwmZQjG6tjXlxYWOK0FZL8/Y0eE0gpk0JQHqB6F46aRXzJoE/EsWhuu8lF0g7kmN1VTq0cCTeO/frSe9mhFUT2LNWWylxK6/p3OAfslA9kiKJxr0NgHYZCOCLCGkSBcCHrLfvpfYH+ZJDLfP3hWMzpMl5o80aJen+5fKt+WNYw9LNloeQk0DCA/0M6sqBHE5okG8UXtI9MLFZ4o60WXQiELuUPX8gPltFK6SXAx4S6w/iMT44EUigKv/eXquhowMHlBOQIUS798RxdqW/jM7+u6Z9q/iZUyn3e9bJy6AoA9taiGRffUcffP7h3Lt/Py/FmB8w7liTX4wAz+IrUrA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ykq/7vYypGbZnsC8+zUfDZtVB0kwoJ4V97ca9UhNs9M=; b=qmWtr5pk9vMMXBO4iovcehhAEFC86iCjitMapaAmFGZy1MsyXGbSUR5oljU6Cw3KdW+zeL3gcLB8mD+touf7hFATpMPB3EnGvY9fK8rRz/DBk/SQv7veQSE0UpBbhgdoMZkZuIws3xguS9w3T7Xt1qMJfCAfB+gUUn7D4JY0t3V0rer0mN0QZ2eM0NIkHLDc+v0/FzRxH2UF8EQb2533cDpPywEgG2qQfgqV7f7p2L3htczPv52EYLJpzSKYtC2BcQ133ct1VGHnnZrNWLLVcM7AEobKGAHlOs1vA3PWwt6Kx/e7DBfc0km7kTR5ElW5OT4G6JAbKZyTOhosxLPYug== Received: from CH5PR02CA0006.namprd02.prod.outlook.com (2603:10b6:610:1ed::16) by BY5PR12MB4131.namprd12.prod.outlook.com (2603:10b6:a03:212::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.10; Thu, 27 Aug 2026 20:07:31 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::21) by CH5PR02CA0006.outlook.office365.com (2603:10b6:610:1ed::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:30 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:30 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:04 -0600 From: To: CC: Chris Laplante Subject: [PATCH 10/11] runqueue: clean up dumpsigs polling Date: Thu, 27 Aug 2026 16:06:02 -0400 Message-ID: <20260827200603.688796-11-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|BY5PR12MB4131:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b80439d-9921-4a92-6ad1-08df0476d363 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|36860700016|376014|1800799024|82310400026|10067099003|6133799003|56012099006|11063799006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: ui/WL7KPe58VA5MPLqgVwLexTWyBTLmQ42i428Eor3nzO27MpiG6kS/QuWYm0n2L/QLTpLdNXyaH5V2hk8FhgDI6VrxSFQcEVV+bejQNZHz8Yx+FVeL6yykTniWGjtYGY1HgWe1ctqRQ5Ba1tb5MUO0GutvBpW8zTb04imgzJeVx+dCStbSUB22uLPP0UqbnLVvNfje3+78UEoag93A6bIUh1dM5ZvZav/UHURPsXG3hrI3e03SewlT2eLeouzelkWvG7vshH7pqLhJEJNaQezex4INIfQaWb07SLidy7WoxD8vWWSTPLOuPfweWUv8kBG1TsLo6svE7v6mz25YReRPaob05SaMVW3D4vvIiFjOv1WcWVGd6tIxu0mGR+Txm54Z1Roma0TX3QCD/fivKt+0HfWNjGPFX+Pu9Chdb50EuXXwpBzSrkMSiPdZishlwdT4y26Au0RaROyRx0NPaDCywwqkXdQzxQ4aqX7ibReB9N1b60mzWmxm6tFubfUrdNORh4UKqBgmbRrU5VTCxOao4WTQg4FEg7M7TDepcMNtWPeyylYu11Yk7h8lZDJnmF4IIKnopWQsGLjR4TAkUF54pJb4r+VdoMYclbXgiSQ0sYNImUKDd4xiCPSkZSCu4RByBIc85aOT0X8jFnB751mJJRVqrGluot2GlX6wgzIWBBjHA6A5gf2AtMloPqy0cYuDJ7sng5txFG+1gEoQQZw== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(36860700016)(376014)(1800799024)(82310400026)(10067099003)(6133799003)(56012099006)(11063799006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 626XsevPs3b0YGwDc4G9wWL3UkAJyVQWFXsh3k+Wkh4CVNM8haE5C+5wwKJlGnJMRcpqAgw0Qd2ZCZAY30UQ3rET48yoXihyP3rxzdcFi2vJlZ3cqatq3ajOyUkFX/+j00f8EI/ulLa4sXvSxAOmbTF/8zHMcNOHNhuPcxWNHU8UqH3JpyNaeDIKwd79jV572/lW6v4bUr2xlt40lf134V+H0NRnJuYR1VwkuDPKJrXEGfhEGPlBCflJfjWrwXf/ROD8pwidSgVJpofpg/0bUIX5SYcBq1LtDkLD2gUfCuB/bdJxBn1Ghp1bVGAZ4mwOFlVeB3ZYgm/+U8fj0LNKUNGeYfH83cBPFchbRxBADnM+8Q2jmk2SKIlfWJERTCX46krW53rwp5a4WpEP+7NGfxZ/rp9KDtqsR1339L06IfTqjL/Qy6cxEn/9mZuAoXYw X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:30.7675 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4b80439d-9921-4a92-6ad1-08df0476d363 X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4131 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20085 From: Chris Laplante Iterate over a shallow copy so removing completed processes cannot skip adjacent entries. AI-Generated: GPT-5.6 Sol Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 7de6c8636..43a7f17a6 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1724,7 +1724,7 @@ class RunQueue: return 1.0 - for q in self.dumpsigs_launched: + for q in self.dumpsigs_launched.copy(): # The finished processes are joined when calling is_alive() if not q.is_alive(): self.dumpsigs_launched.remove(q) @@ -1733,7 +1733,7 @@ class RunQueue: return 1.0 for p in self.dumpsigs_launched: - p.join() + p.join() bb.parse.siggen.dump_sigs(self.rqdata.dataCaches, options) From patchwork Thu Aug 27 20:06:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "chris.laplante@agilent.com" X-Patchwork-Id: 96608 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C0EFC61DB9 for ; Thu, 27 Aug 2026 20:07:46 +0000 (UTC) Received: from CH4PR04CU002.outbound.protection.outlook.com (CH4PR04CU002.outbound.protection.outlook.com [40.107.201.1]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.3448.1787861256208083441 for ; Thu, 27 Aug 2026 13:07:36 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=vlPgWVV0; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: agilent.com, ip: 40.107.201.1, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Zpy/GcH7RyvaHZf7r6r8lPl3lw8U1Pb0jX9ITvuis3cdXxS/FbAYj7ogYqQVeyiXnhZpTJeG+DCQ9VZtITgDBZZ+/0LSHLlenunrv7LCs4c1/85sgOy62cqbPQ+kQhi3FoBK7WV4D5T1UJBcCrB5IIVuaxl98v1vh5iGt22tf55RXH4wW7CfgoyrV2Ncs67NxtsG1JuHDbL2ysnod6pQPgOw1lRzkcZABTBvv266U/k/4XhDEng7zTjrfc8DXE9xdvB+2h3Lnpu9JTwkgECo1+nn7cy8PhcI7WFXRcEGdAqBoD+uD3hJeZi+DXDVfIUQR5/ygbVKV6ieE9ko9wvm1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VuxKuLzF0TiJVELO+oYIGtQ74baDeOWsU8wyHILqZQQ=; b=JDlI1TTRc85g8MXLUb8f68qO+K1TtBQZvAQ5tKC3qZCd6s1b7JI8mmWIoubpncJ9rZHHuSGFgosCUea37HV/bZpUWEbvVI4zlULIhu8lkjez8IxHd8miNho2KwKGGjHO/ihLXHbX9gFeuUkQbCs3Clzlalr3bTz0mMaLfciUpDhNjq+uHj5ZN8sUsfhEjZQV0bZM9dWeoXqQgAeJkly4CPQAEa0OmWMdUZ+eRkBkmGq9vkvrY83PGrX5L29Xhk+amWoveX50JTTIl/UoUJOj/w0JbISDVIur4qQgs3TVKVQJBMLHD1sH864VX56fYsbudfEh4PnDMiNTw75fo7Uw4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.39) smtp.rcpttodomain=lists.openembedded.org smtp.mailfrom=agilent.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=agilent.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agilent.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VuxKuLzF0TiJVELO+oYIGtQ74baDeOWsU8wyHILqZQQ=; b=vlPgWVV0fReI2BpJrwXL3JR64iBOoA1j76QC76ZCAdNp8pi2M+EJjX/bKp945IOS8ZChracYve49pC/pBxDb/Zd8BdkdeH/1dA1wDmbE8IREFNOyrDJj4rZq/dHJF9d+fKyRWSnUCHel0UTtd6klAHJZVZbB9yBc1/dzyZ4qsD9yTlUFqPw0Qezm4YvNZmRNJZyDcFCSjAz539ts5s0kxB3wXhNqrteALCI4VVHySL9oEaj3599LiVoI4mkdn3K9d9osgt/GBhNS48cz8tdiF8GxDAQHUAmTIFcM8rR86kkqpu28kdTbjcJTSAXonPgLf7Q6FSwiebdzIarCKNX9Zg== Received: from CH5PR02CA0012.namprd02.prod.outlook.com (2603:10b6:610:1ed::11) by CH3PR12MB8548.namprd12.prod.outlook.com (2603:10b6:610:165::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.10; Thu, 27 Aug 2026 20:07:31 +0000 Received: from MN1PEPF0000ECD7.namprd02.prod.outlook.com (2603:10b6:610:1ed:cafe::99) by CH5PR02CA0012.outlook.office365.com (2603:10b6:610:1ed::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.360.10 via Frontend Transport; Thu, 27 Aug 2026 20:07:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.39) smtp.mailfrom=agilent.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=agilent.com; Received-SPF: Pass (protection.outlook.com: domain of agilent.com designates 192.25.218.39 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.39; helo=wpcosapexchedg6.windmz.agilent.com; pr=C Received: from wpcosapexchedg6.windmz.agilent.com (192.25.218.39) by MN1PEPF0000ECD7.mail.protection.outlook.com (10.167.242.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.382.8 via Frontend Transport; Thu, 27 Aug 2026 20:07:31 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.5) by edgeappmail.agilent.com (192.25.218.39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 27 Aug 2026 14:07:04 -0600 From: To: CC: Chris Laplante Subject: [PATCH 11/11] runqueue: report memory pressure limit correctly Date: Thu, 27 Aug 2026 16:06:03 -0400 Message-ID: <20260827200603.688796-12-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827200603.688796-1-chris.laplante@agilent.com> References: <20260827200603.688796-1-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD7:EE_|CH3PR12MB8548:EE_ X-MS-Office365-Filtering-Correlation-Id: 98290187-5480-4c87-401e-08df0476d3e5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|36860700016|23010399003|82310400026|10067099003|6133799003|18002099003|22082099003|11063799006|56012099006; X-Microsoft-Antispam-Message-Info: fErDfZ0lRXGNwWbWWAKS/3IbIP2BQ74Ql/dqzEm8LW6+s5dbidxC3cm89g6EVysD6sHQGDEcbvA1JVRQ92iy1n2HJEr8Vkqs0lyU69dPuM4NQkR8rRSN5ATqE9qbAgi8WzRnj+54QsNF2VwcuXEzW94Pm9h52YLzXS4J7MtBCDnyjLAYAfRt8Cf0tZ7c8q5MyEb939tZQt/zpnYiPursJSSPh+2n7sbNDSIHJHwOVuzLooKrSNLJUxGh0xusd3A56UbXgydCWinShSO49uIVGePUruoiHHMauU6ckxtm6B8YxK5n88cW5W9l3XcDoXEEqWwgQJ3yXOfx2SuTC0T+oudoosrrz/kv4oD0zoHawE7aKFQof3tTtTDAoeZ8Wg6zjRva7cznLyQ5yFjEp+Sducuw7Fw9WoQfpbFoCL9Ata78uFCYSpdUo0qzgidw8fKZAq/co1KBypF9ODOgzVop95VmPUJztGYwX+zDXQzr2eCAIkPptg22+MR8b2910kMJVu5IZ61ZhfoDSpELz3565IQGsdlIgKfYCThIcCtIu/A7LI1tUTU8Wlj2bLVsXZBWanWFAM+ciB43tjWkpgrGgyW4oo2DLoVdO5JvtMpRo9SeoAAXcOVnOLfLa8VSANv4dnC0MijudQCLxdIKKX6bO59w9TPOv9mWtU1uU+j1sPUVi4vElpxuZQsTaV8h8KdXV9f96PK0LmnpP1HSJxIkRw== X-Forefront-Antispam-Report: CIP:192.25.218.39;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg6.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(1800799024)(36860700016)(23010399003)(82310400026)(10067099003)(6133799003)(18002099003)(22082099003)(11063799006)(56012099006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: C1gqo7c7qO3DdMqIoyc2SNcYlZwAkTpy6jFrt+ga2F75Pp1JXflydr19UcKsY5ClsdmLGnKlEEiLbfJ5zDRboESPZ2TppR80MZ0yDMnjy+4WjDmku7XhWqVLXYL70ArhyR+bhSVJanWbs/YkElRiNI4/RUlTDSuQDc+bogoTDduuaGXYC0oxKvNfIi3exO4zXJYQdExJjz+0u9shbibuDg87dnbZTnWOOtE0eFSey2eoxSkPx/p9EKE8Wl8lQPLLNe7ywUDnzc9zw2x94G+q2W994NPmO8cVYoaUlFY2L2h+32MTdwAO2zOW6qvc4GJeU1zpxvGahWZ7S2jGyrYRsHe+VzzrBBtj2MVuUA5XVxWwHM3ELg0kdIcUJctVSWUhurj6bNakrARhlnlZln9nxdEswRqu8TlAWItYJObl0iqyePNG384HRruKbGjY0k7o X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:07:31.6094 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 98290187-5480-4c87-401e-08df0476d3e5 X-MS-Exchange-CrossTenant-Id: a9c0bc09-8b46-4206-9351-2ba12fb4a5c0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a9c0bc09-8b46-4206-9351-2ba12fb4a5c0;Ip=[192.25.218.39];Helo=[wpcosapexchedg6.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-MN1PEPF0000ECD7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8548 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 27 Aug 2026 20:07:46 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20084 From: Chris Laplante The BB_PRESSURE_MAX_MEMORY upper-limit warning displayed max_io_pressure instead of the configured memory pressure value. AI-Generated: GPT-5.6 Sol Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 43a7f17a6..e317ea5cd 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -1924,7 +1924,7 @@ class RunQueueExecute: if self.max_memory_pressure < lower_limit: bb.fatal("Invalid BB_PRESSURE_MAX_MEMORY %s, minimum value is %s." % (self.max_memory_pressure, lower_limit)) if self.max_memory_pressure > upper_limit: - bb.warn("Your build will be largely unregulated since BB_PRESSURE_MAX_MEMORY is set to %s. It is very unlikely that such high pressure will be experienced." % (self.max_io_pressure)) + bb.warn("Your build will be largely unregulated since BB_PRESSURE_MAX_MEMORY is set to %s. It is very unlikely that such high pressure will be experienced." % (self.max_memory_pressure)) if self.max_loadfactor: self.max_loadfactor = float(self.max_loadfactor)