mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
infra: Add crosvm_windows builder
This will enable a luci build on windows as post-submit while we test the build_windows recipe. BUG=b:233914170 TEST=lucicfg validate main.star Change-Id: I46ba9309f5dbd6077c73d42bbaafe8986ab18af3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3718901 Reviewed-by: Vikram Auradkar <auradkar@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
3349a67660
commit
066276676b
4 changed files with 56 additions and 3 deletions
|
@ -165,6 +165,27 @@ buckets {
|
|||
value: 100
|
||||
}
|
||||
}
|
||||
builders {
|
||||
name: "crosvm_windows"
|
||||
swarming_host: "chromium-swarm.appspot.com"
|
||||
dimensions: "cpu:x86-64"
|
||||
dimensions: "os:Windows"
|
||||
dimensions: "pool:luci.crosvm.ci"
|
||||
exe {
|
||||
cipd_package: "infra/recipe_bundles/chromium.googlesource.com/crosvm/crosvm"
|
||||
cipd_version: "refs/heads/main"
|
||||
cmd: "luciexe"
|
||||
}
|
||||
properties:
|
||||
'{'
|
||||
' "recipe": "build_windows"'
|
||||
'}'
|
||||
service_account: "crosvm-luci-ci-builder@crosvm-infra.iam.gserviceaccount.com"
|
||||
experiments {
|
||||
key: "luci.recipes.use_python3"
|
||||
value: 100
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
buckets {
|
||||
|
|
|
@ -26,6 +26,10 @@ consoles {
|
|||
name: "buildbucket/luci.crosvm.ci/crosvm_chromeos_amd64-generic"
|
||||
category: "linux"
|
||||
}
|
||||
builders {
|
||||
name: "buildbucket/luci.crosvm.ci/crosvm_windows"
|
||||
category: "windows"
|
||||
}
|
||||
builders {
|
||||
name: "buildbucket/luci.crosvm.ci/crosvm_health_check"
|
||||
category: "linux"
|
||||
|
|
|
@ -75,6 +75,16 @@ job {
|
|||
builder: "crosvm_update_chromeos_merges"
|
||||
}
|
||||
}
|
||||
job {
|
||||
id: "crosvm_windows"
|
||||
realm: "ci"
|
||||
acl_sets: "ci"
|
||||
buildbucket {
|
||||
server: "cr-buildbucket.appspot.com"
|
||||
bucket: "ci"
|
||||
builder: "crosvm_windows"
|
||||
}
|
||||
}
|
||||
trigger {
|
||||
id: "main source"
|
||||
realm: "ci"
|
||||
|
@ -85,6 +95,7 @@ trigger {
|
|||
triggers: "crosvm_linux_armhf"
|
||||
triggers: "crosvm_linux_x86_64"
|
||||
triggers: "crosvm_push_to_github"
|
||||
triggers: "crosvm_windows"
|
||||
gitiles {
|
||||
repo: "https://chromium.googlesource.com/crosvm/crosvm"
|
||||
refs: "regexp:refs/heads/main"
|
||||
|
|
|
@ -137,7 +137,7 @@ luci.list_view(
|
|||
name = "Infra",
|
||||
)
|
||||
|
||||
def verify_builder(name, dimensions, presubmit = True, postsubmit = True, **args):
|
||||
def verify_builder(name, dimensions, presubmit = True, postsubmit = True, category = "generic", **args):
|
||||
"""Creates both a CI and try builder with the same properties.
|
||||
|
||||
The CI builder is attached to the gitlies poller and console view, and the try builder
|
||||
|
@ -147,7 +147,8 @@ def verify_builder(name, dimensions, presubmit = True, postsubmit = True, **args
|
|||
name: Name of the builder
|
||||
dimensions: Passed to luci.builder
|
||||
presubmit: Create a presubmit builder (defaults to True)
|
||||
postsubmit: Creaet a postsubmit builder (defaults to True)
|
||||
postsubmit: Create a postsubmit builder (defaults to True)
|
||||
category: Category of this builder in the concole view
|
||||
**args: Passed to luci.builder
|
||||
"""
|
||||
|
||||
|
@ -169,7 +170,7 @@ def verify_builder(name, dimensions, presubmit = True, postsubmit = True, **args
|
|||
luci.console_view_entry(
|
||||
console_view = "Postsubmit",
|
||||
builder = "ci/%s" % name,
|
||||
category = "linux",
|
||||
category = category,
|
||||
)
|
||||
|
||||
# Try builder
|
||||
|
@ -207,6 +208,7 @@ def verify_linux_builder(arch, **kwargs):
|
|||
properties = {
|
||||
"test_arch": arch,
|
||||
},
|
||||
category = "linux",
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
@ -229,6 +231,7 @@ def verify_chromeos_builder(board, **kwargs):
|
|||
properties = {
|
||||
"board": board,
|
||||
},
|
||||
category = "linux",
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
@ -271,6 +274,19 @@ verify_linux_builder("armhf")
|
|||
|
||||
verify_chromeos_builder("amd64-generic", presubmit = False)
|
||||
|
||||
verify_builder(
|
||||
name = "crosvm_windows",
|
||||
dimensions = {
|
||||
"os": "Windows",
|
||||
"cpu": "x86-64",
|
||||
},
|
||||
executable = luci.recipe(
|
||||
name = "build_windows",
|
||||
),
|
||||
presubmit = False,
|
||||
category = "windows",
|
||||
)
|
||||
|
||||
verify_builder(
|
||||
name = "crosvm_health_check",
|
||||
dimensions = {
|
||||
|
@ -280,6 +296,7 @@ verify_builder(
|
|||
executable = luci.recipe(
|
||||
name = "health_check",
|
||||
),
|
||||
category = "linux",
|
||||
)
|
||||
|
||||
infra_builder(
|
||||
|
|
Loading…
Reference in a new issue