summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_html_breakages.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-22 22:41:22 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-22 22:41:22 +0200
commit08b1344730b039167c94aca9912b9dc9def3ae2e (patch)
tree2881d745d9d997a390f005b4deba30c60dd912a8 /bin/reproducible_html_breakages.py
parent1515f07f4ef272638eeefdd1ce5591c70b5f072f (diff)
downloadjenkins.debian.net-08b1344730b039167c94aca9912b9dc9def3ae2e.tar.xz
reproducible: ignore files which only exist for a short amount of time
Diffstat (limited to 'bin/reproducible_html_breakages.py')
-rwxr-xr-xbin/reproducible_html_breakages.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/reproducible_html_breakages.py b/bin/reproducible_html_breakages.py
index d3d88da7..19fdd0c7 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