| #!/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 |
| lucicfg.config( |
| config_dir = 'generated', |
| tracked_files = [ |
| 'cr-buildbucket-dev.cfg', |
| 'luci-logdog-dev.cfg', |
| 'luci-milo-dev.cfg', |
| 'luci-scheduler-dev.cfg', |
| ], |
| fail_on_warnings = True, |
| ) |
| |
| # Copy the not-yet migrated files to the generated outputs |
| # 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 ( |
| 'luci-milo-dev.cfg', |
| 'luci-scheduler-dev.cfg', |
| )] |
| |
| luci.project( |
| name = 'chromium', |
| buildbucket = 'cr-buildbucket-dev.appspot.com', |
| logdog = 'luci-logdog-dev.appspot.com', |
| swarming = 'chromium-swarm-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', |
| ) |
| |
| exec('//dev/buckets/ci.star') |
| exec('//dev/buckets/cron.star') |
| exec('//dev/buckets/try.star') |