BonnyCI / projman

A project management repository -- meta
0 stars 2 forks source link

zuul traceback during issue_comment webhook handling #228

Closed gandelman-a closed 7 years ago

gandelman-a commented 7 years ago

Watching the production zuul logs, I see this traceback occasionally:

2017-04-25 19:31:24,898 DEBUG zuul.GithubWebhookListener: Request Signature: sha1=a9993970863c3b66b81691d4bcb305d39fd7d652
2017-04-25 19:31:24,899 DEBUG zuul.GithubWebhookListener: X-Github-Event: issue_comment
2017-04-25 19:31:27,968 ERROR zuul.GithubWebhookListener: Exception when handling event:
Traceback (most recent call last):
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/zuul/connection/github.py", line 116, in __dispatch_event
    event = method(json_body)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 86, in wrapped_f
    return r.call(f, *args, **kw)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 234, in call
    do = self.iter(result=result, exc_info=exc_info)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 204, in iter
    raise RetryError(fut).reraise()
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 283, in reraise
    raise self.last_attempt.result()
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 422, in result
    return self.__get_result()
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 237, in call
    result = fn(*args, **kwargs)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/zuul/connection/github.py", line 185, in _event_issue_comment
    pr_body = self._issue_to_pull_request(body)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 86, in wrapped_f
    return r.call(f, *args, **kw)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 234, in call
    do = self.iter(result=result, exc_info=exc_info)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 204, in iter
    raise RetryError(fut).reraise()
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 283, in reraise
    raise self.last_attempt.result()
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 422, in result
    return self.__get_result()
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 237, in call
    result = fn(*args, **kwargs)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/zuul/connection/github.py", line 239, in _issue_to_pull_request
    pr_body = self.connection.getPull(owner, project, number)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 86, in wrapped_f
    return r.call(f, *args, **kw)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 234, in call
    do = self.iter(result=result, exc_info=exc_info)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 204, in iter
    raise RetryError(fut).reraise()
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 283, in reraise
    raise self.last_attempt.result()
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/concurrent/futures/_base.py", line 422, in result
    return self.__get_result()
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/tenacity/__init__.py", line 237, in call
    result = fn(*args, **kwargs)
  File "/opt/venvs/zuul/local/lib/python2.7/site-packages/zuul/connection/github.py", line 548, in getPull
    def getPull(self, owner, project, number):
  File "/opt/venvs/zuul/src/github3.py/github3/github.py", line 1032, in pull_request
    json = self._json(self._get(url), 200)
  File "/opt/venvs/zuul/src/github3.py/github3/models.py", line 215, in _json
    if self._boolean(response, status_code, 404) and response.content:
  File "/opt/venvs/zuul/src/github3.py/github3/models.py", line 237, in _boolean
    raise exceptions.error_for(response)
ForbiddenError: 403 Resource not accessible by integration
2017-04-25 19:33:15,441 DEBUG zuul.Gearman: Looking for lost builds
SpamapS commented 7 years ago

This is a duplicate of #235