Transfer rebuilt Purpose as checksum-verified archive deltas
This commit is contained in:
parent
34c6908a91
commit
f74d2aff70
2 changed files with 24 additions and 4 deletions
|
|
@ -29,6 +29,9 @@ connections. Existing connections and local integrity checks are unaffected.
|
|||
both VM checks run anew. This avoids retransferring the same accepted bytes
|
||||
merely to retry validation. Already archived build trees are excluded from
|
||||
subsequent failure-evidence transfer; new logs and validation evidence remain.
|
||||
With `--core-build`, the same archive can seed the new GNOME transfer: a private
|
||||
copy receives checksum-based rsync deltas, including removal of stale refs,
|
||||
before fsck and new VM checks. The previous archive is never mutated.
|
||||
- Inspect: `systemctl list-timers archipelago-release-cycle.timer`,
|
||||
`journalctl -u archipelago-release-cycle.service`.
|
||||
- Public state: `/archipelago/pipeline.json`. Private per-run states and frozen
|
||||
|
|
@ -121,3 +124,11 @@ the probe timed out awaiting live shutdown at 90 seconds. Shutdown had begun;
|
|||
completion was not observed. The probe now allows 180 seconds, covering systemd's
|
||||
normal 90-second service-stop grace plus shutdown work, and still requires actual
|
||||
QEMU exit. This is not a passed shutdown check until the repeated VM run completes.
|
||||
|
||||
Cycle `20261106T102335Z` passed the complete production-Core probe, including
|
||||
shutdown, installation, login and Host Extensions. GNOME installation/onboarding,
|
||||
login and self-check passed, then nano composition failed on the upstream
|
||||
PackageKit ALPM hook's D-Bus notification. That hook must not run in this profile's
|
||||
extension staging: PackageKit is masked and OS updates use the Archipelago
|
||||
adapter. The Purpose now supplies the explicit pacman hook mask. The failed ISO
|
||||
is archived and cannot be published; corrected Purpose and VM acceptance follow.
|
||||
|
|
|
|||
|
|
@ -30,13 +30,13 @@ def main():
|
|||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument('--config', default=os.environ.get('ARCHIPELAGO_CYCLE_CONFIG', '/etc/archipelago/release-cycle.json'))
|
||||
parser.add_argument('--existing', help='JSON mapping core/gnome to existing worker build directories')
|
||||
parser.add_argument('--archive', type=Path, help='Reuse a coordinator archive with --existing after matching worker ISO and refs')
|
||||
parser.add_argument('--archive', type=Path, help='Reuse matching archived inputs; seed delta transfer when rebuilding Purpose')
|
||||
parser.add_argument('--core-build', help='Reuse a completed worker Core build; rebuild only Purpose and repeat both VM checks')
|
||||
args = parser.parse_args()
|
||||
if args.core_build and (args.existing or not Path(args.core_build).is_absolute()):
|
||||
parser.error('--core-build requires an absolute path and cannot accompany --existing')
|
||||
if args.archive and (not args.existing or not args.archive.is_absolute()):
|
||||
parser.error('--archive requires --existing and an absolute coordinator path')
|
||||
if args.archive and (not (args.existing or args.core_build) or not args.archive.is_absolute()):
|
||||
parser.error('--archive requires --existing or --core-build and an absolute coordinator path')
|
||||
config = json.loads(Path(args.config).read_text())
|
||||
base = Path(config['coordinator_root'])
|
||||
parent = base / 'data/private/release-cycle'
|
||||
|
|
@ -154,7 +154,7 @@ rm -rf {builds['core']}/iso-work {builds['core']}/profile {builds['core']}/extra
|
|||
dest.mkdir(parents=True)
|
||||
# Stream immutable completed trees: rsync's per-file round trips are
|
||||
# disproportionately expensive for OSTree's many small objects.
|
||||
if args.archive:
|
||||
if args.archive and (args.existing or variant == 'core'):
|
||||
archived = args.archive / variant / 'build'
|
||||
names = ['output/' + ('archipelago-core-latest.iso' if variant == 'core' else 'archipelago-gnome-probe.iso'),
|
||||
'repo/refs/heads/core', 'repo/refs/heads/layers/core']
|
||||
|
|
@ -172,6 +172,15 @@ rm -rf {builds['core']}/iso-work {builds['core']}/profile {builds['core']}/extra
|
|||
for part in ('repo', 'output', 'evidence'):
|
||||
call(['cp', '-a', '--reflink=auto', archived / part, dest])
|
||||
atomic(run / (variant + '-archive-reuse.json'), {'archive': str(archived), 'files': dict(zip(names, expected))})
|
||||
elif args.archive:
|
||||
# Seed from prior immutable bytes, then transfer only differences.
|
||||
# Checksums (not mtime) decide reuse; delete stale refs/files only
|
||||
# in this new run's private copy. fsck below validates the result.
|
||||
archived = args.archive / variant / 'build'
|
||||
for part in ('repo', 'output', 'evidence'):
|
||||
call(['cp', '-a', '--reflink=auto', archived / part, dest])
|
||||
call(['rsync', '-a', '--checksum', '--delete',
|
||||
f'{worker}:{builds[variant]}/{part}/', str(dest / part) + '/'])
|
||||
else:
|
||||
transfer = shlex.join(['ssh', '-o', 'BatchMode=yes', '-o', 'ConnectTimeout=20', worker,
|
||||
shlex.join(['tar', '-C', builds[variant], '-cf', '-', 'repo', 'output', 'evidence'])])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue