go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/testdata/errors/list_view_wrong_entry.star (about) 1 luci.project( 2 name = "project", 3 buildbucket = "cr-buildbucket.appspot.com", 4 milo = "luci-milo.appspot.com", 5 swarming = "chromium-swarm.appspot.com", 6 ) 7 8 luci.bucket(name = "ci") 9 10 luci.recipe( 11 name = "main/recipe", 12 cipd_package = "recipe/bundles/main", 13 ) 14 15 luci.builder( 16 name = "b1", 17 bucket = "ci", 18 executable = "main/recipe", 19 ) 20 21 luci.builder( 22 name = "b2", 23 bucket = "ci", 24 executable = "main/recipe", 25 ) 26 27 luci.list_view( 28 name = "View", 29 entries = [ 30 # Allowed forms. 31 "b1", 32 luci.list_view_entry("b2"), 33 luci.builder( 34 name = "b3", 35 bucket = "ci", 36 executable = "main/recipe", 37 ), 38 luci.list_view_entry(luci.builder( 39 name = "b4", 40 bucket = "ci", 41 executable = "main/recipe", 42 )), 43 # Wrong kind. 44 luci.recipe( 45 name = "recipe", 46 cipd_package = "recipe/bundles/main", 47 ), 48 ], 49 ) 50 51 # Expect errors like: 52 # 53 # Traceback (most recent call last): 54 # //testdata/errors/list_view_wrong_entry.star: in <toplevel> 55 # ... 56 # Error: expecting luci.list_view_entry, got luci.executable