mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 03:57:24 +00:00
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:
parent
7de274b8df
commit
774bd47261
3 changed files with 46 additions and 0 deletions
|
@ -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):
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue