From 3549659a1c1dd35caf11e8e617a8abd3ba734833 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Tue, 19 Apr 2022 00:57:45 +0000 Subject: [PATCH] Start script to finalize branch release. To put in CI. At the end of every Android release, we need to do 100,000 things to get the release ready. The process to finalize the release for AIDL interfaces is automated now, so we're adding a generic script. The goal is: 1. gradually add more pieces of the finalization process which can be automated (VNDK, SDK, etc...) 2. when problems happen, we can fix them in real time in CI 3. once the entire release process is in CI, we can optimize it, and we can require that new requirements on the Android release process come with a script to satisfy them. Until then, this script will be used to test the automated parts of the release process in CI. Bug: 190577319 Bug: 228979367 Test: ./build/make/finalize_branch_for_release.sh (in the T release branch) Change-Id: Ie9ff42dd4c6e86d395bde3f14788029e5bde5fb2 --- finalize_branch_for_release.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 finalize_branch_for_release.sh diff --git a/finalize_branch_for_release.sh b/finalize_branch_for_release.sh new file mode 100755 index 0000000000..d498beb4dd --- /dev/null +++ b/finalize_branch_for_release.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e + +source ../envsetup.sh + +# default target to modify tree and build SDK +lunch aosp_arm64-userdebug + +set -x + +# This script is WIP and only finalizes part of the Android branch for release. +# The full process can be found at (INTERNAL) go/android-sdk-finalization. + +# VNDK snapshot (TODO) +# SDK snapshots (TODO) +# Update references in the codebase to new API version (TODO) +# ... + +AIDL_TRANSITIVE_FREEZE=true m aidl-freeze-api + +# TODO(b/229413853): test while simulating 'rel' for more requirements AIDL_FROZEN_REL=true +m # test build + +# Build SDK (TODO) +# lunch sdk... +# m ...