Commit Graph

41377 Commits

Author SHA1 Message Date
Chris Parsons 2678212a0f Add a denylist for specifically mixed builds am: bab4d7e3bc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677624

Change-Id: I6796d9e24d7cd244b3eceb17905c5fd59ffe6675
2021-04-19 19:07:09 +00:00
Colin Cross 82da9e5887 Merge changes Iefe133ce,I893f3dd0,I604a11c9 am: b5fa2646d8 am: 1edfe15518 am: 3e0b38d6ec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1675964

Change-Id: I4fd78410b40b37597497272adc081fff2b235b89
2021-04-19 18:43:13 +00:00
Colin Cross f8d9c499d4 Reland: Add jni_libs property to java tests
Add jni_libs property to java tests and treat it as test data that
should be copied to the lib or lib64 directory in the test directory.

This relands I3a118b933ab30dcd731c6dc2708da9bc63ab5520 with fixes for
the test on mac.

Fixes: 176593487
Test: java_test.go
Change-Id: I2f8c46643cff7a7ae6dc4d4dbad58f0396e45f09
2021-04-19 10:57:55 -07:00
Pirama Arumuga Nainar 655a7d50f4 [rust] Update clang version used for bindgen
Bug: http://b/185528062

Test: presubmit
Change-Id: I0060643b0dec998d1d4f8da2c504c79223995f98
2021-04-19 10:10:21 -07:00
Treehugger Robot 46b938485a Merge "Change par file generate rules." 2021-04-19 16:56:55 +00:00
Liz Kammer 25f369fdca Move cc_object tests to object_test.go
Test: go test cc tests
Change-Id: I6a138482f678b6168b06b523ddbfeb639bf70364
2021-04-19 12:44:51 -04:00
Chris Parsons bab4d7e3bc Add a denylist for specifically mixed builds
This allows us to, for certain modules, enable bp2build, but disable
mixed builds.
This facilitates easier iteration on these two features, as modules can
be incrementally "fixed" for bp2build, even if they are not ready for
mixed builds integration.

Test: USE_BAZEL_ANALYSIS=1 m libc
Test: Manually verified that note_* modules exist in bionic/libc/BUILD
Test: bazel build //bionic/....
Change-Id: I3462c8398680140cfc953443d96196143b8ad0a3
2021-04-19 12:30:02 -04:00
Colin Cross 3e0b38d6ec Merge changes Iefe133ce,I893f3dd0,I604a11c9 am: b5fa2646d8 am: 1edfe15518
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1675964

Change-Id: I886102e516f0862cefe6f9a39bdc93b46cf47c36
2021-04-19 16:28:27 +00:00
Colin Cross 1edfe15518 Merge changes Iefe133ce,I893f3dd0,I604a11c9 am: b5fa2646d8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1675964

Change-Id: Iaf40c188a7da435dc3c56932562df329bfbdd881
2021-04-19 16:01:21 +00:00
Jaewoong Jung 302c5b8d80 Extract getBaselineFilepath method.
Test: m nothing
Bug: 182349282
Change-Id: Id3ab0f3b7d398af9dcfd66ee3c0bda64d999178d
2021-04-19 08:54:36 -07:00
Colin Cross b5fa2646d8 Merge changes Iefe133ce,I893f3dd0,I604a11c9
* changes:
  Fix metalava api baseline update command
  sbox: print failing command line before output
  sbox: best-effort copy output files on failure
2021-04-19 15:34:57 +00:00
Lukacs T. Berki 64353a4e6d Propagate errors from integration tests scripts. am: 731bb91b8e am: c48e025f28 am: 98e761262a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676618

Change-Id: Ib281a0e6d492df397ba676ee3174c93148daed0b
2021-04-19 10:12:21 +00:00
Lukacs T. Berki 98e761262a Propagate errors from integration tests scripts. am: 731bb91b8e am: c48e025f28
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676618

Change-Id: If742278989c8726a0fcc7eb3eaf3a8999d8d5c1c
2021-04-19 09:45:39 +00:00
Lukacs T. Berki c48e025f28 Propagate errors from integration tests scripts. am: 731bb91b8e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676618

Change-Id: Id44cd55cc9285d5de02ea67de3095ad3b8e6fe5d
2021-04-19 09:23:28 +00:00
yangbill 3aa297570b Change par file generate rules.
Make sure the shebang of the par file is consistent with the main python
script rather than use /usr/bin/python arbitrarily.

Bug: 185399398
Bug: 185094069
Test: m atest ; atest-dev --help
      m atest-py2 ; atest-py2-dev --help
Change-Id: Ice4590b3d173e6d11e608c2ca29b297df0dc4089
2021-04-19 08:08:34 +00:00
Lukács T. Berki 268ded6d1b Merge "Do not pass the list of deps to RunBlueprint." am: 5fb28ffdec am: ec210f4eb6 am: 61ce95c809
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676614

Change-Id: I980f487639d98d49c15424f802afe47199173662
2021-04-19 07:58:31 +00:00
Lukács T. Berki 61ce95c809 Merge "Do not pass the list of deps to RunBlueprint." am: 5fb28ffdec am: ec210f4eb6
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676614

Change-Id: Ie6de460f6e33087810c771c7035be947278ceb59
2021-04-19 07:32:26 +00:00
Lukacs T. Berki 731bb91b8e Propagate errors from integration tests scripts.
Test: Presubmits.
Change-Id: Ie1f83c562a357e472bcaa95a4c1567a3e974d496
2021-04-19 09:28:21 +02:00
Lukács T. Berki ec210f4eb6 Merge "Do not pass the list of deps to RunBlueprint." am: 5fb28ffdec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676614

Change-Id: If9a08525b8cdc7e0915d0cdca412df6ffbbcf39f
2021-04-19 07:04:22 +00:00
Lukács T. Berki 5fb28ffdec Merge "Do not pass the list of deps to RunBlueprint." 2021-04-19 06:46:52 +00:00
Treehugger Robot a211c218df Merge "Add LLNDK stubs and headers to VNDK snapshot" am: 266fcfb850 am: 04d916ba64 am: 2ed0d7346e
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677930

Change-Id: I3143fc53087f14939126db6af6595b3e1282211b
2021-04-17 15:00:59 +00:00
Treehugger Robot 2ed0d7346e Merge "Add LLNDK stubs and headers to VNDK snapshot" am: 266fcfb850 am: 04d916ba64
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677930

Change-Id: Ia40fda14b517df00be95faec97adc3642e2da96c
2021-04-17 14:34:27 +00:00
Treehugger Robot 04d916ba64 Merge "Add LLNDK stubs and headers to VNDK snapshot" am: 266fcfb850
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677930

Change-Id: I8d1ff9e631628d9bd18ce58d3cf9063f687d523e
2021-04-17 14:14:18 +00:00
Treehugger Robot 266fcfb850 Merge "Add LLNDK stubs and headers to VNDK snapshot" 2021-04-17 13:46:32 +00:00
Colin Cross 289584c20c Merge "Revert "Add jni_libs property to java tests"" am: de1b891690 am: 6aaa526881 am: 964d4a4c7b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677947

Change-Id: I98779c7847902c12c1b7c4a2297764823c0542e3
2021-04-17 06:45:13 +00:00
Colin Cross 964d4a4c7b Merge "Revert "Add jni_libs property to java tests"" am: de1b891690 am: 6aaa526881
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677947

Change-Id: I0af8e86d59322272223e5ef9e0d31badc42b00ba
2021-04-17 06:17:21 +00:00
Treehugger Robot 33accf0115 Merge changes from topic "tvts-test-host-jni" am: aef14db78a am: 3640bc3f70 am: af25c6cab8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560314

Change-Id: I1894a0a5bc90eba3a8151813834864344c881790
2021-04-17 05:53:34 +00:00
Colin Cross 6aaa526881 Merge "Revert "Add jni_libs property to java tests"" am: de1b891690
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1677947

Change-Id: I2472352c41e071bcafa4f531611d1173d7fc5df8
2021-04-17 05:52:57 +00:00
Treehugger Robot af25c6cab8 Merge changes from topic "tvts-test-host-jni" am: aef14db78a am: 3640bc3f70
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560314

Change-Id: I0a1531f9830b489fb04d44b23df3f895420ee41f
2021-04-17 05:29:50 +00:00
Colin Cross de1b891690 Merge "Revert "Add jni_libs property to java tests"" 2021-04-17 05:17:45 +00:00
Colin Cross 26616d4cfd Revert "Add jni_libs property to java tests"
This reverts commit 246164a055.

Reason for revert: broke the mac build
Bug: 176593487

Change-Id: Id0242e37aa40d84d291bf7b8ee46dfe98c4d5905
2021-04-17 05:17:03 +00:00
Treehugger Robot 3640bc3f70 Merge changes from topic "tvts-test-host-jni" am: aef14db78a
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1560314

Change-Id: I8f6508b870beb7a38426f64938f22aa37d55ad51
2021-04-17 04:56:12 +00:00
Treehugger Robot aef14db78a Merge changes from topic "tvts-test-host-jni"
* changes:
  Add jni_libs property to java tests
  Add Target to cc.SharedLibraryInfo
2021-04-17 04:35:24 +00:00
Colin Cross 9e79164708 Merge "Fix test_glob_noop_incremental" am: 7d9d2405f3 am: ae1acc4506 am: ea258b9057
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676490

Change-Id: I0a4dbe05a91fec4721b7b1b990af767b3a42e01d
2021-04-17 03:38:49 +00:00
Colin Cross ea258b9057 Merge "Fix test_glob_noop_incremental" am: 7d9d2405f3 am: ae1acc4506
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676490

Change-Id: I0a8e1e585c26fa4c2d989ab3fbd4e519a1ed1f45
2021-04-17 03:10:02 +00:00
Colin Cross ae1acc4506 Merge "Fix test_glob_noop_incremental" am: 7d9d2405f3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676490

Change-Id: If2e890489e0cb992078cabe7d465d20f00773f54
2021-04-17 02:46:37 +00:00
Colin Cross 7d9d2405f3 Merge "Fix test_glob_noop_incremental" 2021-04-17 02:22:06 +00:00
Treehugger Robot ad3b9d177b Merge "ApiLevel of "" and "core_platform" is FutureApiLevel" am: d419826d8b am: 220dc9917d am: bdfc233f99
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1675769

Change-Id: I725aca7f1e1912463fb96266d17956914809cef2
2021-04-17 00:52:15 +00:00
Treehugger Robot bdfc233f99 Merge "ApiLevel of "" and "core_platform" is FutureApiLevel" am: d419826d8b am: 220dc9917d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1675769

Change-Id: I2f9db624526f546641c2641b2f79e4b6bb8855fe
2021-04-17 00:27:13 +00:00
Treehugger Robot 220dc9917d Merge "ApiLevel of "" and "core_platform" is FutureApiLevel" am: d419826d8b
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1675769

Change-Id: Idc793187b559ca1a368ee5cf8d2fc1538fe95496
2021-04-17 00:03:38 +00:00
Treehugger Robot d419826d8b Merge "ApiLevel of "" and "core_platform" is FutureApiLevel" 2021-04-16 23:35:42 +00:00
Paul Duffin 28b1ac9a9d Merge "Migrate sdk tests away from checkAndroidBpContents" am: 53e5f2a996 am: e626c704f3 am: b9148ff0bc
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1678145

Change-Id: I90c15684367f3488f0653d5fcdff7da6ba73213d
2021-04-16 23:07:56 +00:00
Paul Duffin b9148ff0bc Merge "Migrate sdk tests away from checkAndroidBpContents" am: 53e5f2a996 am: e626c704f3
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1678145

Change-Id: I49cd13cc2801a583be770b843766cbe71aa7eeb2
2021-04-16 22:41:32 +00:00
Paul Duffin e626c704f3 Merge "Migrate sdk tests away from checkAndroidBpContents" am: 53e5f2a996
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1678145

Change-Id: I8a4fc5862037c49c9e27feecee8ee757cd62481d
2021-04-16 22:14:30 +00:00
Colin Cross 246164a055 Add jni_libs property to java tests
Add jni_libs property to java tests and treat it as test data that
should be copied to the lib or lib64 directory in the test directory.

Fixes: 176593487
Test: java_test.go
Change-Id: I3a118b933ab30dcd731c6dc2708da9bc63ab5520
2021-04-16 21:59:23 +00:00
Colin Cross 63eeda027c Fix metalava api baseline update command
metalava is run inside sbox with a modified $PWD, so putting $PWD in
the output message results in an incorrect path.  It was also always
incorrect when the output directory was an absolute path.  Add a
cd $ANDROID_BUILD_TOP to the command line and use relative paths
instead.

Bug: 185516277
Test: m out/soong/.intermediates/frameworks/base/system-api-stubs-docs-non-updatable/android_common/metalava/api_lint.timestamp with lint error
Change-Id: Iefe133cea4c3a604ecd2b0ea20f4ba14ae13b425
2021-04-16 14:55:50 -07:00
Colin Cross 4258a39bd1 sbox: print failing command line before output
The full command line run inside sbox can be very long, and printing it
after the errors printed by the failing command can hide the error
messages.  Buffer the output of the command and print the failing command
line before the output if it fails.

Bug: 185516277
Test: m out/soong/.intermediates/frameworks/base/system-api-stubs-docs-non-updatable/android_common/metalava/api_lint.timestamp with lint error
Change-Id: I893f3dd01f1baf195e182111c5c49e92eb82f3b0
2021-04-16 14:55:12 -07:00
Paul Duffin 53e5f2a996 Merge "Migrate sdk tests away from checkAndroidBpContents" 2021-04-16 21:50:00 +00:00
Liz Kammer 69f3234fb9 Merge "Split bazel -path functions and clarify docs" am: ebf17ee04a am: 6b5e3487cb am: 42aa12fa01
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676035

Change-Id: Id3a4324443a95ce662a485698eccc1e38c4e0f55
2021-04-16 21:40:52 +00:00
Liz Kammer 42aa12fa01 Merge "Split bazel -path functions and clarify docs" am: ebf17ee04a am: 6b5e3487cb
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1676035

Change-Id: I17798c3cb6fd46c298b4b4d895e7e64dc444d828
2021-04-16 21:18:22 +00:00