Add one-button bounded front-camera diagnostics and automatic report

This commit is contained in:
zenord
2026-10-13 19:28:04 +08:00
parent 688bb7d6b3
commit 8cf7d7316c
30 changed files with 937 additions and 56 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ root=Path.cwd()
paths=list((root/'app/src/main/java').rglob('*.kt'))+list((root/'app/src/androidTest').rglob('*.kt'))+list((root/'tests').rglob('*.kt'))
paths += list((root/'tests/avatar-pixels').glob('*.c'))
paths += [root/p for p in ('app/build.gradle','scripts/check-reply-regressions.py','scripts/check-expression-rules.sh','scripts/check-avatar-regressions.sh','scripts/check-avatar-ui.py','scripts/check-camera-controller.py','scripts/check-avatar-shader.py','scripts/import-avatar-graph.py','scripts/package-avatar-safe-release.sh','scripts/package-avatar-safe-release.py','scripts/package-avatar-engineering.py','scripts/package-avatar-natural.py','scripts/package-avatar-ui.py','scripts/package-avatar-mouth.py')]
result={'status':'passed','jvm_entry_points':10,'camera_callback_replay':True,'uiSourceContracts':'passed','uiDeviceInstrumentation':'not_run','real_device':'pending',
result={'status':'passed','jvm_entry_points':11,'camera_callback_replay':True,'uiSourceContracts':'passed','uiDeviceInstrumentation':'not_run','real_device':'pending',
'hashes':{str(p.relative_to(root)):hashlib.sha256(p.read_bytes()).hexdigest() for p in sorted(paths)}}
(root/'logs/avatar-safe-061/client-tests.json').write_text(json.dumps(result,indent=2)+'\n')
print('PASS: ten JVM entry points, including avatar/native-head activity and call lifecycle; no real phone capture')
print('PASS: eleven JVM entry points, including avatar/native-head activity and call lifecycle; no real phone capture')
PY