summaryrefslogtreecommitdiff
path: root/tools/finalization
AgeCommit message (Collapse)Author
2025-03-24tools/finalization: add SDK team as OWNERS Mårten Kongstad
Update tools/finalization/OWNERS to include the entire SDK team; use the SDK team's alias instead of explicitly listing each member. Bug: 405872440 Test: presubmit Ignore-AOSP-First: finalization is done internally Change-Id: Ifcf472882cc37acb0375b2b9d41499b0873a0f69
2025-01-11Move the framework manifest freeze step after HAL freeze Devin Moore
Because these scripts are using the fina_0 release config that inherits from `next`, we need to freeze the interfaces before freezing the device compatibility matrix (from the framework manifest). Ignore-AOSP-First: finalization is done internally Test: ./build-step-0.sh Bug: 388072383 Change-Id: Ic1f2d2a87ceca1cc49d2d46bfc165890df416da6
2025-01-09Use finalize.py instead of bump.py Devin Moore
The finalization doesn't need to create next year's FCM resources at this time. Ignore-AOSP-First: finalization is internal-first Test: build-step-0.sh Bug: 388532499 Change-Id: I5db3593cfe9ebd68af9daf23cc7c5047621fd78f
2025-01-02Merge "Remove dangling -- after parsing arguments" into main am: c27a993249 ↵ Treehugger Robot
am: f3e2094926 Original change: https://android-review.googlesource.com/c/platform/build/+/3434640 Change-Id: I42c6a185bb2f811a58b481da53c0190e0b1455fb Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-30Remove dangling -- after parsing arguments Linus Tufvesson
Test:`source command-line-options.sh && echo $@` has -- without the patch and is empty with the patch Test:`source command-line-options.sh --dry-run && echo $repo_branch` Change-Id: I860c4c6556baf3a1483d753f85d9602c73620b51
2024-12-18Android W -> B Devin Moore
Android 16 is B, not W. Bug: 384614121 Test: build/make/tools/finalization/build-step-0.sh --steps_for_build_test_only (cherry picked from https://android-review.googlesource.com/q/commit:7f6fc71dfd523f39259f8bd64444cb7e8b3f16fe) Merged-In: I4d057695a2d9f7b443e645a42af29e8e8f09329d Change-Id: I4d057695a2d9f7b443e645a42af29e8e8f09329d
2024-12-12Use --steps_for_build_test_only option to skip some steps Justin Yun
We don't need to run all finalization steps on each CI build target. Use --steps_for_build_test_only option to skip ABI dump and VINTF check steps for CI build tests. It is sufficient to build the full steps on a single target but not all. The finalization takes 30 minutes with this option. It took 2 hours to complete full steps without the option. Ignore-AOSP-First: finalization script is an exception Bug: 382626911 Test: build/make/tools/finalization/build-step-0.sh \ --steps_for_build_test_only && m Change-Id: Ib4f04a2d2b4e54c4d9631be535ba0f44b1080fb1
2024-11-21Update vendor_api_levels.go with the vintf finalization Justin Yun
vendor_api_levels.go provides corresponding SDK version for vendor API levels. After the finalization, we will have the next vendor API level for the trunk_staging build. We may change the map file when the version is changed later, but must provide an SDK version for the next vendor API level for the trunk_staging build. Ignore-AOSP-First: finalization script is an exception Bug: 331696132 Test: build/make/tools/finalization/build-step-0.sh Change-Id: I6788add9e2177cc9d2fc63f54e032f5fc3ecf9b9
2024-07-26Update vintf finalization script Justin Yun
Run vintf finalization if the target configuration does not set RELEASE_BOARD_API_LEVEL_FROZEN to 'true'; and FINAL_BOARD_API_LEVEL which is the version to finalize is the same with the RELEASE_BOARD_API_LEVEL which is the version that the current tree is building. Also define build-step-0-and-m.sh that runs a test build after the vintf finalization process. Ignore-AOSP-First: finalization script is an exception Bug: 331696132 Test: tools/finalization/build-step-0-and-m.sh Change-Id: I22b9096d57c935e64c4d28f16b95afaa84b79465
2024-05-22finalization: set FINAL_STATE to 'rel' Mårten Kongstad
VIC is set to REL. Accordingly, set FINAL_STATE to 'rel' to prevent the finalization scripts from running steps that have already been merged. Bug: 335304236 Test: treehugger (main-fina-2-release succeed) Ignore-AOSP-FIRST: arrives in aosp with ap3a Change-Id: Id42c3ae2ffead62ac6019690f0586d8db8d22ef8
2024-05-15Create APEX ABI dumps with next release configuration Hsin-Yi Chen
Next release configuration maps the codename to the finalized API level, but fina_2 doesn't. Ignore-AOSP-First: Finalization scripts are not on AOSP Test: build/make/tools/finalization/finalize-sdk-rel.sh Bug: 340507697 Change-Id: I00e55bf350ff5b5f5b10f9e74ceff38b0660dde3
2024-05-08Merge "Add the step to generate LLNDK ABI dumps" into main Treehugger Robot
2024-04-30Merge "V is 35." into main Gurpreet Singh
2024-04-30Add the step to generate LLNDK ABI dumps Hsin-Yi Chen
Test: build/make/tools/finalization/finalize-vintf-resources.sh Bug: 314010764 Ignore-AOSP-First: Finalization scripts are not on AOSP Change-Id: Ibe77d2f2aa70d3cc85086c00bb3eba00da0986f5
2024-04-29V is 35. Gurpreet Singh
It's not bromine, it's not a gauge of film: it's the next Android release. Set final state to "sdk" marking step-1 of finalization as complete. Ignore-AOSP-First: Finalization is not performed in AOSP. Bug: 335304236 Test: presubmit Change-Id: Ifebf6ce36c5aa5c987d434085ca812f18e97ad4f
2024-04-23Create ABI dumps for APEX libraries at finalization step 2 Hsin-Yi Chen
Ignore-AOSP-First: merge conflict Test: build/make/tools/finalization/finalize-sdk-rel.sh Bug: 333532038 Change-Id: I4e6d8f7e2489d51899ca878a3c965e5a14799cc3
2024-04-19Merge "Change build-release target for building module sdks" into main Gurpreet Singh
2024-04-19Do not copy platform ABI dumps from current Hsin-Yi Chen
In trunk stable, the ABI dumps in "current" directory are not what we intend to finalize. They need to be removed. The step will be replaced with a command that builds ABI dumps. Ignore-AOSP-First: merge conflict Test: build/make/tools/finalization/finalize-sdk-rel.sh Bug: 333532038 Change-Id: I08896b637b34861e73cff4d829941d9fb5c56475
2024-04-18Change build-release target for building module sdks Gurpreet Singh
--build-release=latest => Include all new APIs in API tracking files along with the @FlaggedAPI annotation prefix. --build-release=next => Include only those new APIs in API tracking files for which the flag is enabled. Also the @FlaggedAPI annotation prefix is removed from API tracking files. Ignore-AOSP-first: VIC finalization happens outside AOSP Bug: 335454564 Test: croot && build/tools/finalization/localonly-steps.sh Change-Id: I3fdd71ac385835b3b961336d86604e86dfed31cf
2024-04-12finalization: do not generate the ADB keys Mårten Kongstad
The ADB keys have already been generated for Android 15. Remove that step from the scripts. Bug: 323940469 Test: TH Ignore-AOSP-first: VIC finalization happens outside AOSP Change-Id: I83184740bfc1db3104e320b76638253a5892507c
2024-04-09Merge "Update api_levels.go instead of api_constants.bzl" into main Treehugger Robot
2024-04-09Update api_levels.go instead of api_constants.bzl Cole Faust
This is a revert of aosp/2573034, but as a separate cl because the filename has been changed. We're reverting aosp/2573034 because the bazel migration has been cancelled and that api_constants.bzl file was changed to not be used. Ignore-AOSP-First: Someone else renamed this file in internal-only. Bug: 315353489 Test: Manually ran this snippet of shell script Change-Id: I3a51be1119109d2a6cf3959bdc8a48192872580f
2024-04-08finalization: use same repo branch during dry-run Mårten Kongstad
Teach step-*.sh to re-use the same branch name if running in dry-run mode. This is useful for running the steps sequentially: if using different branch names, each 'repo start' will undo the changes created during the previous step-*.sh. Bug: 323940469 Test: croot && build/tools/finalization/step-1.sh --dry-run && build/tools/finalization/step-2.sh --dry-run Ignore-AOSP-first: VIC finalization happens outside AOSP Change-Id: I720f294f6abf5a8b276bb30f8c531fcbea749b76
2024-04-05Remove AIDL_FROZEN_REL from step-1/step-2 finalization Devin Moore
That variable is used to ensure all VINTF interfaces are frozen and is needed for vFRC/VINTF finalization is step-0. Since SDK finalization (step-1 and step-2) are done at a different time, they shouldn't care about unfrozen VINTF interfaces. Ignore-AOSP-First: b/304316873#comment10 Test: na Bug: 333039895 Change-Id: Ica6807599d5b18078ecea96d939e147d4785749e
2024-04-04finalization: step-*.sh: optionally skip `repo upload` Mårten Kongstad
Teach the step-*.sh scripts to parse command line options. Add support for --dry-run, which will skip the part where the CLs are uploaded: useful for local experiments. Bug: 323940469 Test: croot && build/tools/finalization/step-1.sh --dry-run # verify no CLs uploaded Ignore-AOSP-first: VIC finalization happens outside AOSP Change-Id: Ia58da02ae7a69c24f8332c90d1c779884e3a1dab
2024-04-03Merge "Finalization: update OWNERS" into main am: 18bd5afc16 am: c97760dcad Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/build/+/3024905 Change-Id: I7a096af2c9483d911bb16c493c1aa066fb2e940e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-03Finalization: update OWNERS Mårten Kongstad
Add new folks working on finalization, remove folks no longer working on it. Also, sort the entires alphabetically. Bug: 323940469 Test: N/A Change-Id: Ib8f6c3f485a06e3d1269e4142317174ae7ac276b
2024-03-19DryRun scripts. Alex Buynytskyy
Bug: 323940469 Test: run locally Ignore-AOSP-First: local changes first Change-Id: Ia27924a01433e613496e9a624f93d385a08678a3
2024-03-15Finalization bugfixes. Alex Buynytskyy
Keep codenames in the platform_versions.txt to allow for non-REL builds. Bug: 323940469 Test: local run Ignore-AOSP-First: Release configs are interal repo only. Change-Id: I664ac1c32c3aae5175d3b7a36ac763b35181bc22
2024-03-13Finalization bugfixes. Alex Buynytskyy
Keep isAtLeast* functions compatible with older release configs. Fixes: 329312253 Test: local run + presubmit Ignore-AOSP-First: release configs present in internal repo only Change-Id: I776dd808e2e01e8a1c7a6f9b6171fd84f49cdcdf
2024-03-12Finalization bugfixes. Alex Buynytskyy
- keep previous platform versions in platform_releases.txt, - fix for the build version test, - after discussion with Yuri, keep non-REL resource sdk_int the same. Bug: 323940469 Test: local run Ignore-AOSP-First: release configs present in internal repo only Change-Id: I6637e109191480ded615ef35c9185d927ddaec40
2024-03-06Prepare for V finalization. Alex Buynytskyy
Bug: 323940469 Test: run locally Ignore-AOSP-First: local first Change-Id: Ie394523f7ea67a5475ad1af98a0586b4421e4c17
2024-02-27Vendor API level 202404 is now frozen Devin Moore
Update the state to 'vintf' so we don't try to re-finalize the same level. Ignore-AOSP-First: VINTF 202404 Finalization Bug: 279809333 Test: build Change-Id: I06530eedaeb69cc9d4a9b3af5b91a101ab2eab7d
2024-02-16Merge "finalization: add a step to freeze the framework manifest" into main Devin Moore
2024-02-15finalization: add a step to freeze the framework manifest Devin Moore
Make sure we aren't making backward incompatible changes to the framework HALs that system serves. Ignore-AOSP-First: b/304316873#comment10 Test: ./finalize-vintf-resources.sh Bug: 266741352 Change-Id: I056f2e6f92cdd496b88dc52bcd1c7a51e9ffb85f
2024-02-12Merge "Use full path for sepolicy finalization script" into main Treehugger Robot
2024-02-09Use existing script to create new compatibility matrix Devin Moore
During vintf finalization we need to create a new compatibility matrix and kernel configs for that new level. There is an existing script that can already do this! Use it! Ignore-AOSP-First: b/304316873#comment10 https://android-build.corp.google.com/builds/abtd/run/L07600030001757459 Test: ./finalize-vintf-resources.sh Bug: 279809333 Change-Id: Ie97c762943445c8c95a8ebf0ea1b8c6610dc69b2
2024-02-06Define step-0 for vintf finalization Justin Yun
Define `vintf` state that have completed vintf finalization only. Only if FINAL_STATE is 'unfinalized' run the vintf finalization process to finalize vintf. The new step-0 only runs the vintf finalization. Ignore-AOSP-First: trunk-stable changes (b/304316873) Bug: 318883690 Test: build-step-0.sh && build/soong/soong_ui.bash \ --make-mode TARGET_PRODUCT=cf_x86_64_phone TARGET_RELEASE=fina_0 \ TARGET_BUILD_VARIANT=userdebug droid dist Change-Id: If3525f38204fa546744b9ccf8dc9e63711823abd
2024-02-03Use full path for sepolicy finalization script Devin Moore
Otherwise we can only run main script from ANDROID_BUILD_TOP Ignore-AOSP-First: b/304316873#comment10 https://android-build.corp.google.com/builds/abtd/run/L79300030001797715 Test: ./finalize-vintf-resources.sh Bug: none Change-Id: Id9a8c27b9ceb6741c0990d2189bb555d1f60c89d
2024-01-30Move sepolicy finalization to vintf Inseob Kim
Ignore-AOSP-First: b/304316873#comment10 Bug: 314010177 Test: ABTD run with fina-1 and fina-2 Change-Id: I5324eb0c619b9d3ddc5fcda0ce52f614f8596f6c
2024-01-29finalization: remove VNDK current.txt copy Steven Moreland
Since we no longer have the VNDK, we don't need to update this file. Fixes: 318888218 Test: todo ABDT Change-Id: I4c4380292ca92fedfe12b80c46bed5cbef240a2e
2024-01-29finalization: remove VNDK stuff Steven Moreland
Now that the VNDK is deprecated, we can remove all references in the finalization script. This is a no-op since it is only removing comments. Bug: 318888218 Test: `grep -rin vndk` no output Change-Id: Ia07dffc21d5e02e6d6d52400a2fdf6572242c160
2024-01-17Capture queryview stderr and stdout in finalization scripts Devin Moore
Sometimes the output wasn't grep-able and this fixes it. Ignore-AOSP-First: b/304316873#comment10 Test: Run the bazel query command multiple times before/after and verify it works 100% of the time after. Bug: 320589170 Change-Id: Ic60d3318287353aa71fdeb2c540899d588a2d273
2024-01-17Update vintf levels for finalization script Devin Moore
This year's vintf levels changed from 9 to 202404, so the levels in the finalization script need to change. Ignore-AOSP-First: b/304316873#comment10 Test: ./finalize-vintf-resources.sh Bug: 320589170 Change-Id: I2e9b3953233c8d032f44f379546919b9f3642a6f
2024-01-13Add new function to create a new compat matrix for finalization Devin Moore
Creates the next version of the file based on the previous. Replaces the "level" value with the new one in the file. Adds a new Android.bp module that inherits from the previous. Adds the current matrix file unconditional to all builds. Adds the new matrix file contintionally based on release config. This is used in finalize-vintf-resources.sh. Ignore-AOSP-First: b/304316873#comment10 Test: ./finalize-vintf-resources.sh Bug: 279809333 Change-Id: Ic14b3b82a33af3cce7a738dce5ad48112b8fb33d
2023-12-27Split finalization scripts between vFRC and sFRC. Steven Moreland
This splits out the AIDL/VNDK/sepolicy stuff from the SDK finalization. However, in CI, we still do the vFRC step as part of the first step. We'll probably want to do some of the following: - (maybe) add CI for the first step - a 'fina-0' branch - add a way to do SDK finalizatoin without VINTF finalization because after VINTF finalization is submitted, people will develop in-progress interfaces that aren't done yet - a lot of VINTF finalization is still not automated, so things like sepolicy and LL-NDK need to be added here. Ignore-AOSP-First: b/304316873#comment10 Bug: 314010935 Test: N/A Change-Id: I4831a14f5c5c3d757bd1d10a775d8cf4940d9a4a
2023-12-27finalization: remove 'update' scripts Steven Moreland
alexbuy@ said: please remove both update-* scripts. they were part of r&d project that was never finished Ignore-AOSP-First: b/304316873#comment10 Bug: 314010935 Test: N/A Change-Id: Iecc22cc860ba67fec336adb0c5b93f51677dc9ce
2023-12-05Merge "Add the next release to Class2NonSdkList." into main am: 2f9162f1cb ↵ Treehugger Robot
am: 0ecfef4423 am: efe2a3408d Original change: https://android-review.googlesource.com/c/platform/build/+/2858125 Change-Id: I52fae823f4c3e22f507123c188923a5b56d2725b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-04Add the next release to Class2NonSdkList. Alex Buynytskyy
Fixes: 313893203 Test: step-1 Change-Id: I0f6ae822cd206df23a2ffd1dade78bb430006c5d
2023-11-15Merge "Set BUILD_FROM_SOURCE_STUB=true for finalization" into main am: ↵ Jihoon Kang
3b12b769e4 am: 36f8125650 am: 09618c6ef6 Original change: https://android-review.googlesource.com/c/platform/build/+/2830911 Change-Id: I59f91a848e72fbb054adcbad20ccbad7446554f7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>