go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/testdata/errors/scheduler_disambiguation_fail.star (about) 1 luci.project( 2 name = "project", 3 buildbucket = "cr-buildbucket.appspot.com", 4 scheduler = "luci-scheduler.appspot.com", 5 swarming = "chromium-swarm.appspot.com", 6 ) 7 8 luci.recipe( 9 name = "noop", 10 cipd_package = "noop", 11 ) 12 13 luci.bucket(name = "b1") 14 luci.bucket(name = "b2") 15 16 luci.gitiles_poller( 17 name = "p", 18 bucket = "b1", 19 repo = "https://noop.com", 20 ) 21 luci.gitiles_poller( 22 name = "p", 23 bucket = "b2", 24 repo = "https://noop.com", 25 ) 26 27 luci.builder( 28 name = "b1-p", 29 bucket = "b1", 30 executable = "noop", 31 triggered_by = ["b1/p"], # need to be triggered but something to get job{...} 32 ) 33 34 # Expect errors like: 35 # 36 # Traceback (most recent call last): 37 # //testdata/errors/scheduler_disambiguation_fail.star: in <toplevel> 38 # ... 39 # Error: luci.builder("b1/b1-p") and luci.gitiles_poller("b1/p") cause ambiguities in the scheduler config file, pick names that don't start with a bucket name