Commit Graph

11 Commits

Author SHA1 Message Date
Kousik Kumar
721533e0d6 Add the ability to source RBE related scripts from envsetup.sh
This is so that developers don't have to remember to source a separate
script to source RBE related variables.
I'll modify the docs once this change is submitted.

Test:
Ran forrest build with fix for previous build failure - https://android-build.googleplex.com/builds/abtd/run/L72300000950316038

Bug: b/193407413
Change-Id: I16f057086e2ee4f5918816ea70dbb33d0f5e99ab
2021-07-14 11:31:54 -04:00
Ahaan Ugale
678f26c1e7 Revert "Add the ability to source RBE related scripts from envsetup.sh"
This reverts commit 9aa9e47b8c.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_rvc-qpr-dev-plus-aosp&target=ndk&lkgb=7546337&lkbb=7546521&fkbb=7546426, bug https://buganizer.corp.google.com/issues/193566521

Fix: 193566521
Change-Id: I7196a00006499f729baa86a252b0df6535c6aeaa
2021-07-13 22:12:24 +00:00
Kousik Kumar
9aa9e47b8c Add the ability to source RBE related scripts from envsetup.sh
This is so that developers don't have to remember to source a separate
script to source RBE related variables.
I'll modify the docs once this change is submitted.

Test:
USE_RBE=true source build/envsetup.sh sources RBE variables.
USE_RBE=false source build/envsetup.sh does NOT source RBE variables.
source build/envsetup.sh does NOT source RBE variables.

Bug: b/193407413
Change-Id: Ib8abf4c307b02fbb0c63b8a62d7aeda8be42d0fb
2021-07-12 14:05:13 -04:00
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