Hello community,
here is the log from the commit of package python-openqa_review for
openSUSE:Factory checked in at 2017-03-12 20:04:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-openqa_review (Old)
and /work/SRC/openSUSE:Factory/.python-openqa_review.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-openqa_review"
Sun Mar 12 20:04:01 2017 rev:10 rq:477770 version:1.6.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-openqa_review/python-openqa_review.changes
2017-03-03 17:56:14.497910926 +0100
+++
/work/SRC/openSUSE:Factory/.python-openqa_review.new/python-openqa_review.changes
2017-03-12 20:04:02.289433026 +0100
@@ -1,0 +2,14 @@
+Wed Mar 08 14:29:14 UTC 2017 - [email protected]
+
+- Update to version 1.6.2:
+ * dashboard: Correct exclude regex syntax after live test
+
+-------------------------------------------------------------------
+Wed Mar 08 12:04:22 UTC 2017 - [email protected]
+
+- Update to version 1.6.1:
+ * Add option to exclude job groups by regex
+ * Fix flake8 checks in tumblesle_release
+ * Ignore obsolete released and development job groups in dashboard report
+
+-------------------------------------------------------------------
Old:
----
python-openqa_review-1.5.2.tar.gz
New:
----
python-openqa_review-1.6.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-openqa_review.spec ++++++
--- /var/tmp/diff_new_pack.sknSUG/_old 2017-03-12 20:04:02.997332857 +0100
+++ /var/tmp/diff_new_pack.sknSUG/_new 2017-03-12 20:04:02.997332857 +0100
@@ -18,7 +18,7 @@
%define short_name openqa_review
Name: python-%{short_name}
-Version: 1.5.2
+Version: 1.6.2
Release: 0
Summary: A review helper script for openQA
License: MIT
++++++ _service ++++++
--- /var/tmp/diff_new_pack.sknSUG/_old 2017-03-12 20:04:03.037327197 +0100
+++ /var/tmp/diff_new_pack.sknSUG/_new 2017-03-12 20:04:03.041326631 +0100
@@ -6,6 +6,7 @@
<param name="scm">git</param>
<param name="revision">master</param>
<param name="changesgenerate">enable</param>
+ <param name="changesauthor">[email protected]</param>
</service>
<service name="recompress" mode="disabled">
<param name="compression">xz</param>
++++++ python-openqa_review-1.5.2.tar.gz -> python-openqa_review-1.6.2.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openqa_review-1.5.2/bin/openqa_review_osd_daily_email
new/openqa_review-1.6.2/bin/openqa_review_osd_daily_email
--- old/openqa_review-1.5.2/bin/openqa_review_osd_daily_email 2017-03-03
06:14:56.000000000 +0100
+++ new/openqa_review-1.6.2/bin/openqa_review_osd_daily_email 2017-03-08
15:20:04.000000000 +0100
@@ -5,7 +5,7 @@
recv="${recv:-"[email protected]"}"
html_target="${html_target:-"/suse/okurz/Export/openqa_suse_de_status.html"}"
-openqa_review_args="${openqa_review_args:-"--host http://openqa.suse.de -n -r
-T --query-issue-status --no-empty-sections --include-softfails
--running-threshold=2 $@"}"
+openqa_review_args="${openqa_review_args:-"--host http://openqa.suse.de -n -r
-T --query-issue-status --no-empty-sections --include-softfails
--running-threshold=2 --exclude-job-groups ^(Released|Development) $@"}"
load_args="${load_args:-"--load --load-dir=${tmp}"}"
openqa_review_email_args="${openqa_review_email_args:-"${load_args}"}"
openqa_review_html_args="${openqa_review_html_args:-"${load_args}
--report-links"}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/openqa_review-1.5.2/openqa_review/openqa_review.py
new/openqa_review-1.6.2/openqa_review/openqa_review.py
--- old/openqa_review-1.5.2/openqa_review/openqa_review.py 2017-03-03
06:14:56.000000000 +0100
+++ new/openqa_review-1.6.2/openqa_review/openqa_review.py 2017-03-08
15:20:04.000000000 +0100
@@ -881,6 +881,8 @@
parser.add_argument('-j', '--job-groups',
help="""Only handle selected job group(s), comma
separated, e.g. \'openSUSE Tumbleweed Gnome\'.
A regex also works, e.g. \'openSUSE Tumbleweed\' or
\'(Gnome|KDE)\'.""")
+ parser.add_argument('--exclude-job-groups',
+ help="""Exclude selected job groups by regex, inverse
of '--job-groups'.""")
parser.add_argument('-J', '--job-group-urls',
help="""Only handle selected job group(s) specified by
URL, comma separated. Overwrites "--host" argument.
Skips parsing on main page and can actually save some
seconds.""")
@@ -984,6 +986,10 @@
job_pattern = re.compile('(%s)' %
'|'.join(args.job_groups.split(',')))
job_groups = {k: v for k, v in iteritems(job_groups) if
job_pattern.search(k)}
log.info("Job group URL for %s: %s" % (args.job_groups,
job_groups))
+ if args.exclude_job_groups:
+ job_pattern = re.compile('(%s)' %
'|'.join(args.exclude_job_groups.split(',')))
+ job_groups = {k: v for k, v in iteritems(job_groups) if not
job_pattern.search(k)}
+ log.info("Job group URL excluding %s: %s" %
(args.exclude_job_groups, job_groups))
return SortedDict(job_groups)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openqa_review-1.5.2/openqa_review/tumblesle_release.py
new/openqa_review-1.6.2/openqa_review/tumblesle_release.py
--- old/openqa_review-1.5.2/openqa_review/tumblesle_release.py 2017-03-03
06:14:56.000000000 +0100
+++ new/openqa_review-1.6.2/openqa_review/tumblesle_release.py 2017-03-08
15:20:04.000000000 +0100
@@ -113,11 +113,13 @@
self.browser = Browser(args, args.openqa_host)
if not config.has_section('notification'):
return
- self.credentials = pika.PlainCredentials(config.get('notification',
'username', fallback='guest'), config.get('notification', 'password',
fallback='guest'))
+ self.credentials = pika.PlainCredentials(config.get('notification',
'username', fallback='guest'),
+ config.get('notification',
'password', fallback='guest'))
self.notify_host = config.get('notification', 'host',
fallback='kazhua.suse.de')
self.notify_connect()
def notify_connect(self):
+ """Connect to notification bus."""
self.notify_connection =
pika.BlockingConnection(pika.ConnectionParameters(host=self.notify_host,
credentials=self.credentials, heartbeat_interval=10))
self.notify_channel = self.notify_connection.channel()
self.notify_channel.exchange_declare(exchange='pubsub', type='topic',
passive=True, durable=True)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/openqa_review-1.5.2/tests/single_job_group/https%3A::openqa.opensuse.org:group_overview:22.json
new/openqa_review-1.6.2/tests/single_job_group/https%3A::openqa.opensuse.org:group_overview:22.json
---
old/openqa_review-1.5.2/tests/single_job_group/https%3A::openqa.opensuse.org:group_overview:22.json
2017-03-03 06:14:56.000000000 +0100
+++
new/openqa_review-1.6.2/tests/single_job_group/https%3A::openqa.opensuse.org:group_overview:22.json
2017-03-08 15:20:04.000000000 +0100
@@ -6,7 +6,7 @@
"pinned_comments": [],
"description": "",
"max_jobs": 91,
- "group": {"id": 22, "name": "x-released openSUSE Tumbleweed GA JeOS"},
+ "group": {"id": 22, "name": "openSUSE Leap 42.2 AArch64"},
"result": {
"1.64": {
"distri": "opensuse",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/openqa_review-1.5.2/tests/test_openqa_review.py
new/openqa_review-1.6.2/tests/test_openqa_review.py
--- old/openqa_review-1.5.2/tests/test_openqa_review.py 2017-03-03
06:14:56.000000000 +0100
+++ new/openqa_review-1.6.2/tests/test_openqa_review.py 2017-03-08
15:20:04.000000000 +0100
@@ -32,6 +32,7 @@
args.host = 'https://openqa.opensuse.org'
args.job_group_urls = None
args.job_groups = None
+ args.exclude_job_groups = None
args.no_progress = True
args.verbose = 1
args.output_state_results = False
@@ -325,6 +326,14 @@
'openSUSE Tumbleweed',
'openSUSE Tumbleweed AArch64',
'openSUSE Tumbleweed PowerPC'])
+ args.exclude_job_groups = '(Krypton|Leap)'
+ job_groups = openqa_review.get_job_groups(browser, root_url, args)
+ assert sorted(job_groups.keys()) == sorted([
+ 'Staging Projects',
+ 'Test Parent Group / openSUSE Argon',
+ 'openSUSE Tumbleweed',
+ 'openSUSE Tumbleweed AArch64',
+ 'openSUSE Tumbleweed PowerPC'])
# TODO should be covered by doctest already but I can not get coverage
analysis to work with doctests in py.test