[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: ignore files which only exist for a short amount of time

Holger Levsen holger at moszumanska.debian.org
Tue Sep 22 20:41:45 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 08b1344730b039167c94aca9912b9dc9def3ae2e
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Sep 22 22:41:22 2015 +0200

    reproducible: ignore files which only exist for a short amount of time
---
 bin/reproducible_html_breakages.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index d3d88da..19fdd0c 100755
--- a/bin/reproducible_html_breakages.py
+++ b/bin/reproducible_html_breakages.py
@@ -9,6 +9,7 @@
 # Build a page full of CI issues to investigate
 
 from reproducible_common import *
+import time
 
 
 def unrep_with_dbd_issues():
@@ -146,8 +147,11 @@ def alien_log(directory=None):
                              + bcolors.ENDC)
                 continue
             if not query_db(query.format(pkg=pkg, suite=suite, arch=arch)):
-                bad_files.append('/'.join([root, file]))
-                log.warning('/'.join([root, file]) + ' should not be there')
+                if os.path.getmtime('/'.join([root, file]))<time.time()-1800:
+                    bad_files.append('/'.join([root, file]))
+                    log.warning('/'.join([root, file]) + ' should not be there')
+                else:
+                    log.info('ignoring ' + '/'.join([root, file]) + ' which should not be there, but is also less than 30m old and will probably soon be gone.')
     return bad_files
 
 

-- 
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