zuul/zuul/driver
Tobias Henkel 1fab39cc4b
Parallelize github event processing
The GitHub driver does an event pre processing before adding a trigger
event to the scheduler. This is currently done single threaded to
ensure that the trigger events are enqueued in order into the
scheduler. A problem is that this pre processing can take a few
seconds which limits the rate of events we can process. In order to
parallelize this while keeping the order of the trigger events we need
to do two things.

We keep consuming the event queue single threaded but instead of
processing and forwarding them directly to the scheduler we process
them in a thread pool and put the futures into a result queue. This
second queue can then again be processed single threaded and maintains
the correct ordering of the events.

Second updating the change cache currently assumes that it runs single
threaded. In order to avoid data races we need to lock this by the
change.

Change-Id: I08f31b99e2a58e51cef0de89edd98c957d7db87f
2019-06-11 10:38:51 +02:00
..
bubblewrap bubblewrap: bind mount /etc/subuid 2019-05-16 09:33:16 +02:00
gerrit Annotate logs around reporting 2019-05-30 19:18:01 +02:00
git git: only list heads and tags references 2019-05-24 07:31:48 +00:00
github Parallelize github event processing 2019-06-11 10:38:51 +02:00
mqtt Annotate logs around reporting 2019-05-30 19:18:01 +02:00
nullwrap Log cpu times of ansible executions 2018-07-14 10:32:06 +02:00
smtp Annotate logs around reporting 2019-05-30 19:18:01 +02:00
sql Annotate logs around reporting 2019-05-30 19:18:01 +02:00
timer Add event id to timer events 2019-05-17 06:06:12 +02:00
zuul Annotate logs in the zuul driver with event ids 2019-05-17 06:06:11 +02:00
__init__.py Status branch protection checking for github 2018-06-04 15:47:01 +02:00
util.py Add driver-specific pipeline requirements 2017-05-19 13:24:00 -07:00