t-bug-catcher 0.5.9__tar.gz → 0.5.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/PKG-INFO +1 -1
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/setup.cfg +1 -1
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/setup.py +1 -1
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/__init__.py +1 -1
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/jira.py +9 -2
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher.egg-info/PKG-INFO +1 -1
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/MANIFEST.in +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/README.rst +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/pyproject.toml +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/requirements.txt +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/bug_catcher.py +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/bug_snag.py +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/config.py +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/exceptions.py +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/resources/whispers_config.yml +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/stack_saver.py +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/utils/__init__.py +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/utils/common.py +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/utils/logger.py +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher/workitems.py +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher.egg-info/SOURCES.txt +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher.egg-info/dependency_links.txt +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher.egg-info/not-zip-safe +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher.egg-info/requires.txt +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/t_bug_catcher.egg-info/top_level.txt +0 -0
- {t_bug_catcher-0.5.9 → t_bug_catcher-0.5.10}/tests/test_t_bug_catcher.py +0 -0
|
@@ -26,7 +26,7 @@ setup(
|
|
|
26
26
|
packages=find_packages(include=["t_bug_catcher", "t_bug_catcher.*"]),
|
|
27
27
|
test_suite="tests",
|
|
28
28
|
url="https://www.thoughtful.ai/",
|
|
29
|
-
version="0.5.
|
|
29
|
+
version="0.5.10",
|
|
30
30
|
zip_safe=False,
|
|
31
31
|
install_requires=install_requirements,
|
|
32
32
|
include_package_data=True,
|
|
@@ -15,6 +15,7 @@ from typing import List, Optional, Union
|
|
|
15
15
|
|
|
16
16
|
import requests
|
|
17
17
|
from requests.auth import HTTPBasicAuth
|
|
18
|
+
from requests.exceptions import ChunkedEncodingError
|
|
18
19
|
from retry import retry
|
|
19
20
|
|
|
20
21
|
from .config import CONFIG
|
|
@@ -29,11 +30,11 @@ def retry_if_bad_request(func):
|
|
|
29
30
|
attempt = 1
|
|
30
31
|
tries = 3
|
|
31
32
|
|
|
32
|
-
@retry(exceptions=BadRequestError, tries=tries, delay=1, backoff=2)
|
|
33
|
+
@retry(exceptions=(BadRequestError, ChunkedEncodingError), tries=tries, delay=1, backoff=2)
|
|
33
34
|
def wrapper(*args, **kwargs):
|
|
34
35
|
try:
|
|
35
36
|
return func(*args, **kwargs)
|
|
36
|
-
except BadRequestError as ex:
|
|
37
|
+
except (BadRequestError, ChunkedEncodingError) as ex:
|
|
37
38
|
nonlocal attempt
|
|
38
39
|
attempt = attempt + 1 if attempt < tries else 1
|
|
39
40
|
raise ex
|
|
@@ -1120,6 +1121,12 @@ class Jira:
|
|
|
1120
1121
|
else []
|
|
1121
1122
|
)
|
|
1122
1123
|
|
|
1124
|
+
if len(issue.get("fields", {}).get("comment", [])) >= 5000:
|
|
1125
|
+
logger.warning(
|
|
1126
|
+
f"Comments for '{issue.get('key')}' were not posted due to exceeding JIRA comments limit (5000)."
|
|
1127
|
+
)
|
|
1128
|
+
return
|
|
1129
|
+
|
|
1123
1130
|
self.update_comment(
|
|
1124
1131
|
ticket_id=issue["id"],
|
|
1125
1132
|
comments=self.__create_comment_markup(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|