From dbcc867cc70612e03ffcee446f086017c6a7dfd6 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Tue, 23 Mar 2021 15:22:49 +0000 Subject: [PATCH] Run update-bug on patchset-created again Now that the update-bug script no longer tries to update bug assignments, it's possible to run it on patchset-created events again. Go back to doing that until someone has time to build a suitable replacement for it. This partially reverts commit 1ccf5e68e51815479381a941fd9cf4f469498c6d. Change-Id: Idf589eb818d208d65d1f1430ddec962b015165c0 Depends-On: https://review.opendev.org/782538 --- playbooks/roles/gerrit/files/hooks/patchset-created | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/gerrit/files/hooks/patchset-created b/playbooks/roles/gerrit/files/hooks/patchset-created index 11c36199bb..e6c93f8790 100755 --- a/playbooks/roles/gerrit/files/hooks/patchset-created +++ b/playbooks/roles/gerrit/files/hooks/patchset-created @@ -7,10 +7,10 @@ export PROJECTS_YAML=/var/gerrit/etc/projects.yaml export PROJECTS_INI=/var/gerrit/etc/projects.ini # Use timeout to kill any process running longer than 10 minutes. +timeout -k 2m 10m /usr/local/bin/update-bug patchset-created "$@" timeout -k 2m 10m /usr/local/bin/notify-impact patchset-created "$@" --impact SecurityImpact --dest-address 'openstack-security@lists.openstack.org' # TODO: reenable these once jeepyb no longer relies on the old Gerrit DB #timeout -k 2m 10m /usr/local/bin/update-blueprint patchset-created "$@" -#timeout -k 2m 10m /usr/local/bin/update-bug patchset-created "$@" #if [ -f /var/gerrit/etc/ssh_welcome_rsa_key ] ; then #timeout -k 2m 10m /usr/local/bin/welcome-message patchset-created \ # --verbose --ssh-user=welcome-message \