Skip to content

runqueue changes

Richard Purdie bitbake-devel 1 version In review

Get series with b4
b4 am 8ace64fd460c657fee23dd39887825e418314c5e.camel@linuxfoundation.org

Versions newest first

  1. v1 Latest26 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26runqueue: Tweak buildable variable handling in schedulerlib/bb/runqueue.py+5 -40 replies
2/26runqueue: Drop unused BB_SETSCENE_VERIFY_FUNCTION2lib/bb/runqueue.py+3 -300 replies
3/26runqueue: Remove now uneeded codelib/bb/runqueue.py+1 -250 replies
4/26runqueue: Move scenequeue data generation to a separate functionlib/bb/runqueue.py+233 -2240 replies
5/26runqueue: Remove unused function parameterlib/bb/runqueue.py+3 -20 replies
6/26runqueue: Factor out the process_setscene_whitelist checkslib/bb/runqueue.py+45 -400 replies
7/26runqueue: Uniquely namespace the scenequeue functionslib/bb/runqueue.py+47 -390 replies
8/26runqueue: Merge stats handling together for setscene/real taskslib/bb/runqueue.py+20 -190 replies
9/26runqueue: Merge scenequeue and real task queue code togetherlib/bb/runqueue.py+360 -3600 replies
10/26runqueue: Fix counter/task updating glitchlib/bb/runqueue.py+1 -10 replies
11/26runqueue: Remove RunQueueExecuteScenequeue and RunQueueExecuteTaskslib/bb/runqueue.py+43 -560 replies
12/26runqueue: Simplify _execute_runqueue logiclib/bb/runqueue.py+24 -220 replies
13/26runqueue: Fold remains of the scenequeue setup into RunQueueExecutelib/bb/runqueue.py+42 -470 replies
14/26event/runqueue: Drop StampUpdate event, its pointless/unusedlib/bb/event.py lib/bb/runqueue.py lib/bb/tests/event.py +1 more+0 -350 replies
15/26runqueue: Add covered_tasks (or 'collated_deps') to scenequeue datalib/bb/runqueue.py+6 -00 replies
16/26runqueue: Simplify scenequeue unskippable calculationlib/bb/runqueue.py+13 -320 replies
17/26runqueue: Tweak comments and debug codelib/bb/runqueue.py+4 -10 replies
18/26runqueue: Code simplificationlib/bb/runqueue.py+1 -40 replies
19/26runqueue: Remove pointless variablelib/bb/runqueue.py+10 -90 replies
20/26runqueue: Further scheduler buildable tasks cleanuplib/bb/runqueue.py+1 -80 replies
21/26runqueue: Clarify scenequeue_covered vs. tasks_coveredlib/bb/runqueue.py+12 -80 replies
22/26runqueue: Merge the queues and execute setscene and normal tasks in parallellib/bb/runqueue.py+123 -530 replies
23/26runqueue: Alter setscenewhitelist handlinglib/bb/runqueue.py+29 -490 replies
24/26runqueue: Complete the merge of scenequeue and normal task executionlib/bb/runqueue.py+109 -1170 replies
25/26siggen: Fix default handlerlib/bb/siggen.py+2 -10 replies
26/26tests: Add initial scenario based test for runqueuebin/bitbake-selftest lib/bb/tests/runqueue-tests/classes/base.bbclass lib/bb/tests/runqueue-tests/classes/image.bbclass +7 more+432 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/26] runqueue changes

This patchset reworks runqueue so that instead of having two distinct phases, specifically "setscene", followed by "normal tasks" we have one single phase.

In this single phase, both sets of tasks can run in parallel using the same workers. Thankfully the code already used common classes and functions so making this transition was relatively straight forward.

Initially all tasks are in the scenequeue, as it works through them, they are marked as "buildable" which means normal tasks can execute.

The big change here are in the code which incrementally marks tasks as available rather than being able to process tasks "en mass".

The most common failures from these changes are potentially:

a) tasks not migrating from the scenequeue
b) tasks not becomming buildable

I've made some tests on the autobuilder and believe I've tested many of the common usecases. There is debug code to abort the builds with the above errors when something unexpected happens.

I've also written an initial set of runqueue unittests. To do that I had to create a dummy set of metadata so we had some dependency trees to test with.

This patchset did remove an API we no longer need/use after RSS was introduced and gets rid of what seems like a pointless form of event.

These changes set up the foundations so that we can work on two other significant problems:

a) reuse of sstate artefacts between multiconfig build tasks
b) adapting the task queue 'on the fly' if the output of a task matches a previous output and hence we have sstate hash equivalency

Solving these would be great for OE!

I will follow up with more details on the future plans for the above and this code soon.

Cheers,

Richard