-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create main.star for LUCI - initial config (#4291)
b/374375528
- Loading branch information
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#!/usr/bin/env lucicfg | ||
|
||
lucicfg.check_version("v1.43.14", "Please update depot_tools") | ||
|
||
lucicfg.config( | ||
config_dir = "generated", | ||
tracked_files = ["*.cfg"], | ||
fail_on_warnings = True, | ||
lint_checks = ["default", "-module-docstring"], | ||
) | ||
|
||
luci.project( | ||
name = "ytdevinfra", | ||
|
||
buildbucket = "cr-buildbucket.appspot.com", | ||
logdog = "luci-logdog.appspot.com", | ||
milo = "luci-milo.appspot.com", | ||
notify = "luci-notify.appspot.com", | ||
scheduler = "luci-scheduler.appspot.com", | ||
swarming = "chromium-swarm.appspot.com", | ||
tricium = "tricium-prod.appspot.com", | ||
|
||
bindings = [ | ||
# Allow owners to submit any task in any pool. | ||
luci.binding( | ||
roles = [ | ||
"role/swarming.poolOwner", | ||
"role/swarming.poolUser", | ||
"role/swarming.taskTriggerer", | ||
], | ||
groups = "ytdevinfra", | ||
), | ||
|
||
# Allow any googler to see all bots and tasks there. | ||
luci.binding( | ||
roles = "role/swarming.poolViewer", | ||
groups = "googlers", | ||
), | ||
|
||
# Allow any googler to read/validate/reimport the project configs. | ||
luci.binding( | ||
roles = "role/configs.developer", | ||
groups = "googlers", | ||
) | ||
], | ||
) | ||
|
||
# Per-service tweaks. | ||
luci.logdog(gs_bucket = "yt-devinfra-luci") | ||
|
||
# Realms with ACLs for corresponding Swarming pools. They are referenced in | ||
# Swarming bot configs as "yt-devinfra-luci:pools/<name>". | ||
luci.realm(name = "pools/ci") | ||
luci.realm(name = "pools/try") | ||
luci.realm(name = "pools/prod") | ||
|
||
# Global recipe defaults | ||
luci.recipe.defaults.cipd_version.set("refs/heads/main") | ||
luci.recipe.defaults.use_python3.set(True) | ||
|
||
# The try bucket will include builders which work on pre-commit or pre-review | ||
# code. | ||
luci.bucket(name = "try") | ||
|
||
# The ci bucket will include builders which work on post-commit code. | ||
luci.bucket(name = "ci") | ||
|
||
# The prod bucket will include builders which work on post-commit code and | ||
# generate executable artifacts used by other users or machines. | ||
luci.bucket(name = "prod") |