forked from mtusi2026/mtusi2026lab5
Record final validation and boundary PNG memory failure
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import json
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
sys.path.insert(0, str(ROOT / 'scripts'))
|
||||
import pipeline_suite as ps
|
||||
|
||||
stack = ps.Stack(ps.arguments())
|
||||
report = json.loads(Path(__file__).with_name('png-limits.json').read_text())
|
||||
ids = report['accepted_ids']
|
||||
array = '{' + ','.join(ids) + '}'
|
||||
rows = {name: stack.sql(name, ids=array) for name in ('pending_outbox', 'staging_left', 'nonterminal', 'duplicate_effects', 'object_keys')}
|
||||
keys = {row['key'] for row in rows.pop('object_keys')}
|
||||
objects = stack.objects(ids)
|
||||
assert not any(rows.values()), rows
|
||||
assert objects == keys, {'extra': sorted(objects - keys), 'missing': sorted(keys - objects)}
|
||||
queues = stack.queues()
|
||||
assert queues[ps.QUEUE] == (0, 0), queues
|
||||
result = {'source_sha': ps.run(['git', 'rev-parse', 'HEAD']).strip(), 'at': ps.now(), 'result': 'PASS', 'accepted_ids': ids, 'rows': rows, 's3_objects': len(objects), 'queues': queues, 'reason': 'Read-only recheck after scheduled staging sweep; no scenario rerun. Initial no_orphans ran before the sweep.'}
|
||||
Path(__file__).with_name('cleanup-recheck.json').write_text(json.dumps(result, indent=2) + '\n')
|
||||
print(json.dumps(result, indent=2))
|
||||
Reference in New Issue
Block a user