Integrate exact user-authorized correct03 720 debug assets with isolated admission
This commit is contained in:
@@ -114,7 +114,7 @@ def probe_music_clip(path):
|
||||
'nearFullScaleSamples':sum(abs(x)>=0.999 for x in samples),'humanListening':'not_run'}
|
||||
|
||||
|
||||
def check_bundle(manifest,expected,output):
|
||||
def check_bundle(manifest,expected,output,user_authorized_debug=False):
|
||||
manifest=manifest.resolve(strict=True);root=manifest.parent
|
||||
require(re.fullmatch('[0-9a-f]{64}',expected) and file_sha(manifest)==expected,'candidate index drift')
|
||||
index=read_json(manifest)
|
||||
@@ -175,14 +175,15 @@ def check_bundle(manifest,expected,output):
|
||||
require(p.stat().st_size==row['bytes'] and p.stat().st_size<=128_000_000 and file_sha(p)==row['sha256'],'declared file mismatch: '+name)
|
||||
table[name]={'sha256':row['sha256'],'bytes':row['bytes']}
|
||||
require(all(table.get(name)==row for name,row in files.items()),'inventory missing/mismatching referenced file')
|
||||
require(not user_authorized_debug or expected=='208f703ed92bf795bfeb78a1cef89b67bed2e45da80038a56157fd1ecd4cfa93','exact user-authorized debug index required')
|
||||
log=output/'production-index-tests.txt'
|
||||
with log.open('x') as f:
|
||||
result=subprocess.run([sys.executable,str(ROOT/'scripts/check-reply-regressions.py'),'--suite','avatar','--index-manifest',str(manifest)],stdout=f,stderr=subprocess.STDOUT,timeout=180)
|
||||
result=subprocess.run([sys.executable,str(ROOT/'scripts/check-reply-regressions.py'),'--suite','avatar','--index-manifest',str(manifest),*(['--user-authorized-debug-sha',expected] if user_authorized_debug else [])],stdout=f,stderr=subprocess.STDOUT,timeout=180)
|
||||
require(result.returncode==0 and 'PASS: actual exported v2 index parsed' in log.read_text(),'production index admission failed; see '+str(log))
|
||||
files['manifest.json']={'sha256':expected,'bytes':manifest.stat().st_size}
|
||||
for name,row in files.items(): require(file_sha(locate(root,name))==row['sha256'],'bundle changed during gate')
|
||||
report={'status':'passed','scope':'read_only_machine_gate_no_approval_no_activation','manifest_sha256':expected,
|
||||
'runtime_packages':runtimes,'combined_rgba_bytes':rgba,'referenced_files':len(files),'preview_files_not_packaged':len(table.keys()-files.keys()),
|
||||
'user_authorized_debug':user_authorized_debug,'runtime_packages':runtimes,'combined_rgba_bytes':rgba,'referenced_files':len(files),'preview_files_not_packaged':len(table.keys()-files.keys()),
|
||||
'edge_count':len(index['edges']),'action_count':len(actions),'dance_available':False,
|
||||
'candidate_dance_validated':bool(actions),'action_measurements':action_measurements,'production_kotlin_index':'passed',
|
||||
'naturalness':'not_certified','real_device':'not_run','files':files}
|
||||
|
||||
Reference in New Issue
Block a user