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:
Dennis Kempin 2022-08-01 22:37:13 +00:00
parent 44146d272c
commit 8a46389c9b
2 changed files with 58 additions and 0 deletions

View file

@ -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"
} }
] ]

View file

@ -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 (