Commit Graph

8 Commits

Author SHA1 Message Date
Kousik Kumar f16d798822 Switch default execution strategy to racing for developer builds
This is to efficiently use both local and remote resources when using
RBE for Android developers.

Bug: b/170699893
Change-Id: I46bc3ff9c0d8d08e8f3aaa15076eb606737355af
2020-11-25 12:14:16 -05:00
Kousik Kumar aa79007e04 Use unified cas uploads / downloads
This is to deduplciate uploads and downloads when running builds with
RBE. Especially useful for certain Java / R8 / D8 actions that have JAR
files as common inputs.

Change-Id: I0459d4e5c89bd93e5c0c53195fdabccabec08674
2020-11-24 10:56:32 -05:00
Patrice Arruda 96a3f9df33 Source rbesetup.sh from any location inside of a repo directory.
The current rbesetup.sh has to be source from the root directory
of the checked out repo since it has a relative path to the sourced
build/envsetup.sh script. A function was written in rbesetup.sh
script to source the rbesetup.sh script anywhere inside of a
checked out repo. Added additional error checking to validate
the envsetup.sh is available and not to continue sourcing the script
if envsetup.sh script is not found.

Fixes: b/169438960
Test: Sourced the rbesetup script from
        * external directory
	* inside of a symlink
	* outside of repo (sourcing fails which is correct)
	* root repo
Change-Id: I2db66a444074adca4d4ab87b8786e9044a3646f8
2020-09-28 22:09:41 +00:00
Ramy Medhat fe66d3992b Unset USE_GOMA when using RBE.
Test: Ran rbesetup.sh after setting USE_GOMA
Change-Id: Idf6c1b4f7591aed96d5365e461260060004d4494
2020-08-26 05:47:33 -04:00
Ramy Medhat 3491bbdbf8 Add function to export default values for RBE related variables
Test: ran rbesetup.sh and small build after.
Change-Id: I429835f1bb6da75e2fcee7e9ddac6b11672121cd
2020-08-13 14:41:32 -04:00
Patrice Arruda d990f70fa2 Set ANDROID_ENABLE_METRICS_UPLOAD to the metrics_uploader path to upload metrics.
This is to collect metrics from our RBE dogfooders. This CL will be
rolledback once the metrics pipeline is turned live.

Bug: b/140638454
Test: source the script and then "m nothing". Monitored the uploading
      of the metrics.
Change-Id: Ide996a44a5a651ed026d7c8272283675fbb092b5
2020-07-10 23:22:49 +00:00
Luca Stefani cf82af25f6 rbe: Remove stray /
Test: use_rbe m
Change-Id: I5c1b1f07ac2079474c0f81935aaa1d3c035c51c4
2020-06-13 22:38:58 +02:00
Kousik Kumar 4faa2a5352 Add an RBE setup script that developers can source to run RBE builds
Test: Ran "source build/envsetup.sh && source build/rbesetup.sh", then
ran "use_rbe m" and that worked.

Change-Id: I2413a3648e9b2ff680cab6fededc07bbdd43378f
2020-03-05 17:37:26 -08:00