Commit Graph

21834 Commits

Author SHA1 Message Date
satayev
49ad72d4ef Merge changes Ie6568cb8,Ibd521c96 am: 292e7c0721 am: a07f9df5d7
Change-Id: I4dcd1f47b080a71a97db0b10c1ebfc45b8d59bdb
2020-05-05 13:14:14 +00:00
satayev
a07f9df5d7 Merge changes Ie6568cb8,Ibd521c96 am: 292e7c0721
Change-Id: Id5f6fc01db73bc8a64db98a8bef5c8edc7813568
2020-05-05 13:00:26 +00:00
satayev
292e7c0721 Merge changes Ie6568cb8,Ibd521c96
* changes:
  Introduce min_sdk_version to deps info.
  Introduce flat deps info list.
2020-05-05 12:47:48 +00:00
Paul Duffin
96c5b271c0 [automerger skipped] Merge changes I101fa6b0,Ic1a9bb1e into rvc-dev am: 5d5804a81f -s ours
am skip reason: Change-Id I101fa6b03d2530b16e4394a9e466fead48be0ff0 with SHA-1 0c83aba28e is in history

Change-Id: Ie06a72ec6d56cdd3c203f040c448fceb4d896a5a
2020-05-05 11:47:03 +00:00
Paul Duffin
5d5804a81f Merge changes I101fa6b0,Ic1a9bb1e into rvc-dev
* changes:
  Report visibility errors in both check and gather phases
  Reduce duplication in visibility property management
2020-05-05 11:33:11 +00:00
satayev
d82f528fa3 Merge "Export depsInfo into android package." am: 57769e469b am: ed11483aa6
Change-Id: I103c2e1f0eada4b1cd516cc1a24625d680627824
2020-05-05 10:30:28 +00:00
Artur Satayev
cc78eb08b2 [automerger skipped] Merge "Ensure APEX's Java deps use stable SDKs." into rvc-dev am: b25992b4eb -s ours
am skip reason: Change-Id Ib1acf3073e96fe23c92d292ec0b1a91e2cd408db with SHA-1 8cf899afcc is in history

Change-Id: I57c9f1b1b16ce5e122c796f4dc195f2ad2b6a1d2
2020-05-05 10:17:36 +00:00
Anton Hansson
2ddb61f72c Merge "Treat lint warnings as errors" into rvc-dev am: 3292836210
Change-Id: I54329e9e9bb7689d44526e6453aff0bcbca11c94
2020-05-05 10:17:28 +00:00
satayev
ed11483aa6 Merge "Export depsInfo into android package." am: 57769e469b
Change-Id: I70884847b9767c6a06b68d548ff204e1cdeb4458
2020-05-05 10:17:27 +00:00
satayev
57769e469b Merge "Export depsInfo into android package." 2020-05-05 10:00:41 +00:00
Artur Satayev
b25992b4eb Merge "Ensure APEX's Java deps use stable SDKs." into rvc-dev 2020-05-05 09:59:34 +00:00
Anton Hansson
3292836210 Merge "Treat lint warnings as errors" into rvc-dev 2020-05-05 09:58:51 +00:00
Paul Duffin
b33d21bdaf Report visibility errors in both check and gather phases
Previously, errors that were found when splitting visibility rules were
only reported in the check phase and simply ignored during the gather
phase. That was because every visibility property that was processed in
the gather phase had already been checked in the check phase. However,
that is not strictly true as it has always been possible to add a
mutator between the check and gather phases that creates a module with
invalid visibility properties that will just be ignored. Fortunately,
that has not happened.

A follow up commit will add the capability to create modules after the
defaults have been applied which means the chances of invalid visibility
properties being ignored will increase.

This change makes both phases report any errors they find. It will not
have any impact on existing code as if any errors are reported in the
check phase then the build will exit before the gather phase. It will
prevent any invalid visibility errors from being ignored.

Bug: 155295806
Test: m nothing
Merged-In: I101fa6b03d2530b16e4394a9e466fead48be0ff0
Change-Id: I101fa6b03d2530b16e4394a9e466fead48be0ff0
(cherry picked from commit 0c83aba28e)
2020-05-05 10:34:55 +01:00
Paul Duffin
abc9a647a2 Reduce duplication in visibility property management
Adds a couple of new methods to manage visibility property instances to
reduce duplication and encapsulate the implementation slightly better.

The AddVisibilityProperty method is exported as it will be needed by
other packages in follow up commits.

Bug: 155295806
Test: m nothing
Merged-In: Ic1a9bb1e151fc6ae65761344fd210b4e4ba74fbc
Change-Id: Ic1a9bb1e151fc6ae65761344fd210b4e4ba74fbc
(cherry picked from commit 5ec73ecc08)
2020-05-05 10:34:30 +01:00
Treehugger Robot
ee3534a961 Merge "Fix build error of sysprop_library in namespace" am: 0a80524957 am: f7d0e1452b
Change-Id: Ibfa4f8c0cfdfa920bf407f0962c7384e48cf2f86
2020-05-05 06:19:24 +00:00
Treehugger Robot
f7d0e1452b Merge "Fix build error of sysprop_library in namespace" am: 0a80524957
Change-Id: I573962b79e9e7d8e19a7a723283b93ea1efdc7f1
2020-05-05 06:07:55 +00:00
Treehugger Robot
0a80524957 Merge "Fix build error of sysprop_library in namespace" 2020-05-05 05:50:02 +00:00
Jaewoong Jung
c896a76a5d Merge "Make android_app_import multi targets arch module." am: baf8c3a804 am: 068e22ebb9
Change-Id: I82330a9900ac3426e536866f1cbdb3601b07ed69
2020-05-05 01:48:43 +00:00
Jaewoong Jung
068e22ebb9 Merge "Make android_app_import multi targets arch module." am: baf8c3a804
Change-Id: I55e944d317d65bc0326b2751865fc6f1554abb85
2020-05-05 01:33:06 +00:00
Jaewoong Jung
baf8c3a804 Merge "Make android_app_import multi targets arch module." 2020-05-05 01:20:51 +00:00
Treehugger Robot
06992bfef4 Merge changes I2e370952,I811cc8e1 am: f39f6a4772 am: 725991c85a
Change-Id: I14022cd6fa49dec91d3cf31ea29ae6931cade87e
2020-05-04 22:38:22 +00:00
Treehugger Robot
725991c85a Merge changes I2e370952,I811cc8e1 am: f39f6a4772
Change-Id: I80f4a009c5b7abaacd620678061c3f4af9bdf3d4
2020-05-04 22:23:07 +00:00
Treehugger Robot
f39f6a4772 Merge changes I2e370952,I811cc8e1
* changes:
  Remove TEMPORARY_DISABLE_PATH_RESTRICTIONS
  nsjail: Always remount /tmp before src/out/dist
2020-05-04 22:11:18 +00:00
Anton Hansson
d28d9884fe [automerger skipped] Merge "Fix soong crashing when there's no baseline file" am: ede5078144 am: f3a8ac39de -s ours
am skip reason: Change-Id I4c6ec327a59aefe74825b4c4719393dd267ba3aa with SHA-1 34ced82d2a is in history

Change-Id: I72b3fdb50263586baedfe11c6e3448b1328c4ec6
2020-05-04 21:01:10 +00:00
Anton Hansson
f3a8ac39de Merge "Fix soong crashing when there's no baseline file" am: ede5078144
Change-Id: I824e3e5a5e16acc5faf55be55e28e288b6bad34f
2020-05-04 20:49:52 +00:00
Anton Hansson
e714565ce8 Treat lint warnings as errors
Warnings get lost in the build spam and never get fixed. Right now is
the best time to do this, because we only track the warnings/errors
since the last released API. The API has just been frozen, so the number
of warnings is at an all-time low.

Whitelist the car lib and test stubs for now, which produce a lot of
warnings.

Bug: 154317059
Test: presubmit
Change-Id: I9aa7cb1b947c6c664f15e2bd5835d76eaac1237a
2020-05-04 21:47:34 +01:00
Anton Hansson
ede5078144 Merge "Fix soong crashing when there's no baseline file" 2020-05-04 20:33:26 +00:00
Dan Willemsen
347ba75679 Remove TEMPORARY_DISABLE_PATH_RESTRICTIONS
This was a temporary migration tool, and has been broken ever since the
ninja environment started being restricted. Remove it, since it has
lasted two releases.

Test: TEMPORARY_DISABLE_PATH_RESTRICTIONS=true m
Change-Id: I2e3709525598030f5c24d12fa966e531dfed33ae
2020-05-04 19:54:57 +00:00
Artur Satayev
480e25b74f Introduce min_sdk_version to deps info.
Bug: 149622332
Test: m
Change-Id: Ie6568cb8a82d5cca9a3dc91b5a068abf4b0632dc
2020-05-04 19:44:28 +01:00
Treehugger Robot
5b001c96dd Merge "Report visibility errors in both check and gather phases" am: e661212b76 am: deaf0b2d07
Change-Id: Ib6f0f04e565bb1d1920ddba5e4b38b2b0b7feb94
2020-05-04 17:58:23 +00:00
Treehugger Robot
4ed2f14dbc Merge "Reduce duplication in visibility property management" am: b6b0ca1d87 am: 5879210577
Change-Id: I63fcee81adbd2a0c6b2a86d69fbf6e633f9e1914
2020-05-04 17:58:06 +00:00
Anton Hansson
6778b32561 Merge "Disable "check last" for test api" into rvc-dev am: fc39bd861d
Change-Id: Ib1bb10fa93d3d77afdf47dcfbfe58792d63f4765
2020-05-04 17:57:12 +00:00
Anton Hansson
fc39bd861d Merge "Disable "check last" for test api" into rvc-dev 2020-05-04 17:44:05 +00:00
Treehugger Robot
deaf0b2d07 Merge "Report visibility errors in both check and gather phases" am: e661212b76
Change-Id: I80a609915802545a340a4c8b7227712f29eac128
2020-05-04 17:42:56 +00:00
Treehugger Robot
5879210577 Merge "Reduce duplication in visibility property management" am: b6b0ca1d87
Change-Id: Id070475dd4bf9ceae3c6b60960d54a3b64fd9f50
2020-05-04 17:42:49 +00:00
Treehugger Robot
e661212b76 Merge "Report visibility errors in both check and gather phases" 2020-05-04 17:25:45 +00:00
Treehugger Robot
b6b0ca1d87 Merge "Reduce duplication in visibility property management" 2020-05-04 17:25:29 +00:00
Artur Satayev
a8bd113a69 Introduce flat deps info list.
Compared to full list, flat list drops dependency edges and simply
lists all transitive dependencies for a top-level apex bundle.

Bug: 149622332
Test: m, manually build flatlist

Change-Id: Ibd521c96b7aeab90b95965c1b524e0a0152aaf5a
2020-05-04 18:01:11 +01:00
Artur Satayev
872a144dca Export depsInfo into android package.
Move depsInfo into android for easier sharing with APK code.

Bug: 149622332
Test: m, diff'ing outputs for conscrypt module.
Change-Id: If0ee967d37425540e69b4ce9304229d9f2cd86bd
2020-05-04 18:01:09 +01:00
Artur Satayev
2eedf623ff Ensure APEX's Java deps use stable SDKs.
Test: m
Bug: 153333044
Change-Id: Ib1acf3073e96fe23c92d292ec0b1a91e2cd408db
Merged-In: Ib1acf3073e96fe23c92d292ec0b1a91e2cd408db
Exempt-From-Owner-Approval: cp from aosp
(cherry picked from commit 8cf899afcc)
2020-05-04 16:51:59 +00:00
satayev
7c54f0358c Merge "Ensure APEX's Java deps use stable SDKs." am: 9d6ea77c52 am: 858239ce20
Change-Id: Icf58cab4392926b11836447d24161ef224e3ac09
2020-05-04 16:31:30 +00:00
satayev
858239ce20 Merge "Ensure APEX's Java deps use stable SDKs." am: 9d6ea77c52
Change-Id: Ifb2eb5e7212fbbe979ad609e5a0c57fd058cdf07
2020-05-04 16:21:57 +00:00
satayev
9d6ea77c52 Merge "Ensure APEX's Java deps use stable SDKs." 2020-05-04 16:03:44 +00:00
Ulya Trafimovich
7ea319a126 Add forgotten apex prefix to Jacoco boot image module. am: 817133ee2a am: 0e3f053f53
Change-Id: I6189afb05e50dba93949615ac969380e952adbf3
2020-05-04 13:43:53 +00:00
Ulya Trafimovich
0e3f053f53 Add forgotten apex prefix to Jacoco boot image module. am: 817133ee2a
Change-Id: I4af7102ea684249565ecea8d147429375d6d16d1
2020-05-04 13:38:05 +00:00
Anton Hansson
26e7ba575b Merge "Make prebuilt_sdk support module-lib and system-server" into rvc-dev am: e16ca7d52d
Change-Id: I7d06f1c1c8cd34b1725b76c53509e7c217837487
2020-05-04 13:02:52 +00:00
Anton Hansson
e16ca7d52d Merge "Make prebuilt_sdk support module-lib and system-server" into rvc-dev 2020-05-04 12:51:31 +00:00
Ulya Trafimovich
817133ee2a Add forgotten apex prefix to Jacoco boot image module.
This is a follow-up for https://r.android.com/1292915, which introduced
two-column format for the components of the boot jar list. This CL
fixes build failure for the coverage build.

Test: m EMMA_INSTRUMENT=true EMMA_INSTRUMENT_FRAMEWORK=true
Change-Id: Ib8b156bf81943fe07084cbce5e7e9bf70e759a5d
2020-05-04 12:16:25 +01:00
Inseob Kim
69cf09e1fd Fix build error of sysprop_library in namespace
Dependencies from property_contexts to sysprop_library now uses absolute
module path, and modules which are not exported to make are filtered
out.

Bug: 155148526
Test: add sysprop_library under any soong_namespace
Test: check build.ninja and see property_contexts inputs
Change-Id: Ib9456e8e5dfca74ce53da3cc947c8e6b1ed9a16b
2020-05-04 19:28:25 +09:00
Treehugger Robot
e7a69974b9 [automerger skipped] Merge "Don't tell make about modules in other namespaces" am: 266a66e20c am: f260c2e143 -s ours
am skip reason: Change-Id I68912bb6a5696809c318d1ec816a1bcfbe2df245 with SHA-1 7b6af23db6 is in history

Change-Id: I8d66bc62d42cd6b814562d4caf7ce4158985381b
2020-05-04 09:08:33 +00:00