Commit graph

105 commits

Author SHA1 Message Date
Cole Faust
e762b94fe7 Remove SandboxingDenyPathList
It's no longer used.

Bug: 307824623
Test: m nothing --no-skip-soong-tests
Change-Id: I181de9d852f4025c6c5829cc4941ffb705f7cb50
2024-03-15 19:50:03 +00:00
Cole Faust
5549257422 Remove depfile support from genrules
All usages of it have been removed.

Bug: 307824623
Test: Presubmits
Change-Id: I9502b328a5aaa6840653f46011ca6bd05f3cba99
2024-01-25 18:05:18 -08:00
Cole Faust
4cb1155368 Denylist com.google.pixel.camera.hal.manifest
This is an internal-only genrule, that was previously included in
a denylist in vendor/google/build. However, not all partners have
that file, so some products ended up setting
BUILD_BROKEN_GENRULE_SANDBOXING when that file didn't exist. Moving
it to the aosp allowlist lets us remove those build broken flags.

I checked with krzysio@ and yromanenko@ and they're ok with putting
this name in aosp.

Bug: 307824623
Test: Presubmits
Change-Id: Ia3f24a5c8c8efc62bdc84435343cafd1dac9afed
2024-01-12 16:23:56 -08:00
Cole Faust
9734cff08c Merge "Sandbox chre_atoms_log.h" into main 2023-12-20 18:43:12 +00:00
Cole Faust
81f2ac35f1 Sandbox CtsApkVerityTestDebugFiles
go/android-busy-beavers-sandboxing

It still has a diff in the generule_sandbox_test, but it's just the
addition of "./" in front of all the paths, which is fine.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py CtsApkVerityTestDebugFiles
Change-Id: I8b352305cfb339bc5a09a2305e10a187723d754d
2023-12-19 15:35:02 -08:00
Cole Faust
afc3e38658 Sandbox chre_atoms_log.h
go/android-busy-beavers-sandboxing

Bug: 307824623
Test: m chre_atoms_log.h
Change-Id: I3b4fcf6365e5571484964a4f9f344ed26f8f9afd
2023-12-18 15:02:38 -08:00
Cole Faust
776146b3f4 Sandbox camera-its
It was fixed with aosp/2866315.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py camera-its
Change-Id: Iaf3871682e99ceb7161c159acb757ce2949f5b3d
2023-12-13 15:15:26 -08:00
Cole Faust
bcfc299575 Remove art/test from genrule allowlist
go/android-busy-beavers-sandboxing

Bug: 307824623
Test: mm in art/test
Change-Id: Ic37343ad873f71461db984b030f6beda5279207c
2023-12-08 10:57:27 -08:00
Hugo Drumond Jacob
afadb164fd Revert "Sandbox chre_atoms_log.h and deqp_spvtools_update_build_version"
This reverts commit 12dcc8649e.

Reason for revert: See b/314904106

Bug: 314904106
Change-Id: Icb048d86a66a5f0492c3ae017314f4cdcd3ffabe
2023-12-05 17:49:50 +00:00
Cole Faust
b5bfebf19b Sandbox libcore-non-cts-tests-txt
Bug: 307824623
Test: m sandbox_libcore-non-cts-tests-txt and diffed the files before/after
Change-Id: If564e438d1e886419e435e24f52e0f0e2ec479d2
2023-11-30 14:53:21 -08:00
Cole Faust
e6698b06c3 Sandbox swiftshader_spvtools_update_build_version
Sandboxing produces this diff:
  1c1
  < "v2023.2", "SPIRV-Tools v2023.2 android-u-beta-1-gpl-587-g9d167f845"
  ---
  > "v2023.2", "SPIRV-Tools v2023.2 unknown hash, 2023-11-30T17:54:23"

But the git repository is already not garunteed to exist on CI, and
the genrule is consequently commented with a FIXME about that.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py swiftshader_spvtools_update_build_version
Change-Id: I98e65781bd49137662ed020927940b0f3e4d645b
2023-11-30 09:55:20 -08:00
Treehugger Robot
3766553866 Merge "Sandbox vm-tests-tf-lib" into main 2023-11-30 13:53:46 +00:00
Cole Faust
141314e11a Sandbox aidl-golden-test-build-hook-gen
Bug: 307824623
Test: m aidl-golden-test-build-hook-gen
Change-Id: I71ebe9d16702be15a8dc98b10dedf685114daed8
2023-11-29 17:47:12 -08:00
Treehugger Robot
7d7d94ffd2 Merge "Sandbox chre_atoms_log.h and deqp_spvtools_update_build_version" into main 2023-11-29 18:36:10 +00:00
Treehugger Robot
0fd71d0232 Merge "Sandbox seller-frontend-service-stub-lite" into main 2023-11-29 14:20:24 +00:00
Treehugger Robot
5ca7b8ed22 Merge "Sandbox ScriptGroupTest-rscript" into main 2023-11-28 22:19:57 +00:00
Cole Faust
12dcc8649e Sandbox chre_atoms_log.h and deqp_spvtools_update_build_version
go/roboleaf-busy-beavers-sandboxing

deqp_spvtools_update_build_version gets this diff:
  < "v2022.4-dev", "SPIRV-Tools v2022.4-dev android-u-beta-1-gpl-177-g1ef94532"
  ---
  > "v2022.4-dev", "SPIRV-Tools v2022.4-dev unknown hash, 2023-11-28T19:30:48"

But it already has a comment on it to revisit its usage of git,
which doesn't work on CI.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py chre_atoms_log.h deqp_spvtools_update_build_version
Change-Id: I759970a5687c4f75116a40f5c127ae762da4ee95
2023-11-28 12:39:09 -08:00
Cole Faust
28ac433d3e Sandbox vm-tests-tf-lib
go/roboleaf-busy-beavers-sandboxing

This genrule is non-deterministic, (the jar files have timestamps)
so genrule_sandbox_test.py fails, but should otherwise work with
sandboxing.

Bug: 307824623
Test: m vm-tests-tf-lib
Change-Id: Ia8c60e7a0f134e839939622fd2747ff73ea3ce3c
2023-11-28 11:23:31 -08:00
Cole Faust
38969102dd Merge "Sandbox cronet genrules" into main 2023-11-28 18:30:40 +00:00
Cole Faust
122767d27c Merge "Sandbox apexd test genrules" into main 2023-11-28 17:58:28 +00:00
Treehugger Robot
a4291d572a Merge "Sandbox checkIn-service-stub-lite" into main 2023-11-28 02:21:56 +00:00
Cole Faust
9de49502af Sandbox checkIn-service-stub-lite
go/roboleaf-busy-beavers-sandboxing

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py checkIn-service-stub-lite
Change-Id: If64ca165eed121b536f566a4fc36c9e6597784fd
2023-11-27 17:31:13 -08:00
Cole Faust
44850e04ae Sandbox ScriptGroupTest-rscript
go/roboleaf-busy-beavers-sandboxing

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py ScriptGroupTest-rscript
Change-Id: I335634c0a0a74d35967f540070112888758ae0ca
2023-11-27 15:15:44 -08:00
Cole Faust
fc1e0cec4c Sandbox ue_unittest_erofs_imgs
This already works with sandboxing, I'm not sure why it was added.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py ue_unittest_erofs_imgs
Change-Id: I8d2c151e3bc6ed87e1d147e0ae316397ad56c4c8
2023-11-27 14:55:06 -08:00
Cole Faust
2769238611 Sandbox seller-frontend-service-stub-lite
go/roboleaf-busy-beavers-sandboxing

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py seller-frontend-service-stub-lite
Change-Id: Ibb68124b613cc6b43fcacdfb8447d25d8577945b
2023-11-27 14:32:46 -08:00
Cole Faust
962ee8be34 Sandbox apexd test genrules
Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py gen_corrupt_rebootless_apex gen_key_mismatch_capex
Change-Id: I558f0b856f80bfebbb9b68b8c95c587d4e13ac84
2023-11-27 14:11:05 -08:00
Treehugger Robot
ae4cad3cda Merge "Sandbox libc_musl_sysroot_bits" into main 2023-11-27 21:32:58 +00:00
Cole Faust
c115217249 Sandbox pvmfw_fdt_template_rs
This already works with sandboxing, I'm not sure why it was added.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py pvmfw_fdt_template_rs
Change-Id: I43390274740144122aae2a225807a6e1100c85c1
2023-11-27 12:28:14 -08:00
Cole Faust
eb9028d240 Sandbox libc_musl_sysroot_bits
Sandboxing it produces this diff:

  $ diff <(zipinfo -l out_not_sandboxed/soong/.intermediates/external/musl/libc_musl_sysroot_bits/linux_glibc_x86_64/gen/  libc_musl_sysroot_bits.zip) <(zipinfo -l out/soong/.intermediates/external/musl/libc_musl_sysroot_bits/linux_glibc_x86_64/gen/  libc_musl_sysroot_bits.zip)
  1,3c1,2
  < Archive:  out_not_sandboxed/soong/.intermediates/external/musl/libc_musl_sysroot_bits/linux_glibc_x86_64/gen/  libc_musl_sysroot_bits.zip
  < Zip file size: 8535 bytes, number of entries: 16
  < -rw-r--r--  2.0 unx      421 bl      225 defN 08-Jan-01 00:00 include/bits/alltypes.h.in
  ---
  > Archive:  out/soong/.intermediates/external/musl/libc_musl_sysroot_bits/linux_glibc_x86_64/gen/libc_musl_sysroot_bits.zip
  > Zip file size: 5358 bytes, number of entries: 14
  17d15
  < -rw-r--r--  2.0 unx    10384 bl     2666 defN 08-Jan-01 00:00 include/bits/syscall.h.in
  19c17
  < 16 files, 21039 bytes uncompressed, 6439 bytes compressed:  69.4%
  ---

So the alltypes.h.in and syscall.h.in are removed from the zip after
sandboxing. This seems good, because those two files are handled
separately already in that Android.bp file, and are not regular header
files like the rest of the zip file.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py libc_musl_sysroot_bits
Change-Id: I46b6340046ad7df85ea4fc9c54b46ade305661e6
2023-11-27 12:18:52 -08:00
Treehugger Robot
4e788f2456 Merge "Sandbox tflite-support genrules" into main 2023-11-27 18:41:42 +00:00
Treehugger Robot
40b8b16042 Merge "Sandbox libbssl_sys_src_nostd" into main 2023-11-27 10:28:27 +00:00
Treehugger Robot
d766a44530 Merge "Sandbox r8retrace genrules" into main 2023-11-23 00:17:28 +00:00
Cole Faust
1ddb8125d3 Sandbox libbssl_sys_src_nostd
go/roboleaf-busy-beavers-sandboxing

gensrcs should require output_extension to be set, when it's not,
you get some weird filename like `lib.`. Switch to genrules for
simplicity.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py libbssl_sys_src_nostd
Change-Id: I4ec2686c560439c3150b74b14e313ed6b688720c
2023-11-22 15:23:50 -08:00
Cole Faust
954ef637e9 Merge "Sandbox trout genrules" into main 2023-11-22 22:05:42 +00:00
Cole Faust
28e46107cf Sandbox trout genrules
These were fixed in aosp/2838463, aosp/2839595, pa/2668052, and
pa/2668054.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py TracingVMProtoStub_cc TracingVMProtoStub_h VehicleServerProtoStub_cc@default-grpc VehicleServerProtoStub_cc@2.0-grpc-trout VehicleServerProtoStub_h@2.0-grpc-trout VehicleServerProtoStub_h@default-grpc
Change-Id: I9d21d608773e2974f8fca8af4dd16a654e8eb128
2023-11-22 12:09:27 -08:00
Cole Faust
f7474880a1 Sandbox atest_integration_fake_src
go/roboleaf-busy-beavers-sandboxing

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py atest_integration_fake_src
Change-Id: Ib3ae70b877227df794fec5516a754a9c32b06637
2023-11-22 11:07:06 -08:00
Cole Faust
0931c29463 Sandbox tflite-support genrules
go/roboleaf-busy-beavers-sandboxing

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py tflite_support_metadata_schema tflite_support_spm_config tflite_support_spm_encoder_config
Change-Id: Iab64f9f3125977685a5aa1ccffb093a68e4ac68b
2023-11-21 18:00:38 -08:00
Cole Faust
4a0be5cc17 Sandbox MultiDexLegacyTestApp_genrule and android-cts-verifier
These both work with sandboxing already, I'm not sure why they
were added to this list.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py android-cts-verifier MultiDexLegacyTestApp_genrule
Change-Id: Ie5a194fbe202b84a30eb3738d07ffb4ec9061bca
2023-11-21 17:04:24 -08:00
Cole Faust
cf783384d5 Sandbox cronet genrules
go/roboleaf-busy-beavers-sandboxing

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py cronet_aml_base_allocator_buildflags cronet_aml_base_allocator_buildflags__testing cronet_aml_base_allocator_partition_allocator_chromecast_buildflags cronet_aml_base_allocator_partition_allocator_chromecast_buildflags__testing cronet_aml_base_allocator_partition_allocator_chromeos_buildflags cronet_aml_base_allocator_partition_allocator_chromeos_buildflags__testing cronet_aml_base_allocator_partition_allocator_debugging_buildflags cronet_aml_base_allocator_partition_allocator_debugging_buildflags__testing cronet_aml_base_allocator_partition_allocator_logging_buildflags cronet_aml_base_allocator_partition_allocator_logging_buildflags__testing cronet_aml_base_allocator_partition_allocator_partition_alloc_buildflags cronet_aml_base_allocator_partition_allocator_partition_alloc_buildflags__testing cronet_aml_base_anchor_functions_buildflags cronet_aml_base_anchor_functions_buildflags__testing cronet_aml_base_android_runtime_jni_headers cronet_aml_base_android_runtime_jni_headers__testing cronet_aml_base_android_runtime_unchecked_jni_headers cronet_aml_base_android_runtime_unchecked_jni_headers__testing cronet_aml_base_base_android_java_enums_srcjar cronet_aml_base_base_jni_headers cronet_aml_base_base_jni_headers__testing cronet_aml_base_build_date cronet_aml_base_build_date__testing cronet_aml_base_cfi_buildflags cronet_aml_base_cfi_buildflags__testing cronet_aml_base_clang_profiling_buildflags cronet_aml_base_clang_profiling_buildflags__testing cronet_aml_base_debugging_buildflags cronet_aml_base_debugging_buildflags__testing cronet_aml_base_feature_list_buildflags cronet_aml_base_feature_list_buildflags__testing cronet_aml_base_ios_cronet_buildflags cronet_aml_base_ios_cronet_buildflags__testing cronet_aml_base_java_features_srcjar cronet_aml_base_java_switches_srcjar cronet_aml_base_logging_buildflags cronet_aml_base_logging_buildflags__testing cronet_aml_base_message_pump_buildflags cronet_aml_base_message_pump_buildflags__testing cronet_aml_base_orderfile_buildflags cronet_aml_base_orderfile_buildflags__testing cronet_aml_base_power_monitor_buildflags cronet_aml_base_power_monitor_buildflags__testing cronet_aml_base_profiler_buildflags cronet_aml_base_profiler_buildflags__testing cronet_aml_base_rust_buildflags cronet_aml_base_rust_buildflags__testing cronet_aml_base_sanitizer_buildflags cronet_aml_base_sanitizer_buildflags__testing cronet_aml_base_synchronization_buildflags cronet_aml_base_synchronization_buildflags__testing cronet_aml_base_test_base_unittests_jni_headers__testing cronet_aml_base_test_test_support_jni_headers__testing cronet_aml_base_tracing_buildflags cronet_aml_base_tracing_buildflags__testing cronet_aml_build_android_build_config_gen cronet_aml_build_android_build_config_gen_rename cronet_aml_build_android_native_libraries_gen cronet_aml_build_blink_buildflags cronet_aml_build_blink_buildflags__testing cronet_aml_build_branding_buildflags cronet_aml_build_branding_buildflags__testing cronet_aml_build_chromecast_buildflags cronet_aml_build_chromecast_buildflags__testing cronet_aml_build_chromeos_buildflags cronet_aml_build_chromeos_buildflags__testing cronet_aml_build_config_compiler_compiler_buildflags cronet_aml_build_config_compiler_compiler_buildflags__testing cronet_aml_components_cronet_android_buildflags cronet_aml_components_cronet_android_buildflags__testing cronet_aml_components_cronet_android_cronet_jni_headers cronet_aml_components_cronet_android_cronet_jni_headers__testing cronet_aml_components_cronet_android_cronet_jni_registration cronet_aml_components_cronet_android_cronet_jni_registration__java cronet_aml_components_cronet_android_cronet_jni_registration__java__testing cronet_aml_components_cronet_android_cronet_jni_registration__testing cronet_aml_components_cronet_android_cronet_tests_jni_headers__testing cronet_aml_components_cronet_android_http_cache_type_java cronet_aml_components_cronet_android_implementation_api_version cronet_aml_components_cronet_android_integrated_mode_state cronet_aml_components_cronet_android_integrated_mode_state_rename cronet_aml_components_cronet_android_interface_api_version cronet_aml_components_cronet_android_load_states_list cronet_aml_components_cronet_android_load_states_list_rename cronet_aml_components_cronet_android_net_idempotency_java cronet_aml_components_cronet_android_net_request_priority_java cronet_aml_components_cronet_android_network_quality_observation_source_java cronet_aml_components_cronet_android_request_context_config_java_proto__protoc_java cronet_aml_components_cronet_android_request_context_config_proto__testing_gen cronet_aml_components_cronet_android_request_context_config_proto__testing_gen_headers cronet_aml_components_cronet_android_request_context_config_proto_gen cronet_aml_components_cronet_android_request_context_config_proto_gen_headers cronet_aml_components_cronet_android_rtt_throughput_values_java cronet_aml_components_cronet_android_url_request_error_java cronet_aml_components_cronet_cronet_buildflags cronet_aml_components_cronet_cronet_buildflags__testing cronet_aml_components_cronet_cronet_version_header_action cronet_aml_components_cronet_cronet_version_header_action__testing cronet_aml_components_prefs_android_jni_headers cronet_aml_components_prefs_android_jni_headers__testing cronet_aml_crypto_buildflags cronet_aml_crypto_buildflags__testing cronet_aml_net_android_net_android_java_enums_srcjar cronet_aml_net_android_net_errors_java cronet_aml_net_android_net_errors_java_rename cronet_aml_net_base_registry_controlled_domains_lookup_strings_test_sets__testing cronet_aml_net_base_registry_controlled_domains_registry_controlled_domains cronet_aml_net_base_registry_controlled_domains_registry_controlled_domains__testing cronet_aml_net_buildflags cronet_aml_net_buildflags__testing cronet_aml_net_cronet_buildflags cronet_aml_net_cronet_buildflags__testing cronet_aml_net_effective_connection_type_java cronet_aml_net_http_transport_security_state_unittest_data__testing cronet_aml_net_http_transport_security_state_unittest_data_default__testing cronet_aml_net_isolation_info_proto__testing_gen cronet_aml_net_isolation_info_proto__testing_gen_headers cronet_aml_net_isolation_info_proto_gen cronet_aml_net_isolation_info_proto_gen_headers cronet_aml_net_net_jni_headers cronet_aml_net_net_jni_headers__testing cronet_aml_net_net_nqe_proto__testing_gen cronet_aml_net_net_nqe_proto__testing_gen_headers cronet_aml_net_net_nqe_proto_gen cronet_aml_net_net_nqe_proto_gen_headers cronet_aml_net_net_test_jni_headers__testing cronet_aml_net_third_party_quiche_net_quic_proto__testing_gen cronet_aml_net_third_party_quiche_net_quic_proto__testing_gen_headers cronet_aml_net_third_party_quiche_net_quic_proto_gen cronet_aml_net_third_party_quiche_net_quic_proto_gen_headers cronet_aml_net_third_party_quiche_net_quic_test_tools_proto__testing_gen cronet_aml_net_third_party_quiche_net_quic_test_tools_proto__testing_gen_headers cronet_aml_net_third_party_quiche_net_quic_test_tools_proto_gen cronet_aml_net_third_party_quiche_net_quic_test_tools_proto_gen_headers cronet_aml_testing_android_native_test_native_test_jni_headers__testing cronet_aml_third_party_metrics_proto_metrics_proto__testing_gen cronet_aml_third_party_metrics_proto_metrics_proto__testing_gen_headers cronet_aml_third_party_metrics_proto_metrics_proto_gen cronet_aml_third_party_metrics_proto_metrics_proto_gen_headers cronet_aml_third_party_quic_trace_quic_trace_proto__testing_gen cronet_aml_third_party_quic_trace_quic_trace_proto__testing_gen_headers cronet_aml_url_buildflags cronet_aml_url_buildflags__testing cronet_aml_url_url_jni_headers cronet_aml_url_url_jni_headers__testing cronet_tester_app_jni cronet_net_tester_app_jni cronet_java_tests_jni statslog-cronet-java-gen
Change-Id: I9e529684fa80a35981ed784f3bd6d622940dbd28
2023-11-21 16:28:59 -08:00
Cole Faust
852b82e5c2 Merge "Sandbox vndk_abi_dump_zip" into main 2023-11-21 23:53:56 +00:00
Cole Faust
1f6fb9b419 Merge "Sandbox awkgram.tab.h" into main 2023-11-21 23:36:42 +00:00
Treehugger Robot
964a084264 Merge "Sandbox emp_ematch genrules" into main 2023-11-21 23:22:03 +00:00
Treehugger Robot
024adceb24 Merge "Sandbox angle_commit_id" into main 2023-11-21 22:47:23 +00:00
Cole Faust
ae36d6b964 Sandbox awkgram.tab.h
Sandboxing it generates this diff:

  38,39c38,39
  < #ifndef YY_YY_OUT_SOONG_TEMP_SBOX_794A09CEE4E110D9FF38139A8943928FFD7288A5_OUT_AWKGRAM_TAB_H_INCLUDED
  < # define YY_YY_OUT_SOONG_TEMP_SBOX_794A09CEE4E110D9FF38139A8943928FFD7288A5_OUT_AWKGRAM_TAB_H_INCLUDED
  ---
  > #ifndef YY_YY_OUT_AWKGRAM_TAB_H_INCLUDED
  > # define YY_YY_OUT_AWKGRAM_TAB_H_INCLUDED
  280c280
  < #endif /* !YY_YY_OUT_SOONG_TEMP_SBOX_794A09CEE4E110D9FF38139A8943928FFD7288A5_OUT_AWKGRAM_TAB_H_INCLUDED  */
  ---
  > #endif /* !YY_YY_OUT_AWKGRAM_TAB_H_INCLUDED  */

Which is acceptable, the ifdef is based on the path to the file and
just there to prevent duplicate imports.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py awkgram.tab.h
Change-Id: I85c5e0f65e97d18f1aa8b36fa6b19402d2da6c8c
2023-11-21 14:18:27 -08:00
Cole Faust
b12a98651d Merge "Sandbox c2hal_test_genc++[_headers]" into main 2023-11-21 22:08:31 +00:00
Cole Faust
763710ca78 Sandbox vndk_abi_dump_zip
Sandboxing it generates this diff in it's output zip file:

  1,4c1,2
  < Archive:  out_not_sandboxed/soong/.intermediates/prebuilts/abi-dumps/vndk/vndk_abi_dump_zip/gen/vndk_abi_dump.zip
  < Zip file size: 319522663 bytes, number of entries: 7462
  < -rw-r--r--  2.0 unx     1055 bl      612 defN 08-Jan-01 00:00 Android.bp
  < -rw-r--r--  2.0 unx      143 bl       99 defN 08-Jan-01 00:00 OWNERS
  ---
  > Archive:  out/soong/.intermediates/prebuilts/abi-dumps/vndk/vndk_abi_dump_zip/gen/vndk_abi_dump.zip
  > Zip file size: 319519888 bytes, number of entries: 7454
  6810d6807
  < -rw-r--r--  2.0 unx      722 bl      142 defN 08-Jan-01 00:00 34/64/arm/source-based/config.json
  6926d6922
  < -rw-r--r--  2.0 unx      722 bl      142 defN 08-Jan-01 00:00 34/64/arm64/source-based/config.json
  7042d7037
  < -rw-r--r--  2.0 unx      722 bl      142 defN 08-Jan-01 00:00 34/64/arm_arm64/source-based/config.json
  7158d7152
  < -rw-r--r--  2.0 unx      722 bl      142 defN 08-Jan-01 00:00 34/64/x86/source-based/config.json
  7274d7267
  < -rw-r--r--  2.0 unx      722 bl      142 defN 08-Jan-01 00:00 34/64/x86_64/source-based/config.json
  7390d7382
  < -rw-r--r--  2.0 unx      722 bl      142 defN 08-Jan-01 00:00 34/64/x86_x86_64/source-based/config.json
  7465c7457
  < 7462 files, 5412913325 bytes uncompressed, 317891705 bytes compressed:  94.1%
  ---
  > 7454 files, 5412907795 bytes uncompressed, 317890142 bytes compressed:  94.1%

So sandboxing removes some files from the zip. It appears that the
intention of this zip file was to include a bunch of .lsdump files,
and these files that were removed were extraneous.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py vndk_abi_dump_zip
Change-Id: I15df4a4b54df362c30e2b231f6fed586cf0a267f
2023-11-21 14:04:52 -08:00
Treehugger Robot
23abfe7291 Merge "Sandbox libchrome genrules" into main 2023-11-21 22:04:03 +00:00
Cole Faust
babb750cdf Sandbox angle_commit_id
Sandboxing it generates this diff:

  1c1
  < #define ANGLE_COMMIT_HASH "1f7a2ce0bf57"
  ---
  > #define ANGLE_COMMIT_HASH "unknown hash"
  3,4c3,4
  < #define ANGLE_COMMIT_DATE "2023-11-17 17:33:59 +0000"
  < #define ANGLE_COMMIT_POSITION 26027
  ---
  > #define ANGLE_COMMIT_DATE "unknown date"
  > #define ANGLE_COMMIT_POSITION 0

These constants appear to be unused, and we don't really want the build
to inspect the git history, so just let them be unkown.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py angle_commit_id
Change-Id: I3e35af14d13142927ded9477e975576d7324c6b7
2023-11-21 13:56:27 -08:00
Cole Faust
8d99fa4d9d Sandbox emp_ematch genrules
These genrules already work with sandboxing, but bison emits #line
directives that reference filepaths. These paths differ between
sandboxed and non-sandboxed builds, which caused
genrule_sandboxing_test.py to think that they didn't work with
sandboxing.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py emp_ematch.yacc.c emp_ematch.yacc.h
Change-Id: I85ed0f80dee7997af6b08a37b12e9c0ad0bd8386
2023-11-21 13:28:42 -08:00
Cole Faust
e5d9c8d5f7 Sandbox c2hal_test_genc++[_headers]
These genrules already work with sandboxing, I'm not sure why they
were added to the list.

Bug: 307824623
Test: ./build/soong/tests/genrule_sandbox_test.py c2hal_test_genc++_headers c2hal_test_genc++
Change-Id: I697c9cff1db0bf71b3608684fde73535a72f71b2
2023-11-21 12:50:57 -08:00