Support fetching config files from experiments fetcher binary
The expfetcher binary (added in https://critique.corp.google.com/cl/424076941), can fetch experiments configuration from CDPush and load them into Soong as part of its startup. If the binary exists, then we use it to fetch experiments config and put them in the out directory so that those env variables can be loaded by Soong during startup and inturn control whether RBE should be enabled or not. Design doc: go/rbe-android-dev-gradual-rollout Test: 1. time lunch aosp_bramble-userdebug (first lunch when "out" dir doesn't exist) - https://paste.googleplex.com/5824218777255936 - took ~9s and ran with RBE enabled. 2. time lunch aosp_bramble-userdebug (when "out" dir already exists) - https://paste.googleplex.com/6485045129773056 - took ~3.5s and ran with RBE enabled. 3. time lunch aosp_bramble-userdebug (when "vendor/google/tools/soong/expfetcher" doesn't exist) - https://paste.googleplex.com/6103083353374720 - took 6.5s and not RBE enabled. Bug: b/215181607 Change-Id: Ie3c085498c59929119534aa98863566eecb8e4eb
Loading
Please register or sign in to comment