# -*- bazel-starlark -*- # Copyright 2024 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Siso backend config for Google.""" load("@builtin//struct.star", "module") def __platform_properties(ctx): container_image = "docker://gcr.io/chops-public-images-prod/rbe/siso-chromium/linux@sha256:d7cb1ab14a0f20aa669c23f22c15a9dead761dcac19f43985bf9dd5f41fbef3a" return { "default": { "OSFamily": "Linux", "container-image": container_image, "label:action_default": "1", }, # Large workers are usually used for Python actions like generate bindings, mojo generators etc # They can run on Linux workers. "large": { "OSFamily": "Linux", "container-image": container_image, # As of Jul 2023, the action_large pool uses n2-highmem-8 with 200GB of pd-ssd. # The pool is intended for the following actions. # - slow actions that can benefit from multi-cores and/or faster disk I/O. e.g. link, mojo, generate bindings etc. # - actions that fail for OOM. "label:action_large": "1", }, } def __configs(ctx): if "reapi_address" in ctx.flags: if ctx.flags["reapi_address"] != "remotebuildexecution.googleapis.com:443": return [] return [ "googlechrome", ] backend = module( "backend", platform_properties = __platform_properties, configs = __configs, )