zuul/tests/fixtures
Tobias Henkel b999b7c862
Fix wedged scheduler on force-merge of non-existing template
If there is already a post pipeline defined a force-merge of a change
referencing a non-existent project template currently can wedge the
scheduler. In this case an exception is raised during reporting which
throws the run handler completely out of its loop and the loop starts
over from the beginning. However the item to be reported is not
consumed in this case so zuul is stuck in an exception loop [1] and
can only be recovered by a restart.

This can be fixed by catching the exception and continuing the
reporting.

[1] Traceback:
2019-01-28 07:33:57,304 ERROR zuul.Scheduler: Exception in run handler:
Traceback (most recent call last):
  File "/opt/zuul/lib/python3.6/site-packages/zuul/scheduler.py", line 1033, in run
    while (pipeline.manager.processQueue() and
  File "/opt/zuul/lib/python3.6/site-packages/zuul/manager/__init__.py", line 768, in processQueue
    item, nnfi)
  File "/opt/zuul/lib/python3.6/site-packages/zuul/manager/__init__.py", line 735, in _processOneItem
    self.reportItem(item)
  File "/opt/zuul/lib/python3.6/site-packages/zuul/manager/__init__.py", line 880, in reportItem
    item.reported = not self._reportItem(item)
  File "/opt/zuul/lib/python3.6/site-packages/zuul/manager/__init__.py", line 920, in _reportItem
    if not layout.getProjectPipelineConfig(item):
  File "/opt/zuul/lib/python3.6/site-packages/zuul/model.py", line 3435, in getProjectPipelineConfig
    templates = self.getProjectTemplates(template_name)
  File "/opt/zuul/lib/python3.6/site-packages/zuul/model.py", line 3374, in getProjectTemplates
    raise TemplateNotFoundError("Project template %s not found" % name)
zuul.model.TemplateNotFoundError: Project template foo not found

Change-Id: I1a3b59dadbd9337a8ba5b146f09ad093a0123ce8
2019-02-03 19:06:31 +01:00
..
bwrap-mounts Add missing localhost delegation checks to some modules 2018-03-22 20:42:01 +01:00
cgroup Add cgroup support to ram sensor 2018-12-18 22:25:27 +01:00
config Fix wedged scheduler on force-merge of non-existing template 2019-02-03 19:06:31 +01:00
gearman Add ssl support to gearman / gearman_server 2017-06-14 10:10:45 -04:00
gerrit Support pagination in simplequery for Gerrit >=2.9 2015-08-31 11:42:15 +02:00
layouts Add provides/requires support 2019-01-30 14:07:42 -08:00
tenants Re-enable test_delayed_repo_init 2017-08-14 23:37:56 -07:00
app_key Extend github testing using app auth 2018-05-24 00:15:32 +00:00
clonemap.yaml cloner to easily clone dependent repositories 2014-07-29 09:03:59 +00:00
fake_git.sh Add comment explaining gitpython requirement 2017-10-10 11:15:06 -07:00
git_fetch_error.sh Merger: retry network operations 2018-01-31 13:20:36 -08:00
layout-cloner.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-connections-multiple-voters.yaml Add in extra connections tests 2015-12-06 14:48:32 +11:00
layout-disable-at.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-live-reconfiguration-functions.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-merge-queues.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-requirement-vote.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-smtp.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
layout-success-pattern.yaml Add extra test for bad url patterns 2016-04-23 10:40:12 +10:00
layout.yaml Case sensitive label matching 2017-07-27 07:46:35 +02:00
private.pem Add per-repo public and private keys 2017-03-29 12:43:41 -07:00
public.pem Serve public keys through webapp 2017-03-29 12:44:43 -07:00
ssh.pem Create per-project ssh keys 2018-09-04 15:42:41 -07:00
ssh.pub Serve project SSH keys and document 2018-09-04 15:42:43 -07:00
test_id_rsa Add SSH Agent Primitives and usage 2017-05-26 09:52:22 -07:00
test_id_rsa.pub Add SSH Agent Primitives and usage 2017-05-26 09:52:22 -07:00
zuul-connections-cgit.conf Make the git web url a template 2017-10-25 17:11:46 -07:00
zuul-connections-gerrit-and-github.conf Report config errors as line comments 2018-07-27 19:18:04 -07:00
zuul-connections-gitweb.conf Make the git web url a template 2017-10-25 17:11:46 -07:00
zuul-connections-merger.conf Move status_url from webapp to web section 2018-01-29 14:16:28 +01:00
zuul-connections-multiple-gerrits.conf Remove zuul_url from merger config 2017-07-31 22:28:35 +02:00
zuul-connections-same-gerrit.conf Remove zuul_url from merger config 2017-07-31 22:28:35 +02:00
zuul-disk-accounting.conf Remove zuul_url from merger config 2017-07-31 22:28:35 +02:00
zuul-executor-hostname.conf Change domain in test fixture to example.com 2017-10-19 17:28:44 +00:00
zuul-gerrit-github.conf Add cross-source tests 2018-01-16 09:37:59 -08:00
zuul-gerrit-web.conf Report to gerrit over HTTP 2018-07-26 16:43:07 -07:00
zuul-git-driver.conf Git driver 2017-12-15 14:32:40 +01:00
zuul-github-driver.conf Extend github testing using app auth 2018-05-24 00:15:32 +00:00
zuul-mqtt-driver.conf mqtt: add basic reporter 2018-05-02 07:20:46 +00:00
zuul-push-reqs.conf Move status_url from webapp to web section 2018-01-29 14:16:28 +01:00
zuul-sql-driver-bad.conf Add tests for postgresql 2018-04-10 15:51:25 +02:00
zuul-sql-driver-prefix.conf Add tests for postgresql 2018-04-10 15:51:25 +02:00
zuul-sql-driver.conf Add tests for postgresql 2018-04-10 15:51:25 +02:00
zuul-winrm.conf Add config parameters for WinRM timeouts 2018-11-22 18:32:15 +01:00
zuul.conf Add type check for zuul conf 2018-12-10 19:24:50 +08:00