Stop accepted GNOME VM before deleting its worker artifacts

This commit is contained in:
Pavel Isaev 2026-11-06 03:03:56 +03:00
parent e9b93e608b
commit 6ed2097289

View file

@ -203,7 +203,7 @@ python3 {remote_root}/probes/core_iso_acceptance.py --iso {shlex.quote(builds['c
if response.read().decode().split()[0] != item['sha256']:
raise ValueError('Public checksum mismatch')
phase('cleaning-worker', releases=current)
remote('rm -rf ' + shlex.quote(remote_root))
remote('systemctl stop ' + shlex.quote(vm_unit) + '; rm -rf ' + shlex.quote(remote_root))
phase('complete', finished=datetime.now(timezone.utc).isoformat())
completed = sorted(p for p in parent.iterdir() if p.is_dir() and (p / 'state.json').exists()
and json.loads((p / 'state.json').read_text()).get('state') == 'complete')