Support first KDE image calibration and native setup handoff

This commit is contained in:
Pavel Isaev 2026-11-06 21:02:20 +03:00
parent 9545b7e2bd
commit 5de0dfd73b
2 changed files with 24 additions and 11 deletions

View file

@ -18,13 +18,19 @@ with the private per-VM credential-file path. The actual sequence must be
calibrated on the selected Plasma Setup package, including an authenticated SDDM
login. The example above is format documentation, not a working UI profile.
No action profile is claimed verified yet. Missing actions preserve the first
screen and fail the native check. Evidence binds the profile hash and ISO hash.
screen and fail the native check. For the first image only, `kde_ui_calibration`
permits a bounded 30-minute wait for actual Plasma Setup completion and SDDM login
through QMP. It does not inject an account or skip any guest checks. Evidence marks
this as manual calibration; subsequent autonomous runs need a frozen action profile.
Evidence binds the profile hash (when present) and ISO hash.
Publication supports KDE refs/catalog/history with the same three-version
retention. A three-variant publication cannot silently drop an existing variant.
`kde_release_decision` identifies explicit authorization for its release exception;
D-087 alone remains Core/GNOME-only. This source implementation does not grant
release admission. Current production config is not changed by source edits.
D-087 alone remains Core/GNOME-only. Without that KDE authorization, the cycle
archives KDE as a private candidate and publishes only the authorized Core/GNOME
pair after checks. This source implementation does not grant release admission.
Current production config is not changed by source edits.
All compilation, Flatpak preparation and VM checks execute on yabloko, then
artifacts transfer directly to terra. No separate tests were started during this

View file

@ -162,6 +162,8 @@ python3 {remote_root}/probes/core_iso_acceptance.py --iso {shlex.quote(builds['c
if action_path.is_absolute() or '..' in action_path.parts:
raise ValueError('KDE UI profile must be a frozen source-relative path')
command += ['--ui-actions', remote_root + '/source/src/' + str(action_path)]
elif config.get('kde_ui_calibration'):
command += ['--calibrate-ui']
remote(shlex.join(command), 7200)
call(['rsync', '-a', '--include=*/', '--include=*.json', '--include=*.log', '--include=*.serial',
'--include=*.png', '--exclude=*', f'{worker}:{remote_root}/kde/acceptance/', str(run / 'kde/acceptance') + '/'])
@ -340,30 +342,35 @@ rm -rf {builds['core']}/iso-work {builds['core']}/profile {builds['core']}/extra
iso_name=iso_name('kde'), native_summary=str(run / 'kde/acceptance/native-acceptance.json'),
checks=[{'path': str(run / 'kde/acceptance/native-acceptance.json')},
{'path': str(run / 'kde/acceptance/guest.log')}],
limitations=review['candidates'][0]['limitations']))
if not config.get('kde_release_decision'):
raise ValueError('KDE publication needs its own explicit release authorization; D-087 covers Core/GNOME')
limitations=['Private KDE candidate; D-089 selects product direction, not public release admission',
'First-image UI calibration does not prove autonomous onboarding acceptance',
*review['candidates'][0]['limitations'][1:]]))
atomic(run / 'review.json', review)
call(tools(['python3', '/pipeline/prepare-hardware-pair.py', run / 'review.json']))
records = json.loads((run / 'candidates.json').read_text())
publish_variants = variants if config.get('kde_release_decision') else ('core', 'gnome')
publication_records = [r for r in records if r['variant'] in publish_variants]
atomic(run / 'publication-candidates.json', publication_records)
state['private_candidates'] = [{k: r[k] for k in ('variant', 'version', 'sha256', 'image_commit', 'layer_commit')}
for r in records if r['variant'] not in publish_variants]
atomic(run / 'release-authorization.json', {
'channel': 'stable', 'decision': config['kde_release_decision'] if 'kde' in desktops else 'D-087',
'channel': 'stable', 'decision': config['kde_release_decision'] if 'kde' in publish_variants else 'D-087',
'reason': 'Explicit user authorization for daily stable publication and installed-ISO update continuity',
'limitations': review['candidates'][0]['limitations'],
'candidates': [{k: r[k] for k in ('variant', 'version', 'sha256', 'image_commit', 'layer_commit')}
for r in records]})
for r in publication_records]})
phase('signing-and-publishing')
call(tools(['python3', '/pipeline/publish-hardware.py', base / 'data/public', run / 'candidates.json',
call(tools(['python3', '/pipeline/publish-hardware.py', base / 'data/public', run / 'publication-candidates.json',
'--gpg-home', '/signing', '--gpg-key', config['signing_key'], '--url-prefix', '/archipelago',
'--channel', 'stable', '--core-ref', 'stable/core', '--gnome-ref', 'stable/gnome',
'--release-exception', run / 'release-authorization.json'] +
(['--kde-ref', 'stable/kde'] if 'kde' in desktops else []), True))
(['--kde-ref', 'stable/kde'] if 'kde' in publish_variants else []), True))
phase('verifying-public-endpoints', published=True)
url = config['public_url'].rstrip('/')
with urllib.request.urlopen(url + '/v1/releases.json', timeout=60) as response:
releases = json.load(response)['releases']
current = [r for r in releases if r['current']]
if {r['variant'] for r in current} != set(variants) or len(current) != len(variants) or any(r['version'] != stamp for r in current):
if {r['variant'] for r in current} != set(publish_variants) or len(current) != len(publish_variants) or any(r['version'] != stamp for r in current):
raise ValueError('Published catalog does not match this cycle')
for item in current:
address = url.split('/archipelago')[0] + item['url']