]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: runqueue: Fix event timing race
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Aug 2019 10:48:25 +0000 (11:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Aug 2019 16:28:23 +0000 (17:28 +0100)
commit977a293f2fe99e3cfacb55cae9f8d39b2ed0468e
treedd7f5466864d9a0a9e66176a47b534f0af47e7f9
parent3fb90d0fffffd3a615edef648716b73b3b540e9e
bitbake: runqueue: Fix event timing race

The event from the task notifiing of hash equivalency should only be processed
when the task completes. This can otherwise result in a race where a dependent
task may run before the original task completes causing various failures.

To make this work reliably, the code had to be restructured quite a bit.

(Bitbake rev: 1bf5be46f92f125193638cf41ff207d68f592259)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/runqueue.py
bitbake/lib/bb/tests/runqueue.py