platform_build_soong/ui/build
Dan Willemsen 80d7261821 Background distGzipFile to speed up CI builds
These can take a minute or more of build time, and currently hold up
other processing. We could move to a parallel compression scheme to
speed them up, but it's simpler just to background them and continue the
build, waiting to make sure they've finished before exiting.

Testing this on git_master/flame-userdebug:

This brings a local no-op `m nothing dist` build from 2m1s to 1m39s,
even though most of that time is still spent waiting on these (since
there is very little else happening in a `nothing` build when Soong and
Kati don't need to run).

Running `touch art/Android.mk; m nothing dist` (so the above, but with
Kati) goes from 3m39s to 2m2s. We spent 9 seconds at the end waiting for
these to finish.

CI cases that almost always run Kati plus some number of other actions
are likely to completely hide the time taken to dist these files.

Bug: 229932999
Test: Check $DIST_DIR, files still exist
Change-Id: I1fb78d7c4d5103d72b5d71d9277dea0d452f8968
2022-04-22 04:03:29 +00:00
..
paths Allowlist stubby to be run within the path imposer 2022-03-03 15:07:32 -05:00
sandbox/darwin Revert "Revert "Revert "Revert "Add path interposer"""" 2018-05-31 14:59:33 -07:00
Android.bp Cut the multiproduct_kati -> soong-ui-build dep. 2021-08-11 15:15:02 +02:00
bazel.go Allow Bazel actions to see the SHELL variable. 2021-04-02 20:09:51 +00:00
build.go Background distGzipFile to speed up CI builds 2022-04-22 04:03:29 +00:00
cleanbuild.go system_dlkm: Add in list of partitions to clean 2022-02-04 23:12:00 +00:00
cleanbuild_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
config.go Add metrics to expconfigfetcher call 2022-04-11 21:24:03 +00:00
config_darwin.go Create a highmem pool and put metalava into it 2020-01-24 11:44:23 -08:00
config_linux.go Create a highmem pool and put metalava into it 2020-01-24 11:44:23 -08:00
config_test.go Change the approach to decide whether to upload metrics. 2021-10-11 21:05:00 +00:00
context.go Rename desc to description in PerfInfo 2021-10-11 11:11:45 -07:00
dumpvars.go Expose Clang wrapper's dump usage stats option 2022-04-17 15:01:06 +08:00
environment.go cd to / before running soong_build . 2021-03-03 09:14:22 +01:00
environment_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
exec.go Collect useful resource information of each executed process in soong_ui. 2020-11-04 23:35:43 +00:00
finder.go Report mkfile metrics with --mk-metrics 2022-03-03 15:28:20 -05:00
goma.go Add dist_dir to goma trigger 2019-07-23 16:16:15 -04:00
kati.go Fix propagating EMPTY_NINJA_FILE from multiproduct_kati to minibp 2021-06-01 11:43:55 -07:00
ninja.go Expose Clang wrapper's dump usage stats option 2022-04-17 15:01:06 +08:00
path.go soong_ui path.go: improve comments. 2020-11-18 22:13:23 -05:00
proc_sync.go Make soong lock file sync time configurable.. 2019-05-24 17:10:48 -04:00
proc_sync_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
rbe.go Pass along local resource fraction to reproxy 2022-01-13 02:13:10 -05:00
rbe_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
sandbox_config.go Create Make flags to set source tree as ReadOnly in soong builds 2021-06-01 21:40:49 +00:00
sandbox_darwin.go Implement linux sandboxing with nsjail 2019-01-15 13:47:31 -08:00
sandbox_linux.go Add errorHints to stdout when read-only file system errors are detected 2021-06-29 00:20:21 +00:00
sandbox_linux_test.go Create Make flags to set source tree as ReadOnly in soong builds 2021-06-01 21:40:49 +00:00
soong.go Fix some problems with soong metrics loading 2022-04-21 21:03:02 +00:00
test_build.go Make bgplob an exception to dangling rule check. 2021-11-10 12:32:22 +01:00
upload.go Change the approach to decide whether to upload metrics. 2021-10-11 21:05:00 +00:00
upload_test.go Change the approach to decide whether to upload metrics. 2021-10-11 21:05:00 +00:00
util.go Dist build.ninja and Android.bp.list 2020-06-25 12:50:00 -07:00
util_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00