infra: Always docker pull dev container in CQ

The overhead for doing this is small as docker will not pull when
digest doesn't change.

TEST=https://luci-milo.appspot.com/swarming/task/5d5206115a9d7811
FIXED=b:243562713

Change-Id: I4158e433a62f6e7815edaec180b1b294d9ff4d79
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3885378
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Commit-Queue: Zihan Chen <zihanchen@google.com>
This commit is contained in:
Zihan Chen 2022-09-09 00:38:09 +00:00 committed by crosvm LUCI
parent 7de274b8df
commit 774bd47261
3 changed files with 46 additions and 0 deletions

View file

@ -268,6 +268,14 @@ class CrosvmApi(recipe_api.RecipeApi):
"--stop",
],
)
self.m.step(
"Force pull dev_container",
[
"vpython3",
self.source_dir.join("tools/dev_container"),
"--pull",
],
)
self.m.crosvm.step_in_container("Ensure dev container exists", ["true"])
def __set_git_config(self, prop, value):

View file

@ -233,6 +233,19 @@
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython3",
"[CACHE]/builder/crosvm/tools/dev_container",
"--pull"
],
"cwd": "[CACHE]/builder/crosvm",
"infra_step": true,
"name": "Prepare Container Build.Prepare dev_container.Force pull dev_container",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython3",

View file

@ -355,6 +355,31 @@
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython3",
"[CACHE]/builder/crosvm/tools/dev_container",
"--pull"
],
"cwd": "[CACHE]/builder/crosvm",
"infra_step": true,
"luci_context": {
"realm": {
"name": "crosvm/crosvm:ci"
},
"resultdb": {
"current_invocation": {
"name": "invocations/build:8945511751514863184",
"update_token": "token"
},
"hostname": "rdbhost"
}
},
"name": "Prepare Container Build.Prepare dev_container.Force pull dev_container",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython3",