Skip to content

Commit

Permalink
Start script to finalize branch release.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
smore-lore committed Apr 19, 2022
1 parent 9bc5068 commit 3549659
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions finalize_branch_for_release.sh
Original file line number Diff line number Diff line change
@@ -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 ...

0 comments on commit 3549659

Please sign in to comment.