go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/testdata/errors/bad_builder_props.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.builder(
    10      name = "b",
    11      bucket = "ci",
    12      executable = luci.recipe(
    13          name = "main/recipe",
    14          cipd_package = "recipe/bundles/main",
    15      ),
    16      properties = {"a": struct(b = 123)},
    17  )
    18  
    19  # Expect errors like:
    20  #
    21  # Traceback (most recent call last):
    22  #   //testdata/errors/bad_builder_props.star: in <toplevel>
    23  #   ...
    24  # Error in to_json: to_json: unsupported type struct