mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 10:10:41 +00:00
infra: Add docs builds to health_check recipe
We had several issues with docs builds breaking in post submit. BUG=b:239743001 TEST=https://ci.chromium.org/swarming/task/5c745efef5d6ff10 Change-Id: I262e069a0d3ccb4442c074e1bea7b4fb436c313a Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3798976 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Tested-by: Dennis Kempin <denniskempin@google.com>
This commit is contained in:
parent
44146d272c
commit
8a46389c9b
2 changed files with 58 additions and 0 deletions
|
@ -102,5 +102,57 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"name": "Checking clippy"
|
"name": "Checking clippy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"vpython3",
|
||||||
|
"[CACHE]/builder/crosvm/tools/dev_container",
|
||||||
|
"--verbose",
|
||||||
|
"mdbook",
|
||||||
|
"build",
|
||||||
|
"docs/book/"
|
||||||
|
],
|
||||||
|
"cwd": "[CACHE]/builder/crosvm",
|
||||||
|
"env": {
|
||||||
|
"CROSVM_CONTAINER_CACHE": "[CACHE]/builder/dev_container"
|
||||||
|
},
|
||||||
|
"luci_context": {
|
||||||
|
"realm": {
|
||||||
|
"name": "crosvm/crosvm:ci"
|
||||||
|
},
|
||||||
|
"resultdb": {
|
||||||
|
"current_invocation": {
|
||||||
|
"name": "invocations/build:8945511751514863184",
|
||||||
|
"update_token": "token"
|
||||||
|
},
|
||||||
|
"hostname": "rdbhost"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "Checking mdbook"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cmd": [
|
||||||
|
"vpython3",
|
||||||
|
"[CACHE]/builder/crosvm/tools/dev_container",
|
||||||
|
"--verbose",
|
||||||
|
"./tools/cargo-doc"
|
||||||
|
],
|
||||||
|
"cwd": "[CACHE]/builder/crosvm",
|
||||||
|
"env": {
|
||||||
|
"CROSVM_CONTAINER_CACHE": "[CACHE]/builder/dev_container"
|
||||||
|
},
|
||||||
|
"luci_context": {
|
||||||
|
"realm": {
|
||||||
|
"name": "crosvm/crosvm:ci"
|
||||||
|
},
|
||||||
|
"resultdb": {
|
||||||
|
"current_invocation": {
|
||||||
|
"name": "invocations/build:8945511751514863184",
|
||||||
|
"update_token": "token"
|
||||||
|
},
|
||||||
|
"hostname": "rdbhost"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "Checking cargo docs"
|
||||||
}
|
}
|
||||||
]
|
]
|
|
@ -29,6 +29,12 @@ def RunSteps(api):
|
||||||
for check in ("python", "misc", "fmt", "clippy"):
|
for check in ("python", "misc", "fmt", "clippy"):
|
||||||
api.crosvm.step_in_container("Checking %s" % check, ["./tools/health-check", check])
|
api.crosvm.step_in_container("Checking %s" % check, ["./tools/health-check", check])
|
||||||
|
|
||||||
|
api.crosvm.step_in_container("Checking mdbook", ["mdbook", "build", "docs/book/"])
|
||||||
|
api.crosvm.step_in_container(
|
||||||
|
"Checking cargo docs",
|
||||||
|
["./tools/cargo-doc"],
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def GenTests(api):
|
def GenTests(api):
|
||||||
yield (
|
yield (
|
||||||
|
|
Loading…
Reference in a new issue