Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/infra/recipes/update_chromeos_merges.py
5392 views
1
# Copyright 2022 The ChromiumOS Authors
2
# Use of this source code is governed by a BSD-style license that can be
3
# found in the LICENSE file.
4
5
from recipe_engine.post_process import Filter
6
7
DEPS = [
8
"crosvm",
9
"recipe_engine/context",
10
"recipe_engine/step",
11
]
12
13
14
def RunSteps(api):
15
with api.crosvm.source_context():
16
api.step(
17
"Stop existing dev containers",
18
[
19
"vpython3",
20
"./tools/dev_container",
21
"--verbose",
22
"--stop",
23
],
24
)
25
api.step(
26
"Update Merges",
27
[
28
"vpython3",
29
"./tools/chromeos/merge_bot",
30
"--verbose",
31
"update-merges",
32
"--is-bot",
33
"origin/main",
34
],
35
)
36
37
38
def GenTests(api):
39
yield (api.test("basic") + api.post_process(Filter().include_re(r"Update .*")))
40
41