fix: embed portable static fonts for CV preview and PDF fidelity

This commit is contained in:
cesnimda
2026-10-24 19:27:10 +02:00
parent 57dd88322a
commit e80815f8df
50 changed files with 1114 additions and 7 deletions
@@ -8,6 +8,8 @@ IMAGE = 'jobtracker-p9-requal-api:security-check'
DB = 'jobtracker-it-p9-requal-mariadb-test-1'
PIN = 'mariadb:12.2.2@sha256:42a27baaba3e8f3f0159d16381d5a7156661aa91dcc65f663cabb6a6f9503c00'
VERSION = 'p9-requal-linux-2b26953'
COMMIT = '2b26953'
CONFIG = '../docs/redesign/phase-9/p9-requal-01/linux/playwright.config.ts'
def guard_schema(name):
if not re.fullmatch(r'jt_it_[0-9a-f]{32}', name):
@@ -71,7 +73,7 @@ def main():
'Auth__AdminEmail':'e2e@example.test','Auth__AdminPassword':'E2ePassword123!', 'Auth__AllowRegistration':'false',
'RateLimits__AuthLoginPermitLimit':'1000','Cors__Origins__0':'http://localhost:3300',
'Workers__AiOperationsEnabled':'false','Workers__SavedJobSearchAlertsEnabled':'false',
'HttpsRedirection__Enabled':'false','App__Version':VERSION,'App__CommitSha':'2b26953',
'HttpsRedirection__Enabled':'false','App__Version':VERSION,'App__CommitSha':COMMIT,
'Data__Root':'/data','Logging__LogLevel__Default':'Warning'}
args=['docker','create','--name',api,'--label','task=p9-requal-01','--network',network,
'-p','127.0.0.1:5302:8080','--tmpfs','/data:rw,nosuid,size=512m']
@@ -99,7 +101,7 @@ def main():
'CV_FIDELITY_OUTPUT':str(OUT/'fidelity'),'CV_SETTINGS_FIDELITY_OUTPUT':str(OUT/'settings-fidelity'),
'PLAYWRIGHT_JSON_OUTPUT_NAME':str(OUT.parent/'linux-renderer.json')}
test=['node','node_modules/@playwright/test/cli.js','test',
'--config=../docs/redesign/phase-9/p9-requal-01/linux/playwright.config.ts',
'--config='+CONFIG,
'--retries=0','--reporter=list,json','--output='+str(OUT/'test-results')]
with (OUT/'playwright.log').open('w',encoding='utf-8') as log:
record['browserExitCode']=subprocess.run(['rtk','proxy',*test],cwd=ROOT/'job-tracker-ui',env=env,stdout=log,stderr=subprocess.STDOUT).returncode