crosvm/infra/recipes/update_chromeos_merges.py
Dennis Kempin 70e4b96fa2 infra: Fully commit to python3
We never used python2 in our recipes, but now that Luci is migrated,
we can truly run in python3 only.
See: http://go/luci/migrations/recipe_py3#phase-5-fully-committing-to-python-3

This should fix issues with the recipe bundler.

BUG=b:269149141
TEST=health-check

Change-Id: Iaf8a63b3ca9114acd0e5f0fbc13696367a1ab116
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4245443
Reviewed-by: Zihan Chen <zihanchen@google.com>
Commit-Queue: Dennis Kempin <denniskempin@google.com>
2023-02-13 22:06:44 +00:00

31 lines
715 B
Python

# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from recipe_engine.post_process import Filter
DEPS = [
"crosvm",
"recipe_engine/context",
"recipe_engine/step",
]
def RunSteps(api):
with api.crosvm.source_context():
api.step(
"Update Merges",
[
"vpython3",
"./tools/chromeos/merge_bot",
"--verbose",
"update-merges",
"--is-bot",
"origin/main",
],
)
def GenTests(api):
yield (api.test("basic") + api.post_process(Filter().include_re(r"Update .*")))