From 2e550c029db969d3c2fbc1d190073125e1e3f05c Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Jul 10 2017 17:46:13 +0000 Subject: atomic: add code for delta creation of f25 commit For now we'll define a commit in the N repo to that is the last commit from N-1 and we'll generate a static delta from that commit to the current release. This is so that rebases/upgrades from the previous release are much faster. Signed-off-by: Dusty Mabe --- diff --git a/scripts/push-two-week-atomic.py b/scripts/push-two-week-atomic.py index a109b6d..118a587 100755 --- a/scripts/push-two-week-atomic.py +++ b/scripts/push-two-week-atomic.py @@ -47,6 +47,7 @@ log = logging.getLogger(os.path.basename(sys.argv[0])) # Define "constants" ATOMIC_DIR = "/mnt/koji/mash/atomic/%s" +PREVIOUS_MAJOR_RELEASE_FINAL_COMMIT = None TARGET_REF = "fedora/%s/x86_64/atomic-host" COMPOSE_BASEDIR = "/mnt/koji/compose/twoweek/" MASHER_LOCKFILE_GLOB = "/mnt/koji/mash/updates/MASHING*" @@ -729,6 +730,14 @@ if __name__ == '__main__': log.info("Moving tree commit %s => %s (%s)", previous_commit, tree_commit, tree_version) move_tree_commit(pargs.release, previous_commit, tree_commit) + # Also, if existing previous release commit is defined, then + # generate a static delta from it + if PREVIOUS_MAJOR_RELEASE_FINAL_COMMIT is not None: + generate_static_delta(release=pargs.release, + old_commit=PREVIOUS_MAJOR_RELEASE_FINAL_COMMIT, + new_commit=tree_commit) + update_ostree_summary_file(pargs.release) + log.info("Staging release content in /pub/alt/atomic/stable/") stage_atomic_release(compose_id)