summaryrefslogtreecommitdiff
path: root/ybd
diff options
context:
space:
mode:
Diffstat (limited to 'ybd')
-rwxr-xr-xybd/__main__.py6
-rw-r--r--ybd/app.py1
-rw-r--r--ybd/cache.py7
3 files changed, 14 insertions, 0 deletions
diff --git a/ybd/__main__.py b/ybd/__main__.py
index 8309f84..bdc0b4f 100755
--- a/ybd/__main__.py
+++ b/ybd/__main__.py
@@ -51,6 +51,12 @@ def write_yaml():
def write_cache_key():
with open(app.config['result-file'], 'w') as f:
f.write(target['cache'] + '\n')
+ app.log('RESULT', '%s contains %s systems' % (app.config['target'],
+ app.config['systems']))
+ app.log('RESULT', '%s contains %s strata' % (app.config['target'],
+ app.config['strata']))
+ app.log('RESULT', '%s contains %s chunks' % (app.config['target'],
+ app.config['chunks']))
app.log('RESULT', 'Cache-key for target is at',
app.config['result-file'])
diff --git a/ybd/app.py b/ybd/app.py
index 31ec938..e47b56f 100644
--- a/ybd/app.py
+++ b/ybd/app.py
@@ -166,6 +166,7 @@ def setup(args):
config['kbas-url'] += '/'
config['total'] = config['tasks'] = config['counter'] = 0
+ config['systems'] = config['strata'] = config['chunks'] = 0
config['reproduced'] = []
config['keys'] = []
config['pid'] = os.getpid()
diff --git a/ybd/cache.py b/ybd/cache.py
index b2094c2..d9a29ff 100644
--- a/ybd/cache.py
+++ b/ybd/cache.py
@@ -64,6 +64,13 @@ def cache_key(dn):
x = ' '
app.config['tasks'] += 1
+ if dn.get('kind', 'chunk') == 'chunk':
+ app.config['chunks'] += 1
+ if dn.get('kind', 'chunk') == 'stratum':
+ app.config['strata'] += 1
+ if dn.get('kind', 'chunk') == 'system':
+ app.config['systems'] += 1
+
app.log('CACHE-KEYS', '[%s]' % x, dn['cache'])
if app.config.get('manifest', False):
update_manifest(dn, app.config['manifest'])