Add semaphore to publish-openstack-releasenotes-python3

This job fails occasionally when we process several release patches at
the same time due to the shared AFS space. This adds a semaphore to
serialize these operations to avoid conflicts since this is a fairly
quick job.

Change-Id: I049ed49b1fe6a4359e4931b69cb0d29be751cdd5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-10-07 11:15:20 -05:00
parent eba389413c
commit 4ed6af9f3b
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
1 changed files with 7 additions and 0 deletions

View File

@ -191,6 +191,12 @@
vars:
special_publish_directory: "contributors"
# AFS sync issues happen when multiple publish jobs run at the same time
# so we make it synchronous to avoid job failures
- semaphore:
name: publish-releasenotes
max: 1
- job:
name: publish-openstack-releasenotes-python3
description: |
@ -207,6 +213,7 @@
post-run:
- playbooks/publish/releasenotes.yaml
- playbooks/publish/openstack-afs.yaml
semaphore: publish-releasenotes
override-branch: master
# Building translated releasenotes can take long for large repositories
timeout: 3600