go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/lucicfg/testdata/external_builders.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 = "bucket")
     9  
    10  luci.recipe(
    11      name = "main/recipe",
    12      cipd_package = "recipe/bundles/main",
    13  )
    14  
    15  luci.builder(
    16      name = "builder",
    17      bucket = "bucket",
    18      executable = "main/recipe",
    19  )
    20  
    21  luci.list_view(
    22      name = "View",
    23      entries = [
    24          "bucket/builder",  # in this current project
    25          "another-project:bucket/builder",  # in another project
    26      ],
    27  )
    28  
    29  luci.list_view_entry(
    30      list_view = "View",
    31      builder = "another-project:bucket/builder2",
    32  )
    33  
    34  # Expect configs:
    35  #
    36  # === cr-buildbucket.cfg
    37  # buckets {
    38  #   name: "bucket"
    39  #   swarming {
    40  #     builders {
    41  #       name: "builder"
    42  #       swarming_host: "chromium-swarm.appspot.com"
    43  #       recipe {
    44  #         name: "main/recipe"
    45  #         cipd_package: "recipe/bundles/main"
    46  #         cipd_version: "refs/heads/main"
    47  #       }
    48  #     }
    49  #   }
    50  # }
    51  # ===
    52  #
    53  # === luci-milo.cfg
    54  # consoles {
    55  #   id: "View"
    56  #   name: "View"
    57  #   builders {
    58  #     name: "buildbucket/luci.project.bucket/builder"
    59  #   }
    60  #   builders {
    61  #     name: "buildbucket/luci.another-project.bucket/builder"
    62  #   }
    63  #   builders {
    64  #     name: "buildbucket/luci.another-project.bucket/builder2"
    65  #   }
    66  #   builder_view_only: true
    67  # }
    68  # ===
    69  #
    70  # === project.cfg
    71  # name: "project"
    72  # ===
    73  #
    74  # === realms.cfg
    75  # realms {
    76  #   name: "@root"
    77  # }
    78  # realms {
    79  #   name: "bucket"
    80  # }
    81  # ===