diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-09-22 22:41:22 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-09-22 22:41:22 +0200 |
commit | 08b1344730b039167c94aca9912b9dc9def3ae2e (patch) | |
tree | 2881d745d9d997a390f005b4deba30c60dd912a8 | |
parent | 1515f07f4ef272638eeefdd1ce5591c70b5f072f (diff) | |
download | jenkins.debian.net-08b1344730b039167c94aca9912b9dc9def3ae2e.tar.xz |
reproducible: ignore files which only exist for a short amount of time
-rwxr-xr-x | bin/reproducible_html_breakages.py | 8 |
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 |