Merge "Log github delivery ids properly"

This commit is contained in:
Zuul 2018-06-13 23:24:56 +00:00 committed by Gerrit Code Review
commit f4e97aa5b2
2 changed files with 4 additions and 2 deletions

View File

@ -1085,7 +1085,9 @@ class FakeGithubConnection(githubconnection.GithubConnection):
payload = json.dumps(data).encode('utf8')
secret = self.connection_config['webhook_token']
signature = githubconnection._sign_request(payload, secret)
headers = {'x-github-event': name, 'x-hub-signature': signature}
headers = {'x-github-event': name,
'x-hub-signature': signature,
'x-github-delivery': str(uuid.uuid4())}
if use_zuulweb:
return requests.post(

View File

@ -110,7 +110,7 @@ class GithubGearmanWorker(object):
headers = args.get("headers")
body = args.get("body")
delivery = headers.get('X-GitHub-Delivery')
delivery = headers.get('x-github-delivery')
self.log.debug("Github Webhook Received: {delivery}".format(
delivery=delivery))