-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up Chrobalt build acceleration with RBE. #4604
base: main
Are you sure you want to change the base?
Conversation
a320f77
to
dd5de54
Compare
7985666
to
8ae2da3
Compare
Set up Chrobalt build acceleration with RBE making it the default accelerator for both developers and the CI system. b/384982606
@@ -261,7 +261,7 @@ vars = { | |||
# Fetch configuration files required for the 'use_remoteexec' gn arg | |||
'download_remoteexec_cfg': False, | |||
# RBE instance to use for running remote builds | |||
'rbe_instance': Str('projects/rbe-chrome-untrusted/instances/default_instance'), | |||
'rbe_instance': Str('projects/cobalt-actions-prod/instances/default_instance'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't this be specified in the .gclient file instead of us needing to change the DEPS file? Though I don't know if there's a good way to easily do this for all devs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be able to be specified in .gclient
much like how download_remoteexec_cfg
is when we do gclient config --name=src https://github.com/${{ github.repository }} --custom-var=download_remoteexec_cfg=True
, but I wasn't sure we wanted to ever "risk" using rbe-chrome-untrusted
.
Also secondly, it's a dumb question but how do you pass "/" chars in key=value command line arg. `--custom-var=rbe_instance=projects/cobalt-actions-prod/instances/default_instance' throws errors. I've tried using quotes and escape chars
build/toolchain/rbe.gni
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe there's a way we can set these variables for builds, but it would rely on gn.py—if someone runs gn gen
locally without arguments do we care if they end up using the chromium reclient server vs ours?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rather not risk it.
-
they won't be able to because the default files will not exist since we aren't running CIPD to download them / we won't require people to have chromium CIPD access
-
if they did manage it would be slower since the Chromium's instances cache wont be updated with our compile tasks constantly like our instance's cache would be.
Remove fetching of RBE cfg files with CIPD. Instead rely on local cfg files which use public docker images rather than private ones. Taken from Chromium's trunk. b/384982606
b/384982606