Resume: start unfinished variants from a clean build directory

This commit is contained in:
Archipelago 2026-11-13 19:27:20 +03:00
parent 680125efd9
commit 163416d30e

View file

@ -329,7 +329,10 @@ rm -rf {builds['core']}/iso-work {builds['core']}/profile {builds['core']}/extra
kde_command = shlex.join(['env', *[k + '=' + v for k, v in kde_env.items()],
'ARCHIPELAGO_CORE_BUILD=' + builds['core'], remote_root + '/archipelago',
'build', 'iso', '--purpose', 'kde', builds['kde'], config['bootstrap']])
remote(f'mkdir -p {remote_root}/kde; {kde_command} > {remote_root}/kde/build.log 2>&1', 14400)
# A resumed run may find a partial tree from the interrupted attempt;
# build-iso.sh expects a clean directory.
remote('rm -rf ' + shlex.quote(builds['kde']) + f'; mkdir -p {remote_root}/kde')
remote(f'{kde_command} > {remote_root}/kde/build.log 2>&1', 14400)
if container:
phase('building-container-runner')
container_env = dict(build_env)
@ -338,7 +341,8 @@ rm -rf {builds['core']}/iso-work {builds['core']}/profile {builds['core']}/extra
container_command = shlex.join(['env', *[k + '=' + v for k, v in container_env.items()],
'ARCHIPELAGO_CORE_BUILD=' + builds['core'], remote_root + '/archipelago',
'build', 'iso', '--purpose', 'container-runner', builds['container'], config['bootstrap']])
remote(f'mkdir -p {remote_root}/container; {container_command} > {remote_root}/container/build.log 2>&1', 14400)
remote('rm -rf ' + shlex.quote(builds['container']) + f'; mkdir -p {remote_root}/container')
remote(f'{container_command} > {remote_root}/container/build.log 2>&1', 14400)
state['vm_acceptance'] = {'state': 'manual-only', 'policy': 'D-098'}
phase('archiving-artifacts')
if shutil.disk_usage(base / 'data').free < config.get('minimum_coordinator_free_bytes', 50000000000):