zuul/tests
James E. Blair aad0e17ddd Cache empty branch config to prevent spurious reconfig
There is an edge case in github handling where it's possible to
change a branch from unprotected to protected without Zuul being
notified, therefore if we see an event on a branch which has no
configuration cached, we perform a tenant reconfiguration in order
to catch this case.

We also have an optimization where if we load no configuration from
a repo whatsoever, we don't cache anything for it.

Therefore, every time we see an event on such a repo, we perform
an extra configuration (because the repo has no cached data).

To avoid this, explicitly cache an empty configuration object on
every project-branch we know about.  This way only a branch which
has gone from unprotected to protected will show up with no cached
data and trip the reconfiguration.

Change-Id: I8161b571b03c4d8222abd6f1503190917331f422
2019-01-03 14:08:15 -08:00
..
fixtures Merge "Fix container job documentation typo" 2019-01-01 14:03:42 +00:00
nodepool Set relative priority of node requests 2018-11-30 12:50:34 +01:00
remote Don't do live streaming in loops 2018-11-05 22:21:38 +01:00
unit Cache empty branch config to prevent spurious reconfig 2019-01-03 14:08:15 -08:00
__init__.py Add non-voting jobs. 2012-08-23 23:20:09 +00:00
base.py Merge "Delay Github fileschanges workaround to pipeline processing" 2018-12-29 14:49:32 +00:00
encrypt_secret.py Make tests' encrypt_secret.py work with python3 2017-10-19 18:09:57 +00:00
fakegithub.py Use combined status for Github status checks 2018-12-07 09:17:03 +01:00
make_playbooks.py Use libyaml if possible 2017-04-04 11:49:05 -07:00
print_layout.py Do not add implied branch matchers in project-templates 2017-09-30 10:19:07 -07:00