Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-openqa_review for
openSUSE:Factory checked in at 2021-06-21 20:36:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-openqa_review (Old)
and /work/SRC/openSUSE:Factory/.python-openqa_review.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-openqa_review"
Mon Jun 21 20:36:03 2021 rev:37 rq:901166 version:1.21.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-openqa_review/python-openqa_review.changes
2021-06-14 23:11:51.488834219 +0200
+++
/work/SRC/openSUSE:Factory/.python-openqa_review.new.2625/python-openqa_review.changes
2021-06-21 20:36:29.782685642 +0200
@@ -1,0 +2,6 @@
+Mon Jun 21 12:57:46 UTC 2021 - [email protected]
+
+- Update to version 1.21.1:
+ * Surface last error from browser.get
+
+-------------------------------------------------------------------
Old:
----
python-openqa_review-1.21.0.obscpio
New:
----
python-openqa_review-1.21.1.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-openqa_review.spec ++++++
--- /var/tmp/diff_new_pack.RAdd0S/_old 2021-06-21 20:36:30.394686418 +0200
+++ /var/tmp/diff_new_pack.RAdd0S/_new 2021-06-21 20:36:30.398686423 +0200
@@ -31,7 +31,7 @@
%define binaries openqa-review openqa-review-daily-email
openqa-review-sles-ha tumblesle-release openqa-review-functional_yast_concise
%define oldpython python
Name: python-%{short_name}%{?name_ext}
-Version: 1.21.0
+Version: 1.21.1
Release: 0
Summary: A review helper script for openQA
License: MIT
++++++ python-openqa_review-1.21.0.obscpio ->
python-openqa_review-1.21.1.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-openqa_review-1.21.0/openqa_review/browser.py
new/python-openqa_review-1.21.1/openqa_review/browser.py
--- old/python-openqa_review-1.21.0/openqa_review/browser.py 2021-06-09
19:27:24.000000000 +0200
+++ new/python-openqa_review-1.21.1/openqa_review/browser.py 2021-06-21
11:35:26.000000000 +0200
@@ -112,6 +112,7 @@
return content
def _get(self, url, as_json=False): # pragma: no cover
+ last_error = ""
for i in range(1, 7):
try:
r = requests.get(url, auth=self.auth)
@@ -138,9 +139,13 @@
)
log.error(msg)
raise DownloadError(msg)
- except requests.exceptions.ConnectionError:
+ except requests.exceptions.ConnectionError as e:
+ # Save the status code for the for/else branch
+ last_error = ": {}".format(str(e))
log.info("Connection error encountered accessing %s, retrying
try %s" % (url, i))
continue
+ # Save the status code for the for/else branch
+ last_error = ": Request failed with status
{}".format(r.status_code)
if r.status_code in {502, 503, 504}:
log.info("Request to %s failed with status code %s, retrying
try %s" % (url, r.status_code, i))
continue
@@ -150,7 +155,7 @@
raise DownloadError(msg)
break
else:
- msg = "Request to %s was not successful after multiple retries,
giving up" % url
+ msg = "Request to {} was not successful after {}
retries{}".format(url, i, last_error)
log.warn(msg)
raise DownloadError(msg)
content = r.json() if as_json else r.content.decode("utf8")
++++++ python-openqa_review.obsinfo ++++++
--- /var/tmp/diff_new_pack.RAdd0S/_old 2021-06-21 20:36:30.766686890 +0200
+++ /var/tmp/diff_new_pack.RAdd0S/_new 2021-06-21 20:36:30.766686890 +0200
@@ -1,5 +1,5 @@
name: python-openqa_review
-version: 1.21.0
-mtime: 1623259644
-commit: 5581e6d558ba551ceffd83bd967f5191443b66ed
+version: 1.21.1
+mtime: 1624268126
+commit: 517239d5b13af0b3cade59c49eb34beb21d7a750