All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/17] uihelper: Fix exception when TaskStarted event handler breaks
@ 2026-11-30 15:28 Richard Purdie
  2026-11-30 15:28 ` [PATCH 02/17] cache: Add support for BB_CACHE_EXTRAVARS Richard Purdie
                   ` (15 more replies)
  0 siblings, 16 replies; 18+ messages in thread
From: Richard Purdie @ 2026-11-30 15:28 UTC (permalink / raw)
  To: bitbake-devel

If there is an exception in a TaskStarted event handler, we can get a
still get a TaskFailed event which will trigger a second exception. Since
our TaskStarted code may not have run. Avoid that second exception from
an undefined dict key.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/ui/uihelper.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/bb/ui/uihelper.py b/lib/bb/ui/uihelper.py
index 3e077f04484..18079195ff5 100644
--- a/lib/bb/ui/uihelper.py
+++ b/lib/bb/ui/uihelper.py
@@ -25,6 +25,9 @@ class BBUIHelper:
         # PIDs are a bad idea as they can be reused before we process all UI events.
         # We maintain a 'fuzzy' match for TaskProgress since there is no other way to match
         def removetid(pid, tid):
+            if tid not in self.running_tasks:
+                # This is possible if you have an exception during a TaskStarted handler
+                return
             del self.running_tasks[tid]
             if self.pidmap[pid] == tid:
                 del self.pidmap[pid]

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2026-11-30 16:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 15:28 [PATCH 01/17] uihelper: Fix exception when TaskStarted event handler breaks Richard Purdie
2026-11-30 15:28 ` [PATCH 02/17] cache: Add support for BB_CACHE_EXTRAVARS Richard Purdie
2026-11-30 15:28 ` [PATCH 03/17] runqueue: Add a RecipeCheckEvent Richard Purdie
2026-11-30 15:28 ` [PATCH 04/17] providers: Drop support for changing preference level based upon layer priority Richard Purdie
2026-11-30 15:28 ` [PATCH 05/17] cooker/cache/command/tinfoil: Drop bbfile_priority Richard Purdie
2026-11-30 15:28 ` [PATCH 06/17] cooker: Change layer.conf handling to new approach Richard Purdie
2026-11-30 16:20   ` [bitbake-devel] " Antonin Godard
2026-11-30 15:28 ` [PATCH 07/17] tests/cooker: Drop obsolete collections test Richard Purdie
2026-11-30 15:28 ` [PATCH 08/17] default-registry: Update for new layer names Richard Purdie
2026-11-30 15:28 ` [PATCH 09/17] utils: Switch to use layerdata in get_file_layer() Richard Purdie
2026-11-30 15:28 ` [PATCH 10/17] utils: Add bb.utils.have_layer() to simplify metadata layer checks Richard Purdie
2026-11-30 15:28 ` [PATCH 11/17] layerindexlib/cooker: Switch to Use layerdata data struture Richard Purdie
2026-11-30 15:28 ` [PATCH 12/17] bblayers: Switch to use layerdata and new format layers Richard Purdie
2026-11-30 15:28 ` [PATCH 13/17] tests/runqueue: Add a test for RecipeCheckEvent/BB_CACHE_EXTRAVARS Richard Purdie
2026-11-30 15:28 ` [PATCH 14/17] tests: Add tests for wildcard version comparisions Richard Purdie
2026-11-30 15:28 ` [PATCH 15/17] tests/layers: Add tests after layer changes Richard Purdie
2026-11-30 15:28 ` [PATCH 16/17] ast/cookerdata: Allow addfragments to be called more than once Richard Purdie
2026-11-30 15:28 ` [PATCH 17/17] tests/layers: Add fragments tests Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.