go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/testdata/errors/builder_without_shadow_bucket_set_shadow_pool.star (about)

     1  luci.project(
     2      name = "project",
     3      buildbucket = "cr-buildbucket.appspot.com",
     4      swarming = "chromium-swarm.appspot.com",
     5  )
     6  
     7  luci.bucket(name = "ci")
     8  
     9  luci.recipe(
    10      name = "main/recipe",
    11      cipd_package = "recipe/bundles/main",
    12  )
    13  
    14  luci.builder(
    15      name = "b",
    16      bucket = "ci",
    17      executable = "main/recipe",
    18      shadow_pool = "shadow_pool",
    19  )
    20  
    21  # Expect errors like:
    22  #
    23  # Traceback (most recent call last):
    24  #   //testdata/errors/builder_without_shadow_bucket_set_shadow_pool.star: in <toplevel>
    25  #   ...
    26  # Error: builders in bucket ci set shadow_service_account or shadow_pool, but the bucket does not have a shadow bucket