Hello community,
here is the log from the commit of package openSUSE-release-tools for
openSUSE:Factory checked in at 2019-09-02 13:25:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openSUSE-release-tools (Old)
and /work/SRC/openSUSE:Factory/.openSUSE-release-tools.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "openSUSE-release-tools"
Mon Sep 2 13:25:41 2019 rev:212 rq:727403 version:20190829.72c1e9b4
Changes:
--------
---
/work/SRC/openSUSE:Factory/openSUSE-release-tools/openSUSE-release-tools.changes
2019-08-30 14:41:46.657418660 +0200
+++
/work/SRC/openSUSE:Factory/.openSUSE-release-tools.new.7948/openSUSE-release-tools.changes
2019-09-02 13:25:45.265307859 +0200
@@ -1,0 +2,9 @@
+Thu Aug 29 20:19:26 UTC 2019 - [email protected]
+
+- Update to version 20190829.72c1e9b4:
+ * obs_operator: override HTTPServer.handle_error() to capture exceptions.
+ * osclib/sentry: tag osc version.
+ * osclib/sentry: provide dummy client.
+ * osclib/sentry: sentry_client(): handle 0.11.x API change.
+
+-------------------------------------------------------------------
Old:
----
openSUSE-release-tools-20190829.e912e9d2.obscpio
New:
----
openSUSE-release-tools-20190829.72c1e9b4.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ openSUSE-release-tools.spec ++++++
--- /var/tmp/diff_new_pack.jw3EEk/_old 2019-09-02 13:25:47.709307399 +0200
+++ /var/tmp/diff_new_pack.jw3EEk/_new 2019-09-02 13:25:47.709307399 +0200
@@ -20,7 +20,7 @@
%define source_dir openSUSE-release-tools
%define announcer_filename factory-package-news
Name: openSUSE-release-tools
-Version: 20190829.e912e9d2
+Version: 20190829.72c1e9b4
Release: 0
Summary: Tools to aid in staging and release work for openSUSE/SUSE
License: GPL-2.0-or-later AND MIT
@@ -268,6 +268,8 @@
Requires: %{name} = %{version}
Requires: osc >= 0.165.1
Requires: python3-osc
+# internal API change related to accessing DSN in osclib/sentry.py
+Suggests: python3-sentry-sdk >= 0.11.0
%description -n osclib
Supplemental osc libraries utilized by release tools.
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.jw3EEk/_old 2019-09-02 13:25:47.749307391 +0200
+++ /var/tmp/diff_new_pack.jw3EEk/_new 2019-09-02 13:25:47.753307390 +0200
@@ -1,6 +1,6 @@
<servicedata>
<service name="tar_scm">
<param
name="url">https://github.com/openSUSE/openSUSE-release-tools.git</param>
- <param
name="changesrevision">41ea0c132ff4ab72526347240290bac2578d7b7f</param>
+ <param
name="changesrevision">3a2aed7f333b43fbd8b00a0d2db4cd0b7ddd677e</param>
</service>
</servicedata>
++++++ openSUSE-release-tools-20190829.e912e9d2.obscpio ->
openSUSE-release-tools-20190829.72c1e9b4.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20190829.e912e9d2/dist/package/openSUSE-release-tools.spec
new/openSUSE-release-tools-20190829.72c1e9b4/dist/package/openSUSE-release-tools.spec
---
old/openSUSE-release-tools-20190829.e912e9d2/dist/package/openSUSE-release-tools.spec
2019-08-29 17:40:08.000000000 +0200
+++
new/openSUSE-release-tools-20190829.72c1e9b4/dist/package/openSUSE-release-tools.spec
2019-08-29 22:09:59.000000000 +0200
@@ -268,6 +268,8 @@
Requires: %{name} = %{version}
Requires: osc >= 0.165.1
Requires: python3-osc
+# internal API change related to accessing DSN in osclib/sentry.py
+Suggests: python3-sentry-sdk >= 0.11.0
%description -n osclib
Supplemental osc libraries utilized by release tools.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20190829.e912e9d2/obs_operator.py
new/openSUSE-release-tools-20190829.72c1e9b4/obs_operator.py
--- old/openSUSE-release-tools-20190829.e912e9d2/obs_operator.py
2019-08-29 17:40:08.000000000 +0200
+++ new/openSUSE-release-tools-20190829.72c1e9b4/obs_operator.py
2019-08-29 22:09:59.000000000 +0200
@@ -27,9 +27,13 @@
# https://stackoverflow.com/a/47012250, workaround by making EVERYTHING LEGAL!
http.cookies._is_legal_key = lambda _: True
+sentry_sdk = sentry_init()
+
# Available in python 3.7.
class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):
- pass
+ def handle_error(self, request, client_address):
+ super().handle_error(request, client_address)
+ sentry_sdk.capture_exception()
class RequestHandler(BaseHTTPRequestHandler):
COOKIE_NAME = 'openSUSE_session' # Both OBS and IBS.
@@ -361,7 +365,7 @@
def main(args):
conf.get_config() # Allow sentry DSN to be available.
- sentry_init()
+ sentry_sdk = sentry_init()
RequestHandler.apiurl = args.apiurl
RequestHandler.session = args.session
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openSUSE-release-tools-20190829.e912e9d2/osclib/sentry.py
new/openSUSE-release-tools-20190829.72c1e9b4/osclib/sentry.py
--- old/openSUSE-release-tools-20190829.e912e9d2/osclib/sentry.py
2019-08-29 17:40:08.000000000 +0200
+++ new/openSUSE-release-tools-20190829.72c1e9b4/osclib/sentry.py
2019-08-29 22:09:59.000000000 +0200
@@ -1,10 +1,12 @@
from osc import conf
+from osc import core
from osclib.common import VERSION
def sentry_init(obs_apiurl=None, tags=None):
try:
import sentry_sdk
except ImportError:
+ sentry_init.client = sentry_client_dummy()
return sentry_sdk_dummy()
sentry_init.client = sentry_sdk.init(
@@ -13,6 +15,8 @@
release=VERSION)
with sentry_sdk.configure_scope() as scope:
+ scope.set_tag('osc', core.__version__)
+
if obs_apiurl:
scope.set_tag('obs_apiurl', obs_apiurl)
scope.user = {'username': conf.get_apiurl_usr(obs_apiurl)}
@@ -24,7 +28,7 @@
return sentry_sdk
def sentry_client():
- return sentry_init.client
+ return sentry_init.client._client
class sentry_sdk_dummy:
def configure_scope(*args, **kw):
@@ -43,5 +47,8 @@
def __getattr__(self, _):
return nop_func
+class sentry_client_dummy(nop_class):
+ options = {}
+
def nop_func(*args, **kw):
pass
++++++ openSUSE-release-tools.obsinfo ++++++
--- /var/tmp/diff_new_pack.jw3EEk/_old 2019-09-02 13:25:48.421307265 +0200
+++ /var/tmp/diff_new_pack.jw3EEk/_new 2019-09-02 13:25:48.425307264 +0200
@@ -1,5 +1,5 @@
name: openSUSE-release-tools
-version: 20190829.e912e9d2
-mtime: 1567093208
-commit: e912e9d2c38be75d5c42a0f15f735b818e7a067f
+version: 20190829.72c1e9b4
+mtime: 1567109399
+commit: 72c1e9b445cf7c22b645706377e498aecc77d872