zuul/tests
Clark Boylan 0f7982fee0 Clean up stale git index.lock files on merger startup
We've noticed that if zuul executors (and presumably mergers) don't shut
down gracefully that they may leak git index.lock files in the .git dirs
of the merger repos. Since these repos should be dedicated to zuul's use
without outside interference we can reasonably safely remove any present
index.lock files when starting zuul mergers (and executors).

This implementation does an os.walk under the merger repos root looking
for .git dirs and once it has found them checks for any index.lock
files. This happens before starting the gearman worker which should
avoid any races with these resources.

Change-Id: Ie043453bcdf4500a3718da6f705c882431acafdf
2020-09-17 15:19:16 -07:00
..
fixtures Merge "gitlab: support the MR merged event" 2020-09-03 13:24:51 +00:00
nodepool Add caching of autohold requests 2019-09-16 10:46:36 -04:00
remote Block localhost shell tasks in untrusted playbooks 2020-07-21 19:18:10 +02:00
unit Clean up stale git index.lock files on merger startup 2020-09-17 15:19:16 -07:00
__init__.py Add non-voting jobs. 2012-08-23 23:20:09 +00:00
base.py Merge "gitlab: support the MR merged event" 2020-09-03 13:24:51 +00:00
encrypt_secret.py Make tests' encrypt_secret.py work with python3 2017-10-19 18:09:57 +00:00
fake_graphql.py Optimize canMerge using graphql 2020-02-28 09:43:56 +01:00
fakegithub.py GitHub Reporter: Fix User Email in Merge Commit Message 2020-08-26 13:57:51 +02: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