Fix missing mutex release when aborting builds

Currently when zuul aborts a build due to e.g. abandoning a change the
mutex doesn't get released. This blocks all further jobs requiring the
mutex until zuul is restarted. This adds test cases for detecting this
and the missing mutex releases.

This is a port from I37e69310fed045c5a41bd4eccb151c8826f342ea to
zuulv3 branch.

Change-Id: I5e78bdf4e37227027e3a16fb88bae1a0c2002aaf
This commit is contained in:
Tobias Henkel
2017-02-15 07:29:43 +01:00
parent 933c1a8ba8
commit fb91a49cc4
5 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
- hosts: all
tasks: []

View File

@@ -0,0 +1,23 @@
- pipeline:
name: check
manager: independent
source:
gerrit
trigger:
gerrit:
- event: patchset-created
success:
gerrit:
verified: 1
failure:
gerrit:
verified: -1
- job:
name: project-test1
- project:
name: org/project
check:
jobs:
- project-test1