Skip to content
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

Setup default RBE usage including facilitating CI RBE usage. #726

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/actions/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ runs:
echo "target_os=['android']" >> .gclient
gclient validate
shell: bash
- name: CIPD auth
run: cipd auth-login -service-account-json :gce
shell: bash
- name: gclient sync
run: gclient sync -v --shallow --no-history -r ${{ github.sha }}
shell: bash
Expand Down
5 changes: 4 additions & 1 deletion buildtools/reclient_cfgs/fetch_reclient_cfgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,17 @@ class CipdError(Exception):
def CipdEnsure(pkg_name, ref, directory, quiet):
logging.info('ensure %s %s in %s' % (pkg_name, ref, directory))
log_level = 'warning' if quiet else 'debug'
auth = []
if os.getenv('IS_CI', default='0') == '1':
auth = ['-service-account-json', ':gce']
ensure_file = """
$ParanoidMode CheckPresence
{pkg} {ref}
""".format(pkg=pkg_name, ref=ref)
try:
output = subprocess.check_output(
' '.join(['cipd', 'ensure', '-log-level=' + log_level,
'-root', directory, '-ensure-file', '-', '-service-account-json', ':gce']),
'-root', directory, '-ensure-file', '-'] + auth),
shell=True, input=ensure_file, stderr=subprocess.STDOUT,
universal_newlines=True)
logging.info(output)
Expand Down
Loading