Unify gateway styling and preserve identity through recovery
ci / java (push) Failing after 15m11s
ci / nightly-windev (push) Failing after 10m18s
ci / portable (push) Failing after 27m42s
ci / windows-x86 (push) Failing after 22m19s

This commit is contained in:
Joseph Doherty
2026-11-13 20:12:00 -05:00
parent b06921ce85
commit 26a90883fa
76 changed files with 20585 additions and 128 deletions
+13
View File
@@ -0,0 +1,13 @@
import re,json,hashlib,urllib.request,zipfile
from pathlib import Path
ROOT=Path(__file__).resolve().parent;BASE=re.search(r'Now listening on: (http://127.0.0.1:\d+)',Path('/tmp/mx-ui-final-host.log').read_text()).group(1);rows=[]
for name,version,files in [('Theme','1.0.1',['css/theme.css','css/layout.css','fonts/ibm-plex-sans-400.woff2','fonts/ibm-plex-sans-600.woff2','fonts/ibm-plex-mono-500.woff2']),('Secrets.Ui','1.0.1',['js/secrets-dialog.js','js/secrets-reveal.js']),('Secrets.Abstractions','0.6.6',[])]:
id='ZB.MOM.WW.'+name;cache=Path.home()/'.nuget/packages'/id.lower()/version
with zipfile.ZipFile(cache/(id.lower()+'.'+version+'.nupkg')) as z:
dll=Path('/tmp/mx-ui-final-artifacts/bin/MxUiCanary/release')/(id+'.dll');assert dll.read_bytes()==z.read('lib/net10.0/'+id+'.dll')
rows.append({'runtimeAssembly':id,'version':version,'bytesMatchOfficialPackage':True})
for path in files:
url=BASE+'/_content/'+id+'/'+path
with urllib.request.urlopen(url) as r:data=r.read();assert r.status==200
assert data==z.read('staticwebassets/'+path);rows.append({'asset':path,'package':id,'http':200,'sha256':hashlib.sha256(data).hexdigest()})
(ROOT/'evidence/mx-final/served-assets.json').write_text(json.dumps(rows,indent=2));print('3 runtime assemblies and7 served assets equal accepted official packages')