From patchwork Thu Aug 27 20:17:11 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: 96611 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 9C05DC61DC7 for ; Thu, 27 Aug 2026 20:17:52 +0000 (UTC) Received: from BYAPR05CU005.outbound.protection.outlook.com (BYAPR05CU005.outbound.protection.outlook.com [52.101.85.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3645.1787861867555201412 for ; Thu, 27 Aug 2026 13:17:47 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=iQrvr+Pg; 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.85.56, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=on1PmEDLD6v97FGxjRP0gRNAvUNCuMXL7YRjhXsP53raUFImHIdgtHNkiDM5JUcHkoBqEkw2391J5njHZfCIcK8HJlTmEzECypBDvtWc1QLwEadUAhvEJDvJLElmSK9Hz/TWnUYsgP7aw1IW4uSv2LkC/K3m08zwEs8MlWCxUPuESVN9c5aB82p/W6BZ7t4zNdH6lqwWJASjArxKDUQ3b7Jv0d5DXjPkgQVsehuD+0Nwn3FS1Huon26WTb+BGFDV7duK92qF6nJC32xKt6AlqYF4Dui/O1erAz7V6qcYblpDEQUWtkwK/R9ctcz+M0su14OTEW0rkMJFsRed/HXVBg== 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=a0SAnNuD9ue5ZfzXJA4NpM5itxE5+jwedWFwQ6M41dLQ1WDALrqHFARJecEaGzNgThsOZG0wGk8ug1ZwI56rGMkCSPDaNWW4yxsfB//LONkbfuM9nz28FXmDomYPHO0EJi57vOPvSSgDgF2gLT4qrnBxYcaDvOlvluVMK7ZmQxRjCrdRgY3VaOV3jBSoJ8ahSOjd9Jc0Q9d0H0Agfp6HZ4vHPRADe8mtYtL/XCpJ71QeHOzX+M3msyLO2YbUb2vcS3Bn2VobpsBnnwdOTt3WkNKsTr0WNUqQN7p9A2RhbBomasRiTq71gDUNTIJiBWoN5FSayEyAQYCuZz1E9cbGnA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=iQrvr+PgABOLldg15L169UyiIBWqFzV+im4dSXlBcCx2gwTFbxJtJVh1uKna4njwPW77geaKR2G4f8Zl/r07PKaJyLQSTiW592L2tr6w8bN8NkEtbFAosL9dcT2q8X3kSJt6ZzSp7HpDLOpzfBI5Nky6E6u1xsa1kcy59tYjwXHE7HcC67CSlpGysL1DHJ54a7bHbS4Hl1j5qfmd0qlVHNa2P5h6lZQ2Qbwu8Ceq9Bwi2yVGnPeK02R405mse3WDEv9Bwx1koeBdvnoZ83C1Axpr80DHlX5AdxmHBVjxCkJN9b1dNYCUUpM+0eKlbeWas9/fHmz7qauEaMKii99hcA== Received: from BN9PR03CA0298.namprd03.prod.outlook.com (2603:10b6:408:f5::33) by CY5PR12MB6033.namprd12.prod.outlook.com (2603:10b6:930:2f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.339.9; Thu, 27 Aug 2026 20:17:40 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::46) by BN9PR03CA0298.outlook.office365.com (2603:10b6:408:f5::33) 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:17:40 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:40 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:31 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 01/11] runqueue: remove unused attributes/variables Date: Thu, 27 Aug 2026 16:17:11 -0400 Message-ID: <20260827201720.698482-3-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|CY5PR12MB6033:EE_ X-MS-Office365-Filtering-Correlation-Id: de2b69c1-7117-4fab-3d53-08df04783ed9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|36860700016|376014|82310400026|1800799024|56012099006|6133799003|10067099003|22082099003|18002099003|11063799006; X-Microsoft-Antispam-Message-Info: ngcroubfEMkfUPZ8nTJtjSXAkSMVhWtC0fJsRBAwQui/NQospWGLdPuVifYxhzOmKnjC6zYIebVpg1WaQZV5kwWsOpvBTR3QyNi7anLub7DFnj7xc8O8XG/RjzGzrxqDYeXsQdEqtqGHe29eflKGQ8ECw3b/FVtn5VwcnUef1SHszz0lWwVjY64wjkblfXBQipO4xT1LAq27p+A+nt0fjzEHBAGPXaJVFCyfS402RjQyGjk+5TkBnsmza0L2gAGL6zEU2dYufi4rgBqKHHxs0NrI0NG282z9UCyCwHhtGOuEVAnalMB4p9EMBgmxbXYWCQ6x9Ahf6iDhXCZv8WV+DEmEs3OlfZfsNSwxG6ICViYhOKpjURshrLM41E2tT6riHOBUyD11zEegLPBTpmgd2bcyHJPQV+3w9ZypZj1V3dQfEBJALLb45xQbjZS5lyhZehesK5UPVkfg7opWbm2Q/KGaDkY2JyPM65loiSAYWUTSYut1vfeTt6+o2DiBOvylfXEGAdjZmvZreN3nirjUNj+zsIXRWoOigxHvpf2UbJHFnJ0VX9D/tHCMQ83rXzusl4/tq77YlVu0zdI0K9OZbkjS5Hz+LenKEHLQ+DUryNaeVcbRZQig93WlzvAZoQjJks8GYnwtD+3rVaLUBlsd0WxyokiHX0Ezcblzoj23SHELh+UokQBRSk68zH3KrhQVPyhl4zb/DtmNQnWdpWFGqA== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(36860700016)(376014)(82310400026)(1800799024)(56012099006)(6133799003)(10067099003)(22082099003)(18002099003)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: alvjufsJYAti4BM94fqqaefhGoGRWUg2jWCf7tWvBUhT65NcfWiGV35BZ02CCpzh3OYBbPdrxPXppICVIUb8A4RxBVfQj/YswFIAo4FOFbC3UYALtFEOBHUwqqmKE/5jjGG1eO4A8aenhMo+zBIx43w9cTG6CKDoUVDxJpw+/YtUhm14x+1oEbcM9cLwmwd07OL3KZk2X65IdrBY12eyp9ks8O0Yo1CwmqVeFieVwNPc7uY2HYFFtuBqCKSMFpaVKw8bIbIlS8hM/RjKnqyqlXPeoFO+MFe6zN3x0g/He+knOqynRkdmhK08lmvQ8LkEgVYDQt3POlmmrHL1JtNS9gdzlplsDN2KKuQLCELTAreQzGv41uyqe0Ba7szxYiSwlaFk6yAAtEaxRMSVfOVNdqimE6tLRPvSsUkNKavvWaWsKcfJLLRe9LNjT8N/3Dem X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:40.5442 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: de2b69c1-7117-4fab-3d53-08df04783ed9 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR12MB6033 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:17:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20089 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:17:12 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: 96610 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 7C448C61DB9 for ; Thu, 27 Aug 2026 20:17:52 +0000 (UTC) Received: from CH5PR02CU005.outbound.protection.outlook.com (CH5PR02CU005.outbound.protection.outlook.com [40.107.200.33]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3643.1787861866812070188 for ; Thu, 27 Aug 2026 13:17:46 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=eWdSjZ9g; 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.33, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ldnew1wRJvaALKGtoc358FOX6tHQ7EmUinR0lDGthSrrzQ3rh8VLB8XgZOhWf2hf7G5uTKjBWu8mnyZK2emgY75kNt8aeA9WZw5Igu7jaa3coTSlD59X4OEr0j69rFxs90/w4/ULwff36+dPxFYr79ytIrL5QSeYiOJwZrQbigh9ILsEnOiBQX5nkbZb9ODdTtMYzVQUnYGpQsuPvmQjHUfziwgVSit8eJqOUx/bYsxXuMt26fyzsFuqwyavVHIXyhIOoO0/U36u7fveKuWIHfTpAyI0q+BIyq6xqG3rRl3NtyjE4Iii5NAs5Z5saHjKfdoYFxUSwHKW9r1jNErgEQ== 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=BsVLj8HrquaT9Fx632ovCc7NI9wWqezwVmht+Ed3+WJt73DSF3a3qEVAIWJsR/PxThawAyFa0PeV7lbF01poc9KVuxCeld3jseDwbtx2iXyvFWKq8p0V19gdq63mTITdEdlpkQJd8ki47j+rUIKwzpxknwVOTjezMpcvAXzdSGFx1l3lDmSn2J9l73mZPW0/tTfM0HQiG5MpUNtNjaQ/hyu0KX0F8Ykhxn1sb4Nx76/43kckz0ADrf/ejoRtJhENnzsFyc2V3+XU8ssBOHY+ARKW5YYiV4cKXZ9BvhYwEodT45Syp+ayyCZ7Su/vN6wt2U1K/as23+jw/76dM9cbfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=eWdSjZ9ghSgoGUvinEB+v8qdVFXKCYJl8+i8Yq3xQQ265ktvKOHHa/65uMucpTXkEjfFcMQX1ntwTRtM8Pb3QayR6htEXjWMKwQGPNvIU3TSYoctqXovitHn+xK8+0oNpzHybmr6I2zWkT8wMEAUUB+XkaZBTD5Pjt9vXoZguQrUJf04Z4uiHKsQsPwqyBPsdGTlviAZTPBaVyqFmEkZ7MZTN6EWW7uRXT3ySBG9oJl2SAXDM8bNRFMGhYe2hsnErPit9rwwDSQN46kZTYmtLILHtwXO+5nmR/4gh0XMgV0YzpG/qhTfYcGDbxBVmmlM67TXWk8zGNGfATIFXSO4OA== Received: from BN9PR03CA0292.namprd03.prod.outlook.com (2603:10b6:408:f5::27) by BN7PPFFF39339DD.namprd12.prod.outlook.com (2603:10b6:40f:fc02::6eb) 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:17:41 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::55) by BN9PR03CA0292.outlook.office365.com (2603:10b6:408:f5::27) 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:17:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:41 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:31 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 02/11] runqueue: remove unused RunQueueExecute.sorted_setscene_tids; declare setscene_tids_generator in __init__ Date: Thu, 27 Aug 2026 16:17:12 -0400 Message-ID: <20260827201720.698482-4-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|BN7PPFFF39339DD:EE_ X-MS-Office365-Filtering-Correlation-Id: 7410fedd-56cd-4ab1-02a1-08df04783f4e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|82310400026|1800799024|376014|36860700016|10067099003|6133799003|18002099003|22082099003|11063799006|56012099006; X-Microsoft-Antispam-Message-Info: Ttn/AFh37JYFbnqTssV+C1N/OIKrwtxUUTitRGUwAwRp8qair/QV+cOwuNE3z/7Ck4Rx28aOlHSNezwlgUAMmLv78A4RFDaG2J1kSZ1LXKKn7JcnBf/LqK4+s/+WooZIYlLozydygg5/sZ4tGxZsexxNzgHyVadQK8+Gvn09OXZCDIyUqlXtpIu9zeshfACxwZT5f3ltnJ280Pg3c024YkQ19HU509VEIo5NednSLmnQtFHZEjxJ58WNJxxbVpZY1dYKiHjvsncELIn4vuFX2f1lfCZqHmZCUJdB66RItfLdG6OXz7SR0oyF9PMhjjsUJMclvd0APtbBHPRuTfckFt/oTtuOuBfjMQJ5MggAZeowXBbvWBnzDNZlE9kZ8CY67gFzauaKqASmobBvmEoH6XJWfcE1Mgh1w0uOBsIQGW7JCX/Rv5WiKtZK+Vqy1+3wfyvMdi/31zbpHmy45EnP4Ha6lppxfaFR5gtzwIF2MLERP5c3xi/jv/RAEb61WveyoAxn/fAXXqthltVlCR5OQgk4Ta02go4l5vDm7i2KK+XlsB6dQDyUqdVXx+UHRNl2OrySCbszinNcgq0LH1cI1C2RAqBLZSlBqk8KLSU7OBsYfJkc/Yn4P0KzH7Tg0yr//83YXcWO4h4tFwYdndfVz+zpa/uzJYU0MJreTpq1wQDFDlT5gh6eUxkms5DdaWVnaqLrIB+T0hcLuJYIn9W1LA== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(82310400026)(1800799024)(376014)(36860700016)(10067099003)(6133799003)(18002099003)(22082099003)(11063799006)(56012099006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5DbMCOeQuR3J9K/wIXcMooHXD3oBb8H+EsR8Qvas4d8joUQpCoR1O0SjaOQ/0JB6xnjuBWsgW/QiGQ9PEokuM+Mcdi8Pr5w03k8VoL/PEscN0qjkVr8xPdyL2IsHiotWmshVLZhMhFuqqWBUVrhhruFWKaKkuoXr+/w+AhDQK7qJ1pRTW9tNwy0zGfB3viPW/ALf+VOJhVtxboznVhUVjcW4tB+DtNypNXUUg/C11BL+as5KT5UseFzgsGvynuogm4q8uf+qj2iYtcNm6/3n9Sq09605iEC+ySH/orfsDXF/sNRdcBUuKvdfKiX3usjnQGJVyxGy4XgUtbD2KUfaAznSPpjPL05IJa9jojvNNn2szqBck9XpCdMWM2bviq6P8EcMi/cep+gVrFWMf702n1LyF8fe66zrhL3yTWHXkhzHF4VnCO7Hm1kODfmeNinp X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:41.3084 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7410fedd-56cd-4ab1-02a1-08df04783f4e 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PPFFF39339DD 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:17:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20088 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:17:13 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: 96612 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 AEFDDC61DC4 for ; Thu, 27 Aug 2026 20:17:52 +0000 (UTC) Received: from SA9PR02CU001.outbound.protection.outlook.com (SA9PR02CU001.outbound.protection.outlook.com [40.93.196.58]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.3788.1787861870238931673 for ; Thu, 27 Aug 2026 13:17:50 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=tW6gLiV1; 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.58, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=chLx/v06M9qHy0Ge+A//W9BNdHDBrKXomAyckrx1ds4wh+Tc5aZAyWsPQ3492AyluGxI19R171Puug7CHDQiZfcWGv3c6uZQrxadRZ6K2/uAyk0joNTPRebIuuW0IuNfnDt3lisdrzZTWYJRsaqgMGsK4Bm0qxfDcaS30RKL5SNkkWPJU2jH81qXIxTcUcCDCJF8LkwVsw1USJoAqNqU+QZJTZM2shl6epPxEXKr2OrzGFIgVExE9AFcvQxRZtYYaibafeltS/DdpcjmRhfzvVgzwrm3TSzjK68PQiQFVcyGqhX0Jvr6rLq37lRff1JCNGla5zeOEz3VyOAeEaza/A== 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=ol8PU67tdcqOlan5LFDvDaKfXTkrgQKdIkHpn9NmzTZhfJN+0rci4MUYy4pazRIkvt148fa5NapzFKgzWEddi7+Si+rwR4KOwsiz/ySungWI28G3dOlVfVY9qhV4YtO6d/WJ7U6U1yyX5odxhu6MTkrxp45TCpsikOkx9qCyR7EXG7icvl/VRzFOv08iCA6tBI/PSTRddhF4AJ0mKZcZYT7dzuWh83kfKwe8Hf5jpM9Z7C/s2ppSKsY48PxLi1vGCB97Np2t8OMDPQVA1fl99XQjIMjsrJFiIYrvvP4hm707vvS4qd0KrJ+T1U84pRFO7oLDYYUj5vfljAPqr9lPag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=tW6gLiV1l1YDjEsYwbmaBBppe0r9RCOzc85AqdRXx8KO7Dam3z0QqdF5V+/Fw+vUzIY0QCugwoxiKgL7ZNCVZ9nfAw8Q46qatKhk0MhEyYHUpFS6fv0LCqrdVXSj1GjOl2nINP8GbI+hg8v0UIBUXsi4/Udqa8IqOi4+Ot3ZH6DKfbCUXnz6O9qQU0cEiXNe8rFUcvxiGLy+u/qnEtW8edDCEJnH4ECjM2L6bCzT25yys6RA1JMUBRp4g6TFo1fuYNH4XJWsPIHODxZ57IVoyFD9c09a/tk61h+rNmFu0a4g1La6y3xwoj5XmXgrttqwr9IMScTDYyWK3m3cFv47iA== Received: from BN9PR03CA0278.namprd03.prod.outlook.com (2603:10b6:408:f5::13) by PH8PR12MB7184.namprd12.prod.outlook.com (2603:10b6:510:227::14) 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:17:42 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::72) by BN9PR03CA0278.outlook.office365.com (2603:10b6:408:f5::13) 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:17:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:41 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:32 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 03/11] runqueue: remove long-unused RunQueueData get_user_idstring/get_short_user_idstring Date: Thu, 27 Aug 2026 16:17:13 -0400 Message-ID: <20260827201720.698482-5-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|PH8PR12MB7184:EE_ X-MS-Office365-Filtering-Correlation-Id: 6bc8485f-d9f1-4f30-3690-08df04783f95 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|82310400026|36860700016|23010399003|10067099003|56012099006|11063799006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: 8PjbLDT6PsGACGXylMUL/dVYgRqpD4qYeMKsgZpwaHPScU/SMg2A85OMMS1BKHxKixzll0s/mZNUW4eCRKufrOpURKdYt+PeDshNHO7mNdFAwYP/uFeCQ6Feo1MUTCu28ZEy/sP5iCbUd2barF+4AUwoA+5YlWkhtS2uecBKTvwsHsuwzMGMosgYQ8pv5W7joIK+6f8umUtRLdYJNSXSQzIgT6Ls+J63tkGQUk/Gtof3f+NEcDcwa5fU0vTgQppqAKAAWpopujWissmSJklFM9Ivo/Dfj2ouWLGNB+B/HAuLjr26+ajy4VhFEVmyyPAHn00Bcjt0dTWYPA3z0E7u7A1XH5fEGWALjYN4mPhMLYgXw5QxEIyVUFdU7yqvMczACGnDKSezDMccjUmkDja3D6AarvP4+L3IA+x03jtl7v6OCE+ztmATKdyDGvBk1eu3n2h8M80u6JtvQPVLVCN8GCF+W4g1CBDKSNRCUjiR0CfoOOMdjWydbTvOk+KlR7jw0+jIZM8iEQvStzqocR5/8Q1UMePa7zAKsd6O+gjrc0rPY4KDt1p+rypAzMXsvz93qqQTAYgd3VeTxsDRG1Hg+8MQDkrbWlA+YiOUroqT2t9DekalSi6UHFN+vex1mauzsGGysfgb7cWAqWbhpDv7BMVDgTRhQsietOkCLEfcoWphWw0iBuA2KGHIwkCcKDzj8PT7LuGrC0l0HS8++mpREg== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(376014)(82310400026)(36860700016)(23010399003)(10067099003)(56012099006)(11063799006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7nhX10+O8dH0NKGphsZSiCNQIeax3w/mtK1HhBuNjuIDOGzA6UU7dWamkvctExV+t00xmWkFJqkaZc4UdK578n7uZoolAdjvfDydHHtcG2+VzPDC7vHpnKXEBDtL+zPfBNatyJpa7TeXXiH97tqxqfoq6hx1Rdti1M0JDG2joXzats3G9hrU311U6nowVJOV9yHMJ4M5EMK8X2cXOLkP1gdbx+XzjaixfRkZhpfvCFRs0Txe0jbmD2LCAi1z/EV9guejQU2a05xkB8czWd1Uc9b9wGOgP9qGPagMiTXBcJwwrhtJkbncFPe+pkg0o4OVKyMjVdeBQCxz9jSo2x6eXH4B7H5R58Rm4yOqRY6xuyv2H7FCJowKrxhjm6mZz/nhMF7P+vVETrLer2Tew0ErDBXG6pMyfwXf7xuFC28d751fPLps/EuRcmjoTH6MwZ2Q X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:41.7808 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6bc8485f-d9f1-4f30-3690-08df04783f95 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH8PR12MB7184 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:17:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20090 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:17:14 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: 96614 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 A2F22C61DC4 for ; Thu, 27 Aug 2026 20:18:02 +0000 (UTC) Received: from SA9PR02CU001.outbound.protection.outlook.com (SA9PR02CU001.outbound.protection.outlook.com [40.93.196.32]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1.1787861874309629854 for ; Thu, 27 Aug 2026 13:17:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=ZIRroLfE; 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.32, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aR9TrGGqg/EHGWPU0EYwB9AuaAbe0qDkKLF6QBiAWhFeyfoEma+gpjAA8UF6LNbZOURulmjwX8yW1ho99HrHlJ5RA8MSOA4Ltc8yF86ZPjCieaAqqyeC2wA1IZqwPizsfTEr/lVg+MvNrWJ5d+b3tgai1JgwCKjMS+KJwIbGbDT/dIsfMFkfOxgQQ6GkEpQjhIqkW7891pDaF9od7lBse9BvvIyoTSpBV7Ek1Ttdxjgv+tAbz3uhJ05oed3GWYTvy+idhWPyA9Jm9P5ajTcH5x3VlHYal/MCu4A92zzPna85icEtR117Nnw6h1NKCc/NGhuyIBYla12RBLIIsBiq+g== 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=9uxSclEzWRj63LVbiAKe0kg5UFWa/yDLnAs4gMnXqdA=; b=vC1p/p1xorduiiMsqyPkHVxIJ7Ve6XWDWJ8RsX0Fy28uE545F9afVpel6xgwr4UBs93aD2m+ue2Q00+I7Ezguh2a6R0Xj0GX55ySjlbCJvycm90KnJVquJbGOMYy8svuz8hK2LLE5uz33H4OdLk1U4EqYAYJ+jLZh/8jiGuO+DW5VaoGrffvc2rxlg6uZYyDBjbumIP8wwPWgk+DEobnrCDWlW+sUfDNuG5DYgoLMjmkapezK/7xm1pFYOCGB3nKk+BVHaqvhYcIavaShdwy6A6jw2CKy6ZyzN93V0HufVQVeVYi2GPT2/mT+LRgKiJVRBo8WJjOz0ZUVxDebA8F9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=9uxSclEzWRj63LVbiAKe0kg5UFWa/yDLnAs4gMnXqdA=; b=ZIRroLfEsx1zRMutbGAKilSJEayGD3udnBxQ8zu5aS1R9l0qJMK44vMFgqmCVvdiy/4PdDRFq7TZ8yq4w+ld8v4X6awn4ACjr0yPHVjvz1r59/VMrYR3Bx2q4RxpchzoVu5OXKhwh2MROxd7zmjFGXCbNrJGr0JueRflYumFA+AzkkkPvrqPbNP924AdC81khpbeB31AfkSfXiw3h0YiH5MQ/T7d6dew49C7rjTqqwqCStKW2454mR595FekoQhBF5CGw1dpPZ6qQtEZye5uBnn7v9dq878HPyhb7eP2rbNxzf7uhu3ZoSPC7XaK2ZnRhfFE+CFSMz4GOqoR8Y25gA== Received: from BN9PR03CA0292.namprd03.prod.outlook.com (2603:10b6:408:f5::27) by CH3PR12MB9078.namprd12.prod.outlook.com (2603:10b6:610:196::11) 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:17:45 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::90) by BN9PR03CA0292.outlook.office365.com (2603:10b6:408:f5::27) 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:17:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:45 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:32 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 04/11] runqueue: cleanup imports Date: Thu, 27 Aug 2026 16:17:14 -0400 Message-ID: <20260827201720.698482-6-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|CH3PR12MB9078:EE_ X-MS-Office365-Filtering-Correlation-Id: 8dc6d748-cbc1-4c85-316a-08df047841cf 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: FvjbiRvG9Tk3usGv9iyS/IN8w07bJUr6oytPkRGpNdJc+pwCenB5w6Ev1tMbCATZ3f5Mi/MEpSDv6HjJ+EXEGCAu0d5rhYFr66/T/t3398SghPsEQfXAmVMICynTtxNQ0Aw/gZ7h/FRuQrKpC0DZ0jVbimgOI8fecHFHk6IqzU4gBj37EUTRRVP1lFWAIF7kOkfpWqCxjmykl10C6c6rWsk6mZ7eXpVjwZOONPXvjFx1j49eAkKEnzi0F/P7OPvWfyKE1UDL68Bj4tXznMjt8O0bDlqADi/GBXNclD1HA8JrEnYWx/aaXFPInuRMw9Tekedymfhvw5zEBrEdZ1hIqUJdlNw5qMPUsyCdhTyGu9KQJfOJMYTemOYwGC0zKD2e+o7EpSMY4OvOAn7oNUnwKNd5fBykie6yLAEkK5NzxoR2SWOc9D5Hgvl346NljDgakpITDRw0KBb0rhC4zDftKFx+7jMs5IiaWeHZGjUDxXi44RX0zAFsiUKpJZuhFnca3OginVFiBs6HhxUzJbFLDPb3Lq7CpMVHtNi9GTbLFZgvmkXIWGbO1+cDPkA5ACt2GAHK+Uy8eYE7GpltJZADoEl7CJBNPCymRav8jebil+xXBD+r8FE6Ho7UOShEqbwv1c+hVHbz8YxokVgzcu6UOGM0a9Tf6oebejYm10NbNU/rvXX0d2o8OCQPFWzeYaTk4NlRMs6q4nCpBTjwd44jFQ== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.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: J9FU2Ajft23f0j1hov2IxTvhBjLiGPNqmq+BOkadnFmg1OTuZoB+2s2TnloByxSGtu+/Qm+PoVplEpCavmYoZ7wW6Ru0a0aaEgsjsF+rWQz9dxEueeoN07jmAPQnQ2+fedLvzc3KCOoclr+mZC8vyUvk24obX8MrNYwsNCIaDoOT+O3GE6R3PpljLgj5Gg0c6IgMGqo5sUl6iUpmhcMaI6gm8EIAA0hMgs+BgUtHzcqmrZ/7WCnRBcXeCMGXfDcGCkfUeinPxRGJIq6gRD4mYPujolQkwRGXCfrW9xcdvLdexP0LqEZ3hoUAAV1QX3sU1SBeGva1tXhBe3zvM4BXfdGcQenCJuQJ6hZDUx3Oz6IX4cWDacfY01UhRzleiRmJWroVfkHQNpEAS/0rYHchC2fekkGgjEdsxcEE2yvNc3Rg2HRuRHlfqhrC4O/VfSrS X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:45.5217 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8dc6d748-cbc1-4c85-316a-08df047841cf 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB9078 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:18:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20091 From: Chris Laplante Import BitBake submodules explicitly. Import multiprocessing from bb because it is a proxy object rather than an importable submodule. AI-Generated: GPT-5.6 Sol Signed-off-by: Chris Laplante --- lib/bb/runqueue.py | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 4211c83ad..07f5d9fb1 100644 --- a/lib/bb/runqueue.py +++ b/lib/bb/runqueue.py @@ -18,16 +18,23 @@ 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 -Process = bb.multiprocessing.Process +import bb.build +import bb.cache +import bb.cooker +import bb.event +import bb.monitordisk +import bb.parse +import bb.progress +import bb.utils +from bb import multiprocessing + +Process = multiprocessing.Process bblogger = logging.getLogger("BitBake") logger = logging.getLogger("BitBake.RunQueue") @@ -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 @@ -1912,7 +1917,7 @@ class RunQueueExecute: self.max_loadfactor = float(self.max_loadfactor) if self.max_loadfactor <= 0: bb.fatal("Invalid BB_LOADFACTOR_MAX %s, needs to be greater than zero." % (self.max_loadfactor)) - + # List of setscene tasks which we've covered self.scenequeue_covered = set() # List of tasks which are covered (including setscene ones) From patchwork Thu Aug 27 20:17:15 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: 96618 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 148E7C61DD6 for ; Thu, 27 Aug 2026 20:18:03 +0000 (UTC) Received: from BN8PR05CU002.outbound.protection.outlook.com (BN8PR05CU002.outbound.protection.outlook.com [52.101.57.8]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1.1787861874374598388 for ; Thu, 27 Aug 2026 13:17:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=PBX7RDPU; 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.57.8, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CulRRwVlp7Y50o2GJHBbl1ctAK3VVzoGIPIwutSGhmtkSr5gcZ0CP6d+lGk9zjUOOSVpOn9OlVIA0w4Ed2n70OwZnfe6Sv9CTB9IzxFgYWBS2fYTZEWq8wQV8Dd2lmS/XNyS6r8QV0sR8qv7ArlT/044EGMh5E03KISDtA0QS/RzXa7bSC0ewrZB1y04pS3kLcRZGX38D1EPY2g/bRbHrSF5lSedonc3N9cqEfAocZAZ0ZYCqbUNLL5irXY7tfRIgqydv6rnrBL9d0mdw9PFJIDaks6FjYNl3hr3SMetVmmtRRnKPgEEO2e5uRwZoiFjTItSVJj+8CCYQeuoopul6A== 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=XBgyP2myOt72HfSSldZrgG0gOPSpBvxnTYQjY+aWZvg=; b=nr0o902Wo+9oRi9Mfii9yiHOpYmJ/J/PhaVUczLpDVkd2vkRTwO/QaEkwLU3DpsKAiR1DznCGL1mxsd1ueAFbGRtOAxmY77n71GLVkogY+PgZ7BdHQUvSrIfmkoM7jF+I4auuatLDtOYRQn7adymTJWyUizYfc6F4jDB5rjEJ2J89dgsK+mgY7cUzMxrQtmmcUGvgHE35daqupCgrBP97BZnWLzgIDv0LCjxQiXSUg4ZySX+NdWPF7D4bD9yFlr/T7dKTDoPwRFwFWBYG+2vB31swxLRrX5m1TE+n0NT3FyVAlRXZbRQhR26zsLGsdoFR9w/wMsjyVQLexz+ULEp6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=XBgyP2myOt72HfSSldZrgG0gOPSpBvxnTYQjY+aWZvg=; b=PBX7RDPU96pD/jEZ9xBNBirTV8rTAAW7e8PXCFW8n5E+zpmu+xwMSrmKgkww43Sdjnukn3eNBVL6s0lRHCCzhOXY/QytvzTPF2F3VxI5FV7Qvq6khVmNQTvLXJmeovfWvXj/eHVh/pwOL2GtBBeiyTfVHQyLwgkKpecLuQMRxTScVzxUv6I5LwsOlWuDBKVHdWX3nGQz3XowSdXB1wO/ksI8XVb6rzn2wpAjl4Eg/adudMerxpe+y6CevUpyFBi9JfLuUo9QE8XqvkDJ8gA6JNKRdEz4YM1cLscdscjUaLRGNBuBWHV6b+NgL8ZI72SSU32oTxUeQ/1gYxfNaljTKg== Received: from BN9PR03CA0283.namprd03.prod.outlook.com (2603:10b6:408:f5::18) by LV3PR12MB9143.namprd12.prod.outlook.com (2603:10b6:408:19e::11) 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:17:48 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::9c) by BN9PR03CA0283.outlook.office365.com (2603:10b6:408:f5::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:17:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:46 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:32 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 05/11] runqueue: remove RunQueueExecute.build_stamps2 which is never read Date: Thu, 27 Aug 2026 16:17:15 -0400 Message-ID: <20260827201720.698482-7-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|LV3PR12MB9143:EE_ X-MS-Office365-Filtering-Correlation-Id: 412b27a6-f81a-4ac5-6a5c-08df04784238 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|1800799024|36860700016|23010399003|6133799003|10067099003|56012099006|11063799006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: Dd4EVd0VF5/XoC6Ta217o+GKGzpGqBuOXA711YUGVTVDkSoAnA/k13BurYhKkRmx4wIEZymwUXTvZUHzXo57nz0PcB75E+8f6NjMnnENK7sXeHEkJp0b1hsx8c+hbQhsGfh+6uHKp3LgD/l05xi1NLaO0p2To1GHxIyTQm54wXbAWjVVpIzV9xstS+cccK9yKdAm5Et2O7E3RG/p540idVh56350uelAvdmnF5TkRwVfAXOyqd7phBO3aGdzKcUPhb250R1Mo+wykh2ccrol/4stof5MVvQWZopykC4gIRzk3aiGaZ/Rynp6nbojo2iVmN8MvX6RYo02+n53I3uUxd2mf4K9PPr0dfCM51v9VSQJveqciLOdiVBjcCNyMIj1ajIdcsSieLAb2oeXaEfvWn45QTOa9Gd75jLyi0pZIv31xkthF1qS4QwCKZVAyZBZ3QhmH/GtcCQoXxrq3fvSoH7jl6NgZzapFpy+caM6UsnCeZjUGaAKvEFMfXLbWdy2PA6epsk/kOCKBaLD+N+sbPtVC6cf6IX0GroLOWuKmiJZt5TSAXEZJfHXUQlIf2Yv3UdEgTL65mQ5KM99yHSCpra3pK1TfalcX8X+y3c0O+bs8f4UUH55/IsGCXfbBJuNLi9ucvP9KWMS9B7bNVw3oG0qOO/HlEjEGlvCLv5CMkn7mUdxMcIp6Ji3mU5p1kjnXkCKBIS9iWAbrHw68ElVzA== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(82310400026)(1800799024)(36860700016)(23010399003)(6133799003)(10067099003)(56012099006)(11063799006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: oahbnNxB7SEORgtLN0JmdRaM0en3NRWiOTem3rOSoTIHLUG/n1Had9nGrkFBP2fEi0BFg/D3cKud3xKgcyvjtronmSgnuj66BcDmxTXQjiIgfiu4HZUpBCYWpuCfSUc8BYJVGg0QmpfHKBxWd+N3yTNtKtdwjN4CD5NOc45Czee09xbPNVo5Y0qvfkc1vRktu0VlPSCheYhJixbiw5R/b7Qir7QcuxmAjGjFDpOWFZ2hfwhCu5U0tVjy5vEeQIUun5cYruTUCDPegM31j838PfTKrSivRQX9+ipoYg74lBiF3wyaX12fU1riXxaZ/G8KUpKSQQWDigKZfozBO0aMtNfaeC8x4qU9xy2ec47K7K3BhEGBl2VDVC1SA7rfBjqBjM1TAf+OY7s4utV6eEbPkWVHc6BdHEtjeQNiNx21a6Mj0Hj6zhMSeW6uvYrgXRIW X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:46.2081 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 412b27a6-f81a-4ac5-6a5c-08df04784238 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV3PR12MB9143 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:18:03 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20092 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 07f5d9fb1..5b92e405e 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:17:16 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: 96613 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 A4055C61DC7 for ; Thu, 27 Aug 2026 20:18:02 +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.msgproc01-g2.9.1787861881870796781 for ; Thu, 27 Aug 2026 13:18:01 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=LAV2oYB1; 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=kBct+4tLpSUwOP5ICFe4vsVkwpdetCuOONz/CEqTj1IKuFApd94GZDgxCnycQKdU1lw05QH3whwGV7ccsNIMNNg6cTCotD32skHjka217zQ0HT8Sa+Qcg90cfgwzZlZlEqOiWylIzzmx7SOCxiIvrBZ4nDI+suMBWROFFZhMOepjV4g3wJUcfSgUyHpH1ykXQO+EelN7+m/34B0UxW7OM3Zti10xsI4wTqvbz/RnNYZSYu2+BMIfa7jNypc+OENy+Wbtx5fWTdKx2GzjDLDAWRX4XVduPYBwEHj6VR4qEF929GBQ69y2LxyPnXn3p6vKDbQp4tKlg3o/GoPaApCiWA== 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=HINWt7VvDqEx3NOWX1yziqFi43eH+97hqeGD+AoUuPI=; b=RB11Yzs+661z1O9WCrxNe2kgX7BOqQ+iWdY2l0vR4CiKkXUbPPPMNoqi7fv/k4h7c9ttFMZuA8O8EcUrDYEJDGrHTkKCcEkr194zxgPA49eZdZ8f5gFLHp84U6/rryg2BXxLHFQ4iywHMh8hWI/8el6fTS8K6kaKcMjfcCWlO7ZP7wUmEWJyZM+Xh+fNEySgJ2BAMZpiI4EQPDYrCRRhFJtrHaBrfjQdfbs/qiYadL6CpnhmuKK55QaaW4SJaYNAIBV5KpUbqcPczH88iGg9AOAx5VG5VFybdvzPZ8+HarwQWXr0pmImDnAnhOnNIlGm+Enutzp+uaI8+t0eY5sEeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=HINWt7VvDqEx3NOWX1yziqFi43eH+97hqeGD+AoUuPI=; b=LAV2oYB1aFLzAxZP4W3mTnE/Psw6lbr29L2qV5D5SYkBEZR1KslSbic05VMJj4PyI5LMk2CLzSYR9kS2XDoapt+vqqGej8/MFyGwOJW/oWFKS2QrTXk6fAr/ptT2P5MJ99C8DLT8QZl/sxYhH9nNSdthEgeu2V+i+uL7SGK9QCQcq+hGQwVpil9GcfvcccypxliTZWWRG6lDKpwafPjubBinnmel/wFU8y7XzZ1BOGk0rbZhgHx+KsCDFNkm5JOhf93iEwVZKVNeJyo/FR5dvXjITgVW8y+LitfRDorK7CTzNbXfloSxd/AqObICFmLfgLVRmHMfCrKBroG7iartxw== Received: from BN9PR03CA0286.namprd03.prod.outlook.com (2603:10b6:408:f5::21) by CY8PR12MB7537.namprd12.prod.outlook.com (2603:10b6:930:94::18) 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:17:49 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::a4) by BN9PR03CA0286.outlook.office365.com (2603:10b6:408:f5::21) 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:17:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:48 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:33 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 06/11] runqueue: optimize construction of rev_prio_map Date: Thu, 27 Aug 2026 16:17:16 -0400 Message-ID: <20260827201720.698482-8-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|CY8PR12MB7537:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d1cac09-89d8-460b-1e64-08df04784392 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700016|23010399003|1800799024|376014|10067099003|3023799007|22082099003|18002099003|11063799006|56012099006; X-Microsoft-Antispam-Message-Info: uGNmluWVlxzYk0/L5YQXansUtP6RDCUS1TZzmAhlPhmWj8H7ICqolJp7dDRwyEgFMrJn1w2n4C3gy7bYBhdneBHbMkYjAXcsnOKs92WJekgwUvTq8qYpTKHsvpwUiYnUEF16SmHsTAG4TpmPUsfVy5llTuKZq2yU5IS0Un0he59hGDkHiD9LtME+VhIGLTXSimyIBGnqGhE1sTDl5BMHv2SEYXwY6oPDniw5+x6tdaRcYBtJWoSgZmXz1yaUQ8Iq2PoKU0InFZfFWgxXm1Y42UnVFsAj7Vsr0+Kuv0iFFoN6R5FO67r3R5XTCbdQ2rfGMq+dxqKZVBTMqr5dYSILs9Fr9ewIITI2KTQ5BgPPLVCFxYommrnWBWs18wqjl/OlgCtPEwmGNDco7j7ZttDmgH9ev8P4hgINt1Gt2JYLhXN78bNiIBvazGBgS1CKLCUIhRzqV0a7m8Ah1UNDLtft0xhZy6lT3dR43vdb3eA/AHaxo4tCrITadkJ3fQdR29rB4cjJF1mmqPubutRtiJAA9qA58vlvKHfcGIeWxV+lobwuRKJC7+RrHP2s1e3+7dqmczNjatV6UFXo1fMA3U1lGGmuMaRokUuNJQ5DjftDP3YRs9AOlqkRZqTaNgz2AVyDtVbWFTU8982T0/FnSi+FVRcZKw6zWuNvr+xWd2AYAy5Mbxd3qAL97nE9QTizkgeyHAva5kTuoZMpvtnvUItmhQ== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700016)(23010399003)(1800799024)(376014)(10067099003)(3023799007)(22082099003)(18002099003)(11063799006)(56012099006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ffA7zCSp2QYsRBeUsBXl2CtrdFe7h31cILG2+HBvFntzcK9Zz0eFrcieYKdTl6ZtsTY7LIW/VayOysvlaqlgty7uJeso0Gf3aK66EQqwhaKfapiqeMz0MULlKnmwuzeeM7S/kWARSs/T/W79CVEM1/EDBrSNXQ1Rjrhs9ocM8x8BvLi7+9NLhl6wpoW/osMdaCwW5YzUkT/20cuIsYv3i9XxJouR0RBduy86aPXMiNXVefiWtnApuoyDy5BayZuLlmz/pQMNjtPB97EIxeVksTzsMlJfKfrgMLb2CFba93Cf9ey+7+0Bezvv8js47LznslGKTrphERjONLSq9B1yUlJvQXcf+0OfxgdSpZpG0tzZbduUMQddRjVeLSe0Uigq8HAyWGBBsRHMnx34LlZZ4rb7RFyDiMwL64xnW/VB+drrZFjV4gtNCjKlL0Hqd6+y X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:48.4560 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d1cac09-89d8-460b-1e64-08df04784392 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7537 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:18:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20098 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 5b92e405e..54e1066a9 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:17:17 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: 96619 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 087A3C61DD4 for ; Thu, 27 Aug 2026 20:18:03 +0000 (UTC) Received: from BL2PR02CU003.outbound.protection.outlook.com (BL2PR02CU003.outbound.protection.outlook.com [52.101.52.50]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.3.1787861879132967784 for ; Thu, 27 Aug 2026 13:17:59 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=blVcbXIY; 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.52.50, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YIE9GBrwz/s8yfKAOx29IfMXsSBf8SC1L7GQ0DO+8gv/25O/9J6GjOZtfMmz4vFmYDKa5ZXE09M64+16g8yS6GjqNBZmawOCN/ETtawTJyelVMmafKqoHo+Qcet+K/E3dimFKTbPJnW4stpC3+ZPnoD9vhdfS/vMsni57AGYfZrdOHpfZK4Pfh8gEvAUEa+hpGdjZQzq8KXnnW4n66CKW/NRoDgFGifQUcUgPL7lU2Ns3KTuahLTvEbY4Ox1wtSLt4wfC9jO0HxBm1BxC2OFCvyvJgP8EhU/2QEMXImooPCdx1YMrPlhT6c/JFTWLltTcy06bnCctu9qs3rP9+j3OA== 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=mR317fy/4965oqi+ebBBlKCNyTPYO8mGTTc/KFf7IoY=; b=NMoU8DM7TfY5/w15KANd/J7Wp753DLPlv8mGUcv0deKCIvqfHCjLCRFhqfFcDokmLLTlE0emyYmk/+5oyp/84PVFDROG5EOER11XAuvUlftaEFBf2blMj+w4aqv7Mm/OXgjZY86qnKQMb53vws+NcJGM3YtUBMl8vQZxQoI/RcCJ/i942QQsdkJx3MpcqliepvIpkh2/o1quqIpqfZzEqqSdfW18Y8i5C7xkOjLqbzzFrsKP00DDnQ7Ck55oUUeHc405N2Px7R/ldz1h/QWwtw8T+zd9JuZ0Sdri9fztkt5RtLD1sVVMkFnZQZXcAtguuCBqISqKts6F1vYRct2xXw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=mR317fy/4965oqi+ebBBlKCNyTPYO8mGTTc/KFf7IoY=; b=blVcbXIYJqWn7EgcQxoN/HMHgNiKofYDCTucRuOhcssSYoM5GUbxZ1Jjx5jF2zi2i12WWnkfcptKJ5oSSUwcZFXPQP/sRsO2rpKkn1V4sbEejHRCb0+BWgo7InKTwFnQTOMs1ozvAZ9ePlNTXnkBAt11ebnOE512UkRAt5Ul3OqD/YeS9yTQEcljV3JPAgeKq1CAtwAxpjXt2MbbNKyfohQITSbGIrz1P+nI6IhHSrJO1UsFOoQCNmf05VMGXkR0MD8GReKoMOgiAIKSDEuRTV06UUnGNBZLZ+JzMeySupNJU6YG0wH0WwneckEwvkWghoo0kPhJSoKxH+aVNNAcVA== Received: from BN9PR03CA0298.namprd03.prod.outlook.com (2603:10b6:408:f5::33) by DM6PR12MB4139.namprd12.prod.outlook.com (2603:10b6:5:214::18) 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:17:49 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::46) by BN9PR03CA0298.outlook.office365.com (2603:10b6:408:f5::33) 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:17:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:49 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:33 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 07/11] runqueue: declare pressure/load attributes in RunQueueScheduler.__init__ rather than dynamically Date: Thu, 27 Aug 2026 16:17:17 -0400 Message-ID: <20260827201720.698482-9-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|DM6PR12MB4139:EE_ X-MS-Office365-Filtering-Correlation-Id: 2da5c407-7d78-45e1-8a48-08df04784426 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|36860700016|1800799024|23010399003|56012099006|10067099003|11063799006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: 7lWYuH8hHspk7Ehh5jc5FpCHYwy5CU81gT+umYBY4tpKwsn3nM/KMpx561SfWht0+XKp7EXwmmt/uc33WiJn8IAu81bM+1K+U/v1grf/jkgOucHWVTNJgye3LAIXRIUfFVuqXIQVNcXMLkhajebaJlIxus72O78/cI4ZIwfcCVfWM85vAou0cWW7RTVUeNOpkp8jnrB1fwLnyqon1cKK6e/3ffYh03QSTaojA0DZFRQfD4Yekax/KOIXHOE4KUFAgAii1q/weMsLhQllca2Xy12xsDoptTDW9rqF9nbD7VqigdR/Kjh+QbGevyH+K9JN9AiQNtonhIjmEypdJ/jFWP5qcx/rL6NqtFNA1m4i78k3egVR+gAWi6MuA0xZjaYysCV/0yArB4yWox2ozxynlcJn8S6NZQJv2BeonqxpZ8QRy6hFYZ5zFwGzenj8TcUZ7pC9t3ujibbnz69RHudFM9DGhBRj6VxBYhhEmlNVxyAxFtapTbf9AhL3rha+wEnYH4/9aHnJM2qdVBirT1gCf4rMx3e/2wqY0m92HbOoeSZAEyCKbC6eGeOoHxwK1CvcQsZJRLsPpx76MU3aHt3zUZuNJfQSWxoHQRwAWtlQwYUdDsrDGEHKPeBQjqcu64Y6ix/9IbdHUvPpmmuDE264RMY5jd4OkSmKr6idKWnUIOQuoHxt2mejn/N4kr1g6qJFDUQdTsD0w50F+eBLm/hJzQ== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(36860700016)(1800799024)(23010399003)(56012099006)(10067099003)(11063799006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: o9qIaVoAxYKGieEf3W+DcNrDohygvbbpSw79dfDMBj1u6CjDLzeefL0q2/cjhJKN1fsT8VrFyBfPWug8cuRrkT0IMQ+9h2wd6USEBL0WMp4EVOgcHf8/KSpsffRvddUssKxn6/gK09a2FXErDqeanQ9Wr+VTU1xKtHwZjqH9PSZEW4cvsJiaMBEID6TIqoeMR2f+Xz1Tnx7sm4OLW+zQAUDW7WbxJ/LQaNOyqCmjj5pZrbMO2wwzkIwGT2M85/a063PQhjHNYr50LmrwMBloxGRzAGYv2jxMeS2UsNoGHXCg3/I3gNd+h5aXEmgKdDtbMaPijGjF99oL+Iam2tJYitmKKekcZgfdzAcgZfEZDRMvnjX5ix5PG4vqogYehk66Rzw9/qP2QEuihfO2ZfM3wNmLimhPLVNyofY6Jf6AH3Poc+dtKQtmO3jECnXLadcL X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:49.4476 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2da5c407-7d78-45e1-8a48-08df04784426 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4139 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:18:03 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20097 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 54e1066a9..8b92ec7a9 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:17:18 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: 96620 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 1F91EC61DD5 for ; Thu, 27 Aug 2026 20:18:03 +0000 (UTC) Received: from SN4PR2101CU001.outbound.protection.outlook.com (SN4PR2101CU001.outbound.protection.outlook.com [40.93.195.65]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.2.1787861875422864646 for ; Thu, 27 Aug 2026 13:17:55 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=nDjG6q65; 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.195.65, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F00yaxrdqWGjj1PKkat1jRnZDf8HUl4LxEc2hf7N5SCkmabD04ArFccBZvpm99qYil69w/nztq3bJtnw+E3k5VSkP6XQLQRfRGozs0wNAGZRYs2nOVC0rdY6Z+Kb3pv8lcgPrLEy/eAVMXWr21Sf4N1o1+xlYtROPf2RQDhWGRtVKMrtYwUXZqDOWoRQVwRXBNYERX4ATaoM8jGStZI7AFKIWnw89guGYFlJiOhehJ9wbyzZOo42KWNf//v7tESR1OVex74k0qYE3zaJmJjvmMHwoROG2+wdZBTaAwPZOVDEB+1g+dL6BSIv5gRmPMFOg3S9GQb6AtYPzQakX9fy8w== 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=khRz4cDKQVws1dZjEqYWy0Muu58KpGUqNR6OjOb+PTU=; b=weWqexyfYzf8QRy7r6pYnJF4IsmgaGg7DMiz9+FX17K75EOlx8zmV9EB+ENfeXmpbI5Pi4vkx9+xhqoIePBvDhM3+uB2aB9VvC2AFwvyzsVwtDRLiXNc+OsikG968VOflUn7M1FAw+6X6tVqxflg42gHL3ndvccVgC1VmJpYSiP5+N5wD+ZWoUVZnll8fIecixoUTA/FuERXFY0E/SnlAsqo4WetZTfi4Kn10X5h7qm3whUt0FUov7mf4niWcnyr83BrN1wYEJflyDvtetlxukjNrIroXz/OdfkVlgshOOdZoAHvUsU+RhIIdHNTLtpvGAwTCZGLriO7rDHiX203gg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=khRz4cDKQVws1dZjEqYWy0Muu58KpGUqNR6OjOb+PTU=; b=nDjG6q650YAz7gG9qpd5xUiwPIe+P7BTg26iWUXpLwFXfiSAdp+xK9UHAC76aaFZ9ScgM4AquhOVuWCYyhI8dvYkrgpYD5AClMErtovNq6lcFKeeZasz6Ib2uvgvoEZIaeBqfoE3oK3HTJN3t95FY1agdCdPPm2V+/tmQ3AwG7bmABu+EYLRqTQwOcTl4T0RbLbM4eC4bQBmXuo+XatYuTitOmLp96h0jNd2YmYt3gjfPCNmG/G6k1qZCpn2/votium1uBJosiX2beieRUoO+Sztim8tJWbpZQjVz69UXKYaD5gvrgxuWRyIcCsKrNAtby72Nhe544FanJCuYlYmxA== Received: from BN9PR03CA0289.namprd03.prod.outlook.com (2603:10b6:408:f5::24) by CY8PR12MB7148.namprd12.prod.outlook.com (2603:10b6:930:5c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.6; Thu, 27 Aug 2026 20:17:50 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::5) by BN9PR03CA0289.outlook.office365.com (2603:10b6:408:f5::24) 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:17:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:50 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:34 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 08/11] runqueue: fix remaining attributes created outside of constructor Date: Thu, 27 Aug 2026 16:17:18 -0400 Message-ID: <20260827201720.698482-10-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|CY8PR12MB7148:EE_ X-MS-Office365-Filtering-Correlation-Id: 125dcea9-3cec-4e3d-83b9-08df047844d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700016|23010399003|1800799024|376014|10067099003|6133799003|11063799006|56012099006|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: vPrdRI58doRSssfCnfit17vrBauX2mT+XXDh5U1aiQq55P2FMdWfAx998yUGR/oFv9nDuiR51AbamqofsA4Sh815qqA9DD9Ab7JWS63Y89BA4Bjy/fRa7+t3SXT3uEzbzIJWu0UHSqv8bkDvyMucKrKGfa608KnISRN+CUv/t7ZZ4Me/TkXLnBznWEnknNG03zjecXyon5YED6lodSmAacr3iUcj9WfW3vNT0lMNMooDquOP74yjPcXXtbAi8S81LgZKzuvVWCc7ixB+ou4vlXiXUJeKy4wN0godW64mx+/A5h9HbN71IoWw5pT5RGjA7nYl89RvjauVrNRVZj4tNsSc82Ebx5YMy92Su485bX4hFwFxQ1uyGz7vuiotK1P9YbHagUM6UwIho2N+Lpqn5tyYCpUXuXbWQBcmQoE6zC3pMQehd5+qq8h5cZGeDHvKBwWfjpg/ZHzwpL87BmdvTHrFCuauRMQrGZUcDp73Vv9lJJQqBM1Qn/SlmGhb4DvYmrvO4T+OqpwVHfdKgfcj+ciIhgFu7B/1nba5ZtPK8K/bmngA0o1awPrHNI5RBOHGzNq3eg5gX8hMGVoVmw8A8LEoyDmaYWJzLizXgpLpmhmpEX0L9+rgSByFiNSF6VgWok5ptM8OHnxA12kxbSCNI1jP5ZyjHKlIn762PQzlL2oQBLzBvzo8U8MACSaiShiig3mnvFDDENCaxXkslbA6Rg== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700016)(23010399003)(1800799024)(376014)(10067099003)(6133799003)(11063799006)(56012099006)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: DDdRfbZRXbhy0Y75wBsU8pXgw6GBjKuBQIdyt2xnLh8gsTX3rloVj2ND+XQoPf0mq1hegradFDbiLJTHEt7ww9E4hMOfeLfTAhHt6BJVVKoXkG6eSUfCx0Fo8286+/KbsElHBSgh0rV5rvA4/+phApAC9tFslb7cKfrFNbzRDUUlsxZjJnhM0coq9/WDUlfG7ybO90yYZutD30evummkIXJwKO1+LUaKBVOgfPpmk+zGXkEWiCMaw6vLqldcdEd2BvLz3/lCLqWBmzkv5Kq5Lgb4rnegE+QNn00kGext3xIvZef5WhlHXTrnSMzVs52LZ8S+rH5vUF+tkmev8PtiV7Zg2E9uS+wvf3CniyER7W/fmKgiAYMJVSHVcj/VIVyQZ0v31UihfYZUTrTg01/k8LTAPgzpBk6YjGolrgJJFUl6bLBVZwsFhZ1FXbRI6NP4 X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:50.5631 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 125dcea9-3cec-4e3d-83b9-08df047844d0 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7148 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:18:03 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20093 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 8b92ec7a9..dbd69b055 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:17:19 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: 96617 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 D01CBC61DCD for ; Thu, 27 Aug 2026 20:18:02 +0000 (UTC) Received: from PH7PR06CU001.outbound.protection.outlook.com (PH7PR06CU001.outbound.protection.outlook.com [52.101.201.63]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.3.1787861876751414198 for ; Thu, 27 Aug 2026 13:17:56 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=jhsGG71r; 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.63, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h+WaEKiPGLT080N03sQH0mNx1yjj6MKgjFxaQlrSjz8i9tjPgZFUiHNEQsT8hbzX10oMBE+akwOWt0bKodtabZLEf/05/Hte2QkFIgPxocAVORgvrwtcmSuXDbYRXASNQVNuM9Y26FsSbaznLzuCUnXw2JKkrpNexME8CCG6TdXqJAMeXi+fmUtYPE9ou1Y1uLCX833aHRuMIIP4yLfgqGJrI7JQ1sB8PmebQWDJzDSHdVpSKzuSXfrhKBfOkpzNHjNobU6jKZkU32swz/e38YJJdohlZ/7Ai8Dy9nInm3xC1M/60cParc2uPc6mowVKQbsMswQQCrfaAnjvFVmykQ== 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=i5roj8SHkgtuK8sm1ryTVlzF2OcVjiQJ6xI64eNFyUk=; b=g5nPXK605uWd6V8vnnLzVuDi4+tG4mfL6uJhUvoaa95S3Umm0Tn054B9RMjdnE+sHkRbVc3iug/sWa2TApKP4LXXsMM0+mA2iPQJQTYUGisfcSJdk9eACfzD3g/Gq7GqVnqiqoKKHtLs34+soJlnZ+/Ki6xiRnn2ft7DeKh6JO0kWFGWeMblFgDzdnXpr5IaWvDOLqQ+LIW5oI5qpcyR4DHgCjPNxMPXW0RGywKE+MOreraQtWaJAczFGeAHh4w85n8pd8ecfDPyzzqneGMUcJJtZ7bxElwh4Se0qyEk8SIP1BhLPwZvGCgAVMEgqaTlOy8FsZM0yOxN8pfMJ7pkaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=i5roj8SHkgtuK8sm1ryTVlzF2OcVjiQJ6xI64eNFyUk=; b=jhsGG71r0+VBFTpFyUy+oiSGZ8c4jK8eZJtoiv1wQlKs8HgpGYwtPT18grHOyWcI4JxyWDE9KAtSYSVq7oSc60U3vTscw+peJYmw5lhKw5Lf196lQsYx6upD4H6syqyHWwlrda8lpwCcxVJDHL/2uuOpFnWU8EPLoVO4XRl+0EjMXFcusY0U+LHUDvxbBI37fp4GV88Q9zYopBh/YwFxIExnCZitYEvGDhTUoT4aHDTCr7sTRGUmQIJVNx753lB6hAT0JHqT/Jmts4uEqzMDQgsQ/0IQYKjsWVfQMxwmG6kUP3tb/DhHlE4wCZZESpLoVwRpMzEttetqeFlsU7rnHA== Received: from BN9PR03CA0291.namprd03.prod.outlook.com (2603:10b6:408:f5::26) by BL3PR12MB6377.namprd12.prod.outlook.com (2603:10b6:208:3b0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.8; Thu, 27 Aug 2026 20:17:51 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::12) by BN9PR03CA0291.outlook.office365.com (2603:10b6:408:f5::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:17:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:51 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:34 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 09/11] runqueue: wait for covered tasks before setscene Date: Thu, 27 Aug 2026 16:17:19 -0400 Message-ID: <20260827201720.698482-11-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|BL3PR12MB6377:EE_ X-MS-Office365-Filtering-Correlation-Id: 4da8a884-e520-4b73-eacd-08df04784526 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700016|376014|1800799024|23010399003|6133799003|11063799006|56012099006|10067099003|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: TURQlqwe34IOpU0uy+g0h11eJiltoB3USn82HYq9o2Cifxgx8evPBa+dbNkAC6hls0GIc/2X49zusEL1NRoHtelNe4NG7dEdmq/evg6LwAi0P3s4q09HcIaphIHzlRc0aQreKeGOVaGj1MQVY0C37BfSuFwxap7RRPRAaIUwZkr0BdHy/sY8wYZ8neri6Xj64YgwOrPqj9Qld3bT3DDHdZOMb/wUTm2dPoQbuoTqGIud05REknzEo2F+yQcRJh+onoZBt3DwQDbrKPhScOY1DONLSFEWr+4/CLLJs2liUCssqSZ7PJLKPXM2WkIMZJl0IYDGitQQj41e+IZZDBI7nWNzZI7FydviwUiyKvFMvatnQxjFYQG6onARADnkEIzlyMqSEU6hSf8qTQiOEIPAGCqJqutgLWZ+U0z6aCze7BfZIgq9huO1o3AehQ4EfiUN7qhQwZ3QosfIGjNpTjBZC8mHAp3N5/0rKo/UOZHJmNP6boWJ1PGyYi87fiyG1FqPuRQd9I+nXjOCdBoQQfyTCDzOX4u6zAW8qVXuBn6QrwuWY5vP8CJvbEOXe5fSrnNEN+7iMCfWfhP9OXU8Ci0CHh1A4NuNJQx4RiKcRZHqsxPavIBfvx8nl+LQ5BxXnvSOOCm8/lE9RT2DS6VUgUEKoWigshM2BA++fRYKEGuPfXxBFZmGIim0bZVpKP3Cd9qV6gUHK5l7jjQItY0yO+6KMQ== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700016)(376014)(1800799024)(23010399003)(6133799003)(11063799006)(56012099006)(10067099003)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ivmctlCVfn6aBfdKPc5lTvimGE0tC299JxV5t4dPNuBbCAw8idYz05qnQftECFUoRl0fHv4wT+FnIp2aQfIX4QldTtLIbrE5xdGaxV4Vt1jORbHryWIMq+0grtrybTMAMauA3qKOYgGAgb1ohjM785GCWZ9FyfdMusmzV+S6DXqnd34CHGoMqvO+jfVkisWmVmRORk5Sdw93gX4fUHtQUuqKMrEF6RqMWhfqn35rGEM7pQXA09QSQ89XCLmUgV+Cbyj8nYPd8aPM3unz6VrRKG2dndH1daL2dBZhFhZjSVQphKTCx0cgdr8bm8xBjQrJoKOdC2r2HBVht8iGOffRh2FjKPxbrYMNgWY1F7hxvIUwOO5zhDN+67RSClmS3M0OAeWwdo9JQUJ30Lf0nQGeVmp4rCueODQuQrh3volAt7pHiO9sb+yO4Arwr1JL4sHU X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:51.1297 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4da8a884-e520-4b73-eacd-08df04784526 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6377 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:18:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20094 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 dbd69b055..75b879ead 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:17:20 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: 96615 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 E1851C61DD3 for ; Thu, 27 Aug 2026 20:18:02 +0000 (UTC) Received: from CY7PR03CU001.outbound.protection.outlook.com (CY7PR03CU001.outbound.protection.outlook.com [40.93.198.46]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2.1787861877878808083 for ; Thu, 27 Aug 2026 13:17:58 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=z5ACmVO0; 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.198.46, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EsHMFWt8Bo5ndDafMPOUNYPYXuQbXTWDpCVZtFfqdfTgAl3tBRHfuNEOmfVl97zdJklSyElvnRoOxgBUTsp9fh+PtsLPHpcvGvEMHSe0US+bE8V3UkE6OpgPfRK+4HtpguZINYAH2jQNQJkIX28T1jhOSsSDVRKyWNhBFE5scFPI4SEyIE8pny6O0snFHweLApkA1YeaWsplAHQdYp2oG9qOHkFl1omd5ukpm5+9V8oN3YFBIz01BmN/70jeM0FgVSb+VYrRJXDtVOexLUw9fk1fa+CDMsX9rBXh5Ge3wK2h9esN1UQAlvB2aXC0dHKCpn7wsJ5Gkzlmc3kP6BBcWQ== 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=BSbx5gPEdsL1Yde5btScerQ6OFQb1TgKMsM601qMQBs=; b=Ue66vSn5+Ymd6GzBW66kOqH0dTvfBpR8vuUVyAusvnCG1cZs9z+uL6kfOoYRzYjVal8HmG8o3tZVFWvHcGp63esCHWPA1KJJtoVROwK9QB04Z+v+v/uFZDI5jxl2NC+hUIechLjMUzxrYdVsKu9yxBLJNzGrO7o6Om8MRJr1dB1Fsp5MezYAM7/x8Nd4ZKCBzixXRpdxRX7k9KTSvNQPAR0axwO5iGhHihELqaiv4AgHH1XYMlIsskgDhccOEuQh1RhKfMPcNVa6QnMNC0h27UGKVeZsCFKU6uJSfAxkhSUtm1z5SJ5ejG1gxIDco/V24c4/qWypehms+fHy1eoTHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=BSbx5gPEdsL1Yde5btScerQ6OFQb1TgKMsM601qMQBs=; b=z5ACmVO0Sl6tGgtUAEM0gN2wlK0GPnW3XjHJmlbQW0e1glNyjRg7BQftueBFN4ftqKW7DOfSyLaK+TQrPDOcbq7U/e+cgu4K7XrM20qRhKRwwIunVJtd9liPsdJUt9ehrKVbCJb4plQgEurMeS8M4T7rvhjAuvZIS6Jwj46xgu1V0oDPnrZRzTpNSQWXmY88pDGcAE0eodaS3WWfdmz3nCpBIN8KCnrLsowcT4xUNKp+1vfwZCOUqPZaPZCNpUxyKKVTR0fVeqTzf0e0vKKUWePCtP38N7nnygOcRvUePBBt7wVaH4hH9nWUpG8zLVlQh4KVvvVp9fszgpNSZNMdLA== Received: from BN9PR03CA0289.namprd03.prod.outlook.com (2603:10b6:408:f5::24) by CH3PR12MB7762.namprd12.prod.outlook.com (2603:10b6:610:151::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.6; Thu, 27 Aug 2026 20:17:51 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::94) by BN9PR03CA0289.outlook.office365.com (2603:10b6:408:f5::24) 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:17:51 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:51 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:35 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 10/11] runqueue: clean up dumpsigs polling Date: Thu, 27 Aug 2026 16:17:20 -0400 Message-ID: <20260827201720.698482-12-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|CH3PR12MB7762:EE_ X-MS-Office365-Filtering-Correlation-Id: bc5a1171-b554-4c22-803c-08df04784574 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|1800799024|82310400026|376014|36860700016|11063799006|6133799003|10067099003|56012099006|18002099003|22082099003; X-Microsoft-Antispam-Message-Info: joj/ZE0ZMm3cUmfcg/CVwCDTOnODxW9Ee33bLKK1Uw+Fc7oOuFfcyPd8Oewiti0WZbBvI7BcZYI3cVk28ZajH3IB77u2eS0mWW9FCoN6+hjNWYbKpGeG/KZ5USIeFjMJ2M+OvUyiwhx33UXkaQ1TKEFh9ycc/SZMSDtpA45Zhcjl0gDLwG9Nknp4yfC5ZraWwkM1NGcNZDopfFfaCtBmw1EflyoRjjQA86KGdB0V6eLh98x4VvjGmtKr8OFyvziUypirFb1NwVIWtLqXObRzAuvsbequ/EtWrG03CMYJDnfXBftuE120svzoZ/pgezZfm1TGTAPNEp9tzbSzV4CRTewZScxQLKzTDhYb3zRrjZYZnbKXn1EI/rO14v6Hxr1vRhaL5OnOXW7wLq7it+zNTE9OOunb06E4vvg7t9OOC0LPUVk/8icfj6ideEwGUPVwG45PpAxhx0d6CQKO23+qVvUwgGOZRNF6KWCkUUL3esuGqbg3ebJFHGLvz/Rq6y1wbkK8uMJHOWSBTzMx8l6uKaC5/2XvkXmjrf3ck5KsDDQYoNpCzwm6nKQ9c5pwri+jJw42NYlWivfOHmAZAfyOjSHjZ5v435QijmIM44JsX5HfNKU0DuB8JPAn8z88En7pySq7PMi4mWTCNJtN2dK+wzeh9gEednCf8ry9T68NGSTyKEUAQDrbmfeiyLOuNdDGTxr9pcMftZLt22CaNLHVrA== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(1800799024)(82310400026)(376014)(36860700016)(11063799006)(6133799003)(10067099003)(56012099006)(18002099003)(22082099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3l3qVoOQ1hNsdvZAgFolWz4zRClfxvj0qStiYOM/TX2hzGa81J14gmeIlYGJZF6TT+jiOJdb4fLDZsT6GwmQ/HFMsMnO4jGyleU5VfZMHgxwmHzjAHNa2vIuDE0xM2ZR9WmNQmBAxqlFhuZSw1Hju0Ui6I4FPrNVUzwLJfoOY0gyn9c6UuqPu1RXn4Tnu9vYbeOdPBGGRCSfBCFIsdkpHR5MUH5gQlTAa1grBNb7vWCbAclajPovFQPk/kLZvBNxAGe0IHMz5Tir3LZBhTNddBzjvxtR/x2Y8fdmhW4wudG60ZM3FktrvvguE9ysYnfa17iul8mY/5q3y7ILltC6TTEyfqoMgRapYQvLVTmgOYWd3sA39mNO9dlpog3vHCcITZX34SChi9d0DMYJQe/jPUKWwj1YOj3d3rTBCKxbXx7mXr1h4m3d2SNGERyp/YRG X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:51.6339 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bc5a1171-b554-4c22-803c-08df04784574 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7762 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:18:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20095 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 75b879ead..04c1c4d3b 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:17:21 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: 96616 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 B9CAEC61DB9 for ; Thu, 27 Aug 2026 20:18:02 +0000 (UTC) Received: from CO1PR03CU002.outbound.protection.outlook.com (CO1PR03CU002.outbound.protection.outlook.com [52.101.46.39]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.4.1787861877879011096 for ; Thu, 27 Aug 2026 13:17:58 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@agilent.com header.s=selector1 header.b=dj0MwtoH; 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.46.39, mailfrom: chris.laplante@agilent.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=x+/5zZyDHqFQMZwzQjWRS0sjIYNAXUYXjYKVyAvajzYZh4mzLGH2oeaMqG/vjYNIq9jCxMXLI1F3UPZOFjPrGoy5bC6dH/12gja3CcRmA8GxVLcUJgKlQgs7pqRdC69+a5310D4cfCHRjI0VsWgVkfUTalJkbCJiPbqM58vEG+3aMKVaIBVDqpVnZGJA260k1tydRrF7jDTSIVGGVZwbcj42ZE4O6SJDTZ1QnrtQXQt6XDIAjpAUbv+jcdm1EGt/+4g1oZwJAMlsBGtP8x/IjzvcOLzm27H4hA0SES0PXRoLBpR/GhuLCVt7yp4L8mnmK7cUqb6JhzTFrLUO2nZWYA== 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=eBcDq+BnjKBKAE7KHDxTa8cOkFQ5JHz6rwpLKGUZZMY=; b=eA7O+Wy5Eqc2iX4jSM0WTVcCjKpe/W2xIl2g7HXPfe7CMRtSSgYiepMitMgoCebXYLNMdBGpX+yomhmZnbaj+WnhTGrBuJHp89YMFP5vyRzEAFlNbvaJ+JGa//tls0cdbU5j9+uCH2V4hW2Bc4l9N4MXwMLKUT8C3VJ3YJ4tOAvb1unt/biEE/qcnFuxmtt5wLbaAAKyGK5RD1XZ8v939WeJCYulrhgv7WEwmPNUKW6cNNflMnc45uqtZprQb25aeQIuqXQMhrKCrDdXO5OYwx2hJxUrszH0o8YkcIertJobixmCxOtBztXPCjrXmfLYBUNZw4cDtMHNE8Yw1JnYrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.25.218.36) 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=eBcDq+BnjKBKAE7KHDxTa8cOkFQ5JHz6rwpLKGUZZMY=; b=dj0MwtoHW4+6NjcxvNvdimg4beMu7NPgzjL4nL7TGhFWeBF203+vOn1k84a9ufOpFYHBCLk4XsMyCbQEtB3aeeWk3UjC7S4/LXG4HBJ11HOO/A40LE/cBfF50Yt5HUXDIE6K5zA2O9gJagsCstQtVKHbe6P5zXvUymJQXpFsd1ElHhWnqcpxO2r6X64nacXq8iHj+8amAi8v/ntUdAhx5FIN7MxS46AG6D0obnkdEH66fOMcPkN7gBIthB4/L8UgR7TnltDrkw4BSsvnYtwlAKSivwmmkESXU0vaqGsulcZjZ9qw0kmRu0G6XzWTJWthuyejKD3X6+hIBIKGkxetvQ== Received: from BN9PR03CA0273.namprd03.prod.outlook.com (2603:10b6:408:f5::8) by CHXPR12MB999219.namprd12.prod.outlook.com (2603:10b6:610:2fd::8) 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:17:52 +0000 Received: from BN3PEPF00022BD0.namprd03.prod.outlook.com (2603:10b6:408:f5:cafe::59) by BN9PR03CA0273.outlook.office365.com (2603:10b6:408:f5::8) 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:17:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 192.25.218.36) 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.36 as permitted sender) receiver=protection.outlook.com; client-ip=192.25.218.36; helo=wpcosapexchedg5.windmz.agilent.com; pr=C Received: from wpcosapexchedg5.windmz.agilent.com (192.25.218.36) by BN3PEPF00022BD0.mail.protection.outlook.com (10.167.248.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.360.3 via Frontend Transport; Thu, 27 Aug 2026 20:17:52 +0000 Received: from laplante-B650.lfs.agilent.com (192.25.126.4) by edgeappmail.agilent.com (192.25.218.36) 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:17:35 -0600 From: To: CC: Chris Laplante Subject: [PATCH v2 11/11] runqueue: report memory pressure limit correctly Date: Thu, 27 Aug 2026 16:17:21 -0400 Message-ID: <20260827201720.698482-13-chris.laplante@agilent.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260827201720.698482-2-chris.laplante@agilent.com> References: <20260827201720.698482-2-chris.laplante@agilent.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF00022BD0:EE_|CHXPR12MB999219:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ca5c7c0-0f79-4a5e-6e10-08df047845cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|82310400026|36860700016|376014|1800799024|11063799006|56012099006|10067099003|6133799003|22082099003|18002099003; X-Microsoft-Antispam-Message-Info: H/LwpRHU0pyAoMZbLtK/imiqIUX5N73oU1eQFstrsrHuTSwZTWEsiegNYYK8fv/7F0s02mqyQFLXcmH/WeUdPgfndJAzgD4T7HBthEzT38AvqCFUoNW9jQSrmPu7VvB/rRZyo/U83dOAiPpzWOl7Cb9YJZDXdR++X8XXdu17Jkvq375LerqnbfKgbqIpv0s8fVpLYY0SSIopUKTLFYHG7aOy7wl/jA/jaihzEUgSv9q10lh/CQjh2mlKCXebCHUdPrOQvpxRHgetw5o2g38u4I11jNQrTdHW56LZOj1GpI0H9Pqkwo3NXdj2nJdtsJe3F1G9pj/EiqOwQktxL/Ba5R+H7y7PfTybVqRWfM1ec1WbOFN4T/+yf4isnlzkSjuvkxzdTVZp3D0y76mYcidx31q+6ix+282TUeiuCXHko1/b01jZKUJgC198lNhVIkEymjN2RImI9609LkDxV857QRzx8wHS2gMa0I2wctwrsOusfs1fsbdyPQY+LMQrCPUhIEifzwnoBcPCos9dXdXhi5XwnxBmRWDoBRWvJduvBOW+MBWF6hMdf0fMQkDCN/ec+70lxDCK0H34+oJ1n+R1DE4uCTTPP00Oci885yuVb7scbKJQwe3O4SDbatQJ7U4o8KSo8XPfn20Xgnq86Ahi3L8SbZh2yISOXEHqt7dJcS1lrP2ncV55lnCZ4BBx/ahGbu/Kj3nmAdFq3VRED1O/Zg== X-Forefront-Antispam-Report: CIP:192.25.218.36;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:wpcosapexchedg5.windmz.agilent.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(82310400026)(36860700016)(376014)(1800799024)(11063799006)(56012099006)(10067099003)(6133799003)(22082099003)(18002099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: NFBjDYxQAM18L6c6ltA0bC3vlZvpDba/Ww/JxWiRykOXuXImhPcc5bbNstvp67MRHAlqOQ18wdx8j5YRFJWO01kLwShrrlPUWj7fUZot0Q2h/PAymfPEdFv7A5t3ym6t5xZPfEb2/riXXTJ4+dutYKC81q9jbzvxJkSOWx1sdy62mpbfmwYDiYO0O1EmVoEnHDJybyhUqJHsBfHPn66dmUaHvbVDVXVlGpyhf/aTBWExEiOGF+6WGHGOE7Jti5ocVUTfDgvsj9B3FnRU6stkOUOvmoJHYGxePoYxBRWOgJjGmlZLcCcg6KHrMsNGOkFJNmWDP9o4UUQDiYPP1LfBn+noR64aIvKYq4Ag2uBbq1KV0l60EMlsNWdU1VyT+kzVqF9b06XxJe7T0RUFzmTgk5zfOoVqH4OdBDgkS8VVLmS5aqXGwK08lse4rXMGLgdm X-OriginatorOrg: agilent.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2026 20:17:52.2243 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ca5c7c0-0f79-4a5e-6e10-08df047845cd 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.36];Helo=[wpcosapexchedg5.windmz.agilent.com] X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TreatMessagesAsInternal-BN3PEPF00022BD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CHXPR12MB999219 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:18:02 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/20096 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 04c1c4d3b..270ae4744 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)