Stream completed artifact trees before integrity validation
This commit is contained in:
parent
6ed2097289
commit
8cab710fb3
2 changed files with 13 additions and 2 deletions
|
|
@ -69,3 +69,10 @@ archive subdirectory while retaining root ownership of plans/provenance. Those
|
|||
older bytes are private diagnostic artifacts, not accepted publication candidates.
|
||||
A new full cycle is required and is recorded by its actual `state.json`; enabling
|
||||
the timer or passing unit tests alone is not successful-cycle evidence.
|
||||
|
||||
Cycle `20261105T233849Z` passed installed Core and Host Extensions, then rejected
|
||||
GNOME on package integrity: its integration assets overwrote two Core package
|
||||
files. The source now supplies distinct GNOME configs and checks package integrity
|
||||
before image capture. Both repositories passed fsck and archived ISO checksums
|
||||
matched; this rejected pair remains private. Artifact transfer now streams tar
|
||||
over SSH to avoid per-object rsync overhead, followed by the same OSTree fsck.
|
||||
|
|
|
|||
|
|
@ -140,8 +140,12 @@ rm -rf {builds['core']}/iso-work {builds['core']}/profile {builds['core']}/extra
|
|||
for variant in ('core', 'gnome'):
|
||||
dest = run / variant / 'build'
|
||||
dest.mkdir(parents=True)
|
||||
for part in ('repo', 'output', 'evidence'):
|
||||
call(['rsync', '-a', f'{worker}:{builds[variant]}/{part}', str(dest) + '/'])
|
||||
# Stream immutable completed trees: rsync's per-file round trips are
|
||||
# disproportionately expensive for OSTree's many small objects.
|
||||
transfer = shlex.join(['ssh', '-o', 'BatchMode=yes', '-o', 'ConnectTimeout=20', worker,
|
||||
shlex.join(['tar', '-C', builds[variant], '-cf', '-', 'repo', 'output', 'evidence'])])
|
||||
call(['bash', '-o', 'pipefail', '-c', transfer + ' | ' +
|
||||
shlex.join(['tar', '-C', str(dest), '-xf', '-'])])
|
||||
call(tools(['ostree', '--repo=' + str(dest / 'repo'), 'fsck']))
|
||||
call(['rsync', '-a', f'{worker}:{remote_root}/inputs.sha256', str(run) + '/'])
|
||||
call(['rsync', '-a', f'{worker}:{remote_root}/source.tar', f'{worker}:{remote_root}/archipelago', str(run) + '/'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue