zuul/zuul
Simon Westphahl 8eec9e3bcb Ensure correct re-enqueue on changing gate queue
When the queue for a project is changed during reconfiguration the
dependent pipeline manager was using the queue of the item
ahead in the old queue.

This lead to items ending up in the wrong queues and caused the
following exception in the run handler:

2019-11-28 13:33:47,313 zuul.Scheduler  ERROR  Exception in run handler:
Traceback (most recent call last):
  File "/tmp/zuul/zuul/scheduler.py", line 1145, in run
    while (pipeline.manager.processQueue() and
  File "/tmp/zuul/zuul/manager/__init__.py", line 914, in processQueue
    item, nnfi)
  File "/tmp/zuul/zuul/manager/__init__.py", line 898, in _processOneItem
    priority = item.getNodePriority()
  File "/tmp/zuul/zuul/model.py", line 2684, in getNodePriority
    return self.pipeline.manager.getNodePriority(self)
  File "/tmp/zuul/zuul/manager/dependent.py", line 101, in getNodePriority
    return items.index(item)
ValueError: <QueueItem 0x7f02583af4e0 for <Change 0x7f02583a9cf8 org/project2 2,1> in gate> is not in list

The issue is fixed, by ignoring the given existing queue in the
dependent pipeline manager, since it's always possible to get the
correct queue from the pipeline itself.

Change-Id: Ia5b1b58377e4420b9ab1440c0b9f67cb15967263
2019-11-28 15:04:37 +01:00
..
ansible zuul_stream: handle module that emit non str msg 2019-11-26 13:26:53 +00:00
cmd Revert "Revert "Add the process environment to zuul.conf parser"" 2019-11-02 09:10:18 +09:00
connection Annotate some logs in the scheduler with event id 2019-05-17 06:06:11 +02:00
driver Provide zuul_event_id in MQTT Report Message 2019-11-27 13:31:05 +01:00
execution_context Add wrapper driver execution context 2017-08-18 16:35:12 -07:00
executor Fix deletion of stale build dirs on startup 2019-11-22 17:06:18 +01:00
lib Update ara to >=0.16.5 to support ansible 2.8 2019-08-06 16:48:49 -07:00
manager Ensure correct re-enqueue on changing gate queue 2019-11-28 15:04:37 +01:00
merger Check refs and revs for repo needing updates 2019-08-27 09:56:48 -07:00
reporter Add no-jobs reporter action 2019-09-17 09:51:16 -07:00
source Annotate canMerge check with event id 2019-07-12 12:34:57 +02:00
sphinx Add zuul-sphinx as a requirement 2017-08-07 14:56:17 -07:00
trigger Annotate logs in the zuul driver with event ids 2019-05-17 06:06:11 +02:00
web Zuul Web: add /api/user/authorizations endpoint 2019-11-07 03:31:13 +00:00
__init__.py Initial commit. 2012-05-29 14:49:32 -07:00
_setup_hook.py Revert "Create zuul/web/static on demand" 2019-06-04 09:57:04 -07:00
change_matcher.py Fix wrong matched project template 2018-08-02 12:19:15 +02:00
configloader.py Merge "Ensure tenant web_root url has a trailing slash" 2019-10-10 05:28:32 +00:00
exceptions.py web: add tenant and project scoped, JWT-protected actions 2019-07-10 12:11:14 +02:00
model.py Store a list of held nodes per held build in hold request 2019-10-24 13:39:16 -04:00
nodepool.py Store a list of held nodes per held build in hold request 2019-10-24 13:39:16 -04:00
rpcclient.py Add autohold-info CLI command 2019-09-16 10:47:27 -04:00
rpclistener.py Zuul Web: add /api/user/authorizations endpoint 2019-11-07 03:31:13 +00:00
scheduler.py Merge "Keep tenant_last_reconfigured float precision (time.sleep removal)" 2019-10-25 16:51:05 +00:00
version.py Report git sha in status page version 2018-04-27 10:21:43 -07:00
zk.py Handle upgrade of autohold held nodes 2019-10-25 08:49:40 -04:00