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

     1  luci.project(
     2      name = "zzz",
     3      buildbucket = "cr-buildbucket.appspot.com",
     4      swarming = "chromium-swarm.appspot.com",
     5  )
     6  luci.bucket(name = "ci")
     7  
     8  luci.recipe(
     9      name = "main/recipe",
    10      cipd_package = "recipe/bundles/main",
    11  )
    12  
    13  luci.dynamic_builder_template(
    14      bucket = "ci",
    15      executable = "main/recipe",
    16      service_account = "builder@example.com",
    17      dimensions = {
    18          "os": "Linux",
    19          "pool": "luci.ci.tester",
    20      },
    21  )
    22  
    23  # Expect errors like:
    24  #
    25  # Traceback (most recent call last):
    26  #   //testdata/errors/static_bucket_with_dynamic_builder_template.star: in <toplevel>
    27  #   ...
    28  # Error: bucket "ci" must not have dynamic_builder_template