Commit 281923e5 authored by Yoshisato Yanagisawa's avatar Yoshisato Yanagisawa Committed by Commit Bot

infra/config: All builders use a task service account for Goma access.

Made all builders to use the task service account to access Goma.
I removed options from lib and made use_luci_auth=true mandatory.

Bug: crbug.com/1105814
Change-Id: I8c0dff203a96e34db0b5ec1ac79b70289e2ae9e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2411561Reviewed-by: default avatarTakuto Ikuta <tikuta@chromium.org>
Commit-Queue: Yoshisato Yanagisawa <yyanagisawa@chromium.org>
Cr-Commit-Position: refs/heads/master@{#806951}
parent b3b8b381
......@@ -32,7 +32,7 @@ buckets {
name: "swarming/staging"
cipd_package: "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"
cipd_version: "refs/heads/master"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\"}"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\",\"use_luci_auth\":true}"
properties_j: "$recipe_engine/isolated:{\"server\":\"https://isolateserver-dev.appspot.com\"}"
properties_j: "builder_group:\"chromium.dev\""
}
......@@ -59,7 +59,7 @@ buckets {
name: "swarming/staging"
cipd_package: "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"
cipd_version: "refs/heads/master"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\"}"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\",\"use_luci_auth\":true}"
properties_j: "$recipe_engine/isolated:{\"server\":\"https://isolateserver-dev.appspot.com\"}"
properties_j: "builder_group:\"chromium.dev\""
}
......@@ -86,7 +86,7 @@ buckets {
name: "swarming/staging"
cipd_package: "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"
cipd_version: "refs/heads/master"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\"}"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\",\"use_luci_auth\":true}"
properties_j: "$recipe_engine/isolated:{\"server\":\"https://isolateserver-dev.appspot.com\"}"
properties_j: "builder_group:\"chromium.dev\""
}
......@@ -114,7 +114,7 @@ buckets {
name: "swarming/staging"
cipd_package: "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"
cipd_version: "refs/heads/master"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\"}"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\",\"use_luci_auth\":true}"
properties_j: "$recipe_engine/isolated:{\"server\":\"https://isolateserver-dev.appspot.com\"}"
properties_j: "builder_group:\"chromium.dev\""
}
......@@ -141,7 +141,7 @@ buckets {
name: "swarming/staging"
cipd_package: "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"
cipd_version: "refs/heads/master"
properties_j: "$build/goma:{\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\"}"
properties_j: "$build/goma:{\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\",\"use_luci_auth\":true}"
properties_j: "$recipe_engine/isolated:{\"server\":\"https://isolateserver-dev.appspot.com\"}"
properties_j: "builder_group:\"chromium.dev\""
}
......@@ -168,7 +168,7 @@ buckets {
name: "swarming/staging"
cipd_package: "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"
cipd_version: "refs/heads/master"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\"}"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\",\"use_luci_auth\":true}"
properties_j: "$recipe_engine/isolated:{\"server\":\"https://isolateserver-dev.appspot.com\"}"
properties_j: "builder_group:\"chromium.dev\""
}
......@@ -195,7 +195,7 @@ buckets {
name: "swarming/staging"
cipd_package: "infra/recipe_bundles/chromium.googlesource.com/chromium/tools/build"
cipd_version: "refs/heads/master"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\"}"
properties_j: "$build/goma:{\"enable_ats\":true,\"rpc_extra_params\":\"?staging\",\"server_host\":\"staging-goma.chromium.org\",\"use_luci_auth\":true}"
properties_j: "$recipe_engine/isolated:{\"server\":\"https://isolateserver-dev.appspot.com\"}"
properties_j: "builder_group:\"chromium.dev\""
}
......
This diff is collapsed.
......@@ -163,7 +163,7 @@ def _chromium_tests_property(*, bucketed_triggers, project_trigger_overrides):
return chromium_tests or None
def _goma_property(*, goma_backend, goma_debug, goma_enable_ats, goma_jobs, goma_use_luci_auth, os):
def _goma_property(*, goma_backend, goma_debug, goma_enable_ats, goma_jobs, os):
goma_properties = {}
goma_backend = defaults.get_value("goma_backend", goma_backend)
......@@ -193,11 +193,10 @@ def _goma_property(*, goma_backend, goma_debug, goma_enable_ats, goma_jobs, goma
if goma_jobs != None:
goma_properties["jobs"] = goma_jobs
goma_use_luci_auth = defaults.get_value("goma_use_luci_auth", goma_use_luci_auth)
if goma_use_luci_auth:
goma_properties["use_luci_auth"] = True
# Builders must use the task service accounts.
goma_properties["use_luci_auth"] = True
return goma_properties or None
return goma_properties
def _code_coverage_property(
*,
......@@ -264,7 +263,6 @@ defaults = args.defaults(
goma_debug = False,
goma_enable_ats = args.COMPUTE,
goma_jobs = None,
goma_use_luci_auth = None,
os = None,
project_trigger_overrides = None,
pool = None,
......@@ -309,7 +307,6 @@ def builder(
goma_debug = args.DEFAULT,
goma_enable_ats = args.DEFAULT,
goma_jobs = args.DEFAULT,
goma_use_luci_auth = args.DEFAULT,
use_clang_coverage = args.DEFAULT,
use_java_coverage = args.DEFAULT,
coverage_exclude_sources = args.DEFAULT,
......@@ -396,9 +393,6 @@ def builder(
to be used by the builder. Sets the 'jobs' field of the '$build/goma'
property will be set according to the enum member. By default, the 'jobs'
considered None.
* goma_use_luci_auth - a boolean indicating whether luci_auth should be
used for accessing goma backend. If True, the 'use_luci_auth' field
will be set in the '$build/goma' property. By default, considered False.
* use_clang_coverage - a boolean indicating whether clang coverage should be
used. If True, the 'use_clang_coverage" field will be set in the
'$build/code_coverage' property. By default, considered False.
......@@ -517,7 +511,6 @@ def builder(
goma_debug = goma_debug,
goma_enable_ats = goma_enable_ats,
goma_jobs = goma_jobs,
goma_use_luci_auth = goma_use_luci_auth,
os = os,
)
if goma != None:
......
......@@ -110,7 +110,6 @@ def set_defaults(milestone_vars, **kwargs):
service_account = "chromium-ci-builder@chops-service-accounts.iam.gserviceaccount.com",
swarming_tags = ["vpython:native-python-wrapper"],
triggered_by = [milestone_vars.ci_poller],
goma_use_luci_auth = True,
)
default_values.update(kwargs)
for k, v in default_values.items():
......
......@@ -121,7 +121,6 @@ def set_defaults(milestone_vars, **kwargs):
service_account = "chromium-try-builder@chops-service-accounts.iam.gserviceaccount.com",
swarming_tags = ["vpython:native-python-wrapper"],
task_template_canary_percentage = 5,
goma_use_luci_auth = True,
)
default_values.update(kwargs)
for k, v in default_values.items():
......
......@@ -52,7 +52,6 @@ def fyi_goma_canary_builder(*, name, **kwargs):
name = name,
builder_group = "chromium.goma.fyi",
execution_timeout = 10 * time.hour,
goma_use_luci_auth = True,
**kwargs
)
......@@ -156,7 +155,6 @@ def fyi_goma_rbe_canary_builder(
execution_timeout = 10 * time.hour,
goma_backend = goma_backend,
os = os,
goma_use_luci_auth = True,
**kwargs
)
......@@ -217,7 +215,6 @@ def fyi_goma_latest_client_builder(*, name, os = os.LINUX_DEFAULT, **kwargs):
builder_group = "chromium.goma.fyi",
execution_timeout = 10 * time.hour,
os = os,
goma_use_luci_auth = True,
**kwargs
)
......@@ -318,7 +315,6 @@ def fyi_goma_rbe_latest_client_builder(
execution_timeout = 10 * time.hour,
goma_backend = goma_backend,
os = os,
goma_use_luci_auth = True,
**kwargs
)
......@@ -398,7 +394,6 @@ def goma_builder(
builder_group = "chromium.goma",
builderless = builderless,
os = os,
goma_use_luci_auth = True,
**kwargs
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment