Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message and Event dead link handling (dev branch) #2899

Open
sgoggins opened this issue Aug 15, 2024 · 1 comment
Open

Message and Event dead link handling (dev branch) #2899

sgoggins opened this issue Aug 15, 2024 · 1 comment
Labels
bug Documents unexpected/wrong/buggy behavior

Comments

@sgoggins
Copy link
Member

sgoggins commented Aug 15, 2024

For different reasons there are sometimes links for messages or events associated with Issues and PRs that do not exist. Sometimes it is because the issue is deleted or issues have been disabled. Sometimes there are no messages. Here is an example error message for issue events:

Traceback (most recent call last):
  File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/celery/app/trace.py", line 451, in trace_task
    R = retval = fun(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/celery/app/trace.py", line 734, in __protected_call__
    return self.run(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/augur/augur/tasks/github/events.py", line 39, in collect_events
    for event in event_generator:
  File "/home/ubuntu/github/augur/augur/tasks/github/events.py", line 103, in collect_pr_and_issues_events_by_number
    yield from github_data_access.paginate_resource(event_url)
  File "/home/ubuntu/github/augur/augur/tasks/github/util/github_data_access.py", line 44, in paginate_resource
    response = self.make_request_with_retries(url)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/augur/augur/tasks/github/util/github_data_access.py", line 114, in make_request_with_retries
    return self.__make_request_with_retries(url, method, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/tenacity/__init__.py", line 330, in wrapped_f
    return self(f, *args, **kw)
           ^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/tenacity/__init__.py", line 467, in __call__
    do = self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/tenacity/__init__.py", line 368, in iter
    result = action(retry_state)
             ^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/tenacity/__init__.py", line 390, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/home/ubuntu/github/virtualenvs/hosted/lib/python3.11/site-packages/tenacity/__init__.py", line 470, in __call__
    result = fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/augur/augur/tasks/github/util/github_data_access.py", line 128, in __make_request_with_retries
    return self.make_request(url, method, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/github/augur/augur/tasks/github/util/github_data_access.py", line 102, in make_request
    raise UrlNotFoundException(f"Could not find {url}")
augur.tasks.github.util.github_data_access.UrlNotFoundException: Could not find https://api.github.com/repos/dotnet/runtime/issues/92433/events
@sgoggins sgoggins changed the title Message and Event dead link handling Message and Event dead link handling (dev branch) Aug 15, 2024
@sgoggins sgoggins added the bug Documents unexpected/wrong/buggy behavior label Aug 15, 2024
@sgoggins sgoggins transferred this issue from chaoss/augur Aug 19, 2024
@sgoggins sgoggins transferred this issue from chaoss/augur-community-reports Aug 19, 2024
@sgoggins
Copy link
Member Author

I think this related to issue transfer functionality that goes wrong:

https://github.com/chaoss/augur/issues/2896 Was the first:

Then we transferred it to:

https://github.com/chaoss/augur-community-reports/issues/63

Then we transferred it back and a new issue was opened:

#2899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Documents unexpected/wrong/buggy behavior
Projects
Status: Backlog
Development

No branches or pull requests

1 participant