diff --git a/infra/recipes/health_check.expected/basic.json b/infra/recipes/health_check.expected/basic.json index bd2f65ebd7..6d4a6af15a 100644 --- a/infra/recipes/health_check.expected/basic.json +++ b/infra/recipes/health_check.expected/basic.json @@ -102,5 +102,57 @@ } }, "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" } ] \ No newline at end of file diff --git a/infra/recipes/health_check.py b/infra/recipes/health_check.py index ff29080c08..25ebaa0484 100644 --- a/infra/recipes/health_check.py +++ b/infra/recipes/health_check.py @@ -29,6 +29,12 @@ def RunSteps(api): 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 mdbook", ["mdbook", "build", "docs/book/"]) + api.crosvm.step_in_container( + "Checking cargo docs", + ["./tools/cargo-doc"], + ) + def GenTests(api): yield (