Commit b1c85a3c authored by Garrett Beaty's avatar Garrett Beaty Committed by Commit Bot

Begin starlark migration with project.cfg and luci-logdog{,-dev}.cfg.

Change-Id: Ic34db297270ded807abeea87305df20f4ea6152e
Bug: 1011908
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1836003Reviewed-by: default avatarStephen Martinis <martiniss@chromium.org>
Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Commit-Queue: Garrett Beaty <gbeaty@chromium.org>
Cr-Commit-Position: refs/heads/master@{#703936}
parent 8ea87ee5
...@@ -11,8 +11,10 @@ Currently active version can be checked at ...@@ -11,8 +11,10 @@ Currently active version can be checked at
https://luci-config.appspot.com/#/projects/chromium . https://luci-config.appspot.com/#/projects/chromium .
The configuration files are currently in the process of being migrated to The configuration files are currently in the process of being migrated to
lucicfg/starlark. If a hand-written configuration file is still present lucicfg/starlark. See
alongside this file, you can modify that file directly. https://chromium.googlesource.com/infra/luci/luci-go/+/HEAD/lucicfg/doc/README.md
for more information on lucicfg/starlark. If a hand-written configuration file
is still present alongside this file, you can modify that file directly.
The remainder of the configuration files are generated by starlark. The starlark The remainder of the configuration files are generated by starlark. The starlark
configuration is rooted in main.star and dev.star, which execute other starlark configuration is rooted in main.star and dev.star, which execute other starlark
......
#!/usr/bin/env lucicfg #!/usr/bin/env lucicfg
# See https://chromium.googlesource.com/infra/luci/luci-go/+/HEAD/lucicfg/doc/README.md
# for information on starlark/lucicfg
# Tell lucicfg what files it is allowed to touch # Tell lucicfg what files it is allowed to touch
lucicfg.config( lucicfg.config(
...@@ -16,7 +18,28 @@ lucicfg.config( ...@@ -16,7 +18,28 @@ lucicfg.config(
# TODO(https://crbug.com/1011908) Migrate the configuration in these files to starlark # TODO(https://crbug.com/1011908) Migrate the configuration in these files to starlark
[lucicfg.emit(dest = f, data = io.read_file(f)) for f in ( [lucicfg.emit(dest = f, data = io.read_file(f)) for f in (
'cr-buildbucket-dev.cfg', 'cr-buildbucket-dev.cfg',
'luci-logdog-dev.cfg',
'luci-milo-dev.cfg', 'luci-milo-dev.cfg',
'luci-scheduler-dev.cfg', 'luci-scheduler-dev.cfg',
)] )]
luci.project(
name = 'chromium',
logdog = 'luci-logdog-dev.appspot.com',
acls = [
acl.entry(
roles = [
acl.LOGDOG_READER,
acl.PROJECT_CONFIGS_READER,
],
groups = 'all',
),
acl.entry(
roles = acl.LOGDOG_WRITER,
groups = 'luci-logdog-chromium-dev-writers',
),
],
)
luci.logdog(
gs_bucket = 'chromium-luci-logdog',
)
# Copyright (c) 2015 The Chromium Authors. All rights reserved. # Auto-generated by lucicfg.
# Use of this source code is governed by a BSD-style license that can be # Do not modify manually.
# found in the LICENSE file.
# #
# For the schema of this file and documentation, see ProjectConfig message in # For the schema of this file, see ProjectConfig message:
# https://luci-config.appspot.com/schemas/projects:luci-logdog.cfg # https://luci-config.appspot.com/schemas/projects:luci-logdog.cfg
# Auth groups who can read log streams.
reader_auth_groups: "all" reader_auth_groups: "all"
# Auth groups who can register and emit new log streams.
writer_auth_groups: "luci-logdog-chromium-dev-writers" writer_auth_groups: "luci-logdog-chromium-dev-writers"
# The base Google Storage archival path for this project.
#
# Archived LogDog logs will be written to this bucket/path.
archive_gs_bucket: "chromium-luci-logdog" archive_gs_bucket: "chromium-luci-logdog"
# Copyright (c) 2015 The Chromium Authors. All rights reserved. # Auto-generated by lucicfg.
# Use of this source code is governed by a BSD-style license that can be # Do not modify manually.
# found in the LICENSE file.
# #
# For the schema of this file and documentation, see ProjectConfig message in # For the schema of this file, see ProjectConfig message:
# https://luci-config.appspot.com/schemas/projects:luci-logdog.cfg # https://luci-config.appspot.com/schemas/projects:luci-logdog.cfg
# Auth groups who can read log streams.
reader_auth_groups: "all" reader_auth_groups: "all"
# Auth groups who can register and emit new log streams.
writer_auth_groups: "luci-logdog-chromium-writers" writer_auth_groups: "luci-logdog-chromium-writers"
# The base Google Storage archival path for this project.
#
# Archived LogDog logs will be written to this bucket/path.
archive_gs_bucket: "chromium-luci-logdog" archive_gs_bucket: "chromium-luci-logdog"
# For the schema of this file and documentation, see ProjectCfg message in # Auto-generated by lucicfg.
# https://luci-config.appspot.com/schemas/projects:project.cfg # Do not modify manually.
#
# For the schema of this file, see ProjectCfg message:
# https://luci-config.appspot.com/schemas/projects:project.cfg
name: "chromium" name: "chromium"
access: "group:all" # public access: "group:all"
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# For the schema of this file and documentation, see ProjectConfig message in
# https://luci-config.appspot.com/schemas/projects:luci-logdog.cfg
# Auth groups who can read log streams.
reader_auth_groups: "all"
# Auth groups who can register and emit new log streams.
writer_auth_groups: "luci-logdog-chromium-dev-writers"
# The base Google Storage archival path for this project.
#
# Archived LogDog logs will be written to this bucket/path.
archive_gs_bucket: "chromium-luci-logdog"
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# For the schema of this file and documentation, see ProjectConfig message in
# https://luci-config.appspot.com/schemas/projects:luci-logdog.cfg
# Auth groups who can read log streams.
reader_auth_groups: "all"
# Auth groups who can register and emit new log streams.
writer_auth_groups: "luci-logdog-chromium-writers"
# The base Google Storage archival path for this project.
#
# Archived LogDog logs will be written to this bucket/path.
archive_gs_bucket: "chromium-luci-logdog"
#!/usr/bin/env lucicfg #!/usr/bin/env lucicfg
# See https://chromium.googlesource.com/infra/luci/luci-go/+/HEAD/lucicfg/doc/README.md
# for information on starlark/lucicfg
# Tell lucicfg what files it is allowed to touch # Tell lucicfg what files it is allowed to touch
lucicfg.config( lucicfg.config(
...@@ -21,11 +23,9 @@ lucicfg.config( ...@@ -21,11 +23,9 @@ lucicfg.config(
[lucicfg.emit(dest = f, data = io.read_file(f)) for f in ( [lucicfg.emit(dest = f, data = io.read_file(f)) for f in (
'commit-queue.cfg', 'commit-queue.cfg',
'cr-buildbucket.cfg', 'cr-buildbucket.cfg',
'luci-logdog.cfg',
'luci-milo.cfg', 'luci-milo.cfg',
'luci-notify.cfg', 'luci-notify.cfg',
'luci-scheduler.cfg', 'luci-scheduler.cfg',
'project.cfg',
)] )]
# Just copy tricium-prod.cfg to the generated outputs # Just copy tricium-prod.cfg to the generated outputs
...@@ -33,3 +33,25 @@ lucicfg.emit( ...@@ -33,3 +33,25 @@ lucicfg.emit(
dest = 'tricium-prod.cfg', dest = 'tricium-prod.cfg',
data = io.read_file('tricium-prod.cfg'), data = io.read_file('tricium-prod.cfg'),
) )
luci.project(
name = 'chromium',
logdog = 'luci-logdog.appspot.com',
acls = [
acl.entry(
roles = [
acl.LOGDOG_READER,
acl.PROJECT_CONFIGS_READER,
],
groups = 'all',
),
acl.entry(
roles = acl.LOGDOG_WRITER,
groups = 'luci-logdog-chromium-writers',
),
],
)
luci.logdog(
gs_bucket = 'chromium-luci-logdog',
)
# For the schema of this file and documentation, see ProjectCfg message in
# https://luci-config.appspot.com/schemas/projects:project.cfg
name: "chromium"
access: "group:all" # public
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