1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
build / config / siso / backend_config / google.star [blame]
# -*- 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:ef35d347f4a4a2d32b76fd908e66e96f59bf8ba7379fd5626548244c45343b2b"
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",
},
}
backend = module(
"backend",
platform_properties = __platform_properties,
)