[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: reword notes warnings and make the job not fail if package was removed

Holger Levsen holger at moszumanska.debian.org
Sun Sep 6 12:01:47 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 47b87c6c3cbf548ed51a936606196ba8b9a8ba98
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Sep 6 14:01:07 2015 +0200

    reproducible: reword notes warnings and make the job not fail if package was removed
---
 bin/reproducible_notes.py   | 7 ++++---
 logparse/reproducible.rules | 1 -
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/bin/reproducible_notes.py b/bin/reproducible_notes.py
index b617359..80e0734 100755
--- a/bin/reproducible_notes.py
+++ b/bin/reproducible_notes.py
@@ -39,7 +39,8 @@ def load_notes():
         try:
             assert 'version' in original[pkg]
         except AssertionError:
-            print_critical_message(pkg + ' did not include a version')
+            print_critical_message(pkg + ' does not include a version')
+            irc_msg('The note for ' + pkg + ' does not include a version.')
         query = 'SELECT s.id, s.version, s.suite ' + \
                 'FROM results AS r JOIN sources AS s ON r.package_id=s.id' + \
                 ' WHERE s.name="{pkg}" AND r.status != ""' + \
@@ -47,12 +48,12 @@ def load_notes():
         query = query.format(pkg=pkg)
         result = query_db(query)
         if not result:
-            print_critical_message('Warning: This query produces no results: ' + query
+            print_warning_message('Warning: This query produces no results: ' + query
                                    + '\nThis means there is no tested ' +
                                    'package with the name ' + pkg)
             try:
                 irc_msg('There is problem with the note for ' + pkg +
-                        ' - please have a look at ' + os.environ['BUILD_URL'])
+                        ' - please check ' + os.environ['BUILD_URL'])
             except KeyError:
                 log.error('There is a problem with the note for %s - please '
                           'check.', pkg)
diff --git a/logparse/reproducible.rules b/logparse/reproducible.rules
index 1d34aad..0856d5d 100644
--- a/logparse/reproducible.rules
+++ b/logparse/reproducible.rules
@@ -13,7 +13,6 @@ warning /Warning: could not download.+/
 warning /Warning: cannot update html pages for.+/
 warning /Warning: package .+is probably already building elsewhere, exiting./
 warning /Warning: too much difference for .+, aborting. Please investigate and update manually./
-warning /Warning: This query produces no results:.+/
 warning /Warning: couldn't delete old files from.+/
 warning /Warning: dose-deb-coinstall cannot.+/
 warning /Warning: failed to update the .+ schroot./

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list