blob: b2980777c8b612cb3e08d11164df8dbf99256798 [file] [log] [blame]
# Copyright 2020 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Recipe that does nothing.
Useful for safely deleting builders that consume spec files, since it's not safe
to delete the builder and the spec file in the same CL. Instead we first change the
builder to use this recipe, then delete the spec file and builder.
"""
from PB.recipe_engine import result as result_pb2
from PB.go.chromium.org.luci.buildbucket.proto import common as common_pb2
from PB.recipes.fuchsia.no_op import InputProperties
DEPS = [
"fuchsia/status_check",
"recipe_engine/properties",
]
PROPERTIES = InputProperties
def RunSteps(api, props):
del api
return result_pb2.RawResult(
summary_markdown=props.summary_markdown, status=common_pb2.SUCCESS
)
def GenTests(api):
yield (
api.status_check.test("basic")
+ api.properties(InputProperties(summary_markdown="This is a no-op"))
)