Commit ad557c41 authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

presubmit: deprecate vpython_spec_path

This property is not used anymore.

Bug: 1002153
Change-Id: I19a503a73ec00e9121b2d9a2c130824a974d307a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1877747
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@google.com>
parent 76c2e50d
......@@ -753,11 +753,11 @@ Raises:
#### **class [PresubmitApi](/recipes/recipe_modules/presubmit/api.py#11)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
&mdash; **def [\_\_call\_\_](/recipes/recipe_modules/presubmit/api.py#27)(self, \*args, \*\*kwargs):**
&mdash; **def [\_\_call\_\_](/recipes/recipe_modules/presubmit/api.py#26)(self, \*args, \*\*kwargs):**
Return a presubmit step.
&mdash; **def [execute](/recipes/recipe_modules/presubmit/api.py#75)(self, bot_update_step):**
&mdash; **def [execute](/recipes/recipe_modules/presubmit/api.py#74)(self, bot_update_step):**
Runs presubmit and sets summary markdown if applicable.
......@@ -766,7 +766,7 @@ Args:
Returns:
a RawResult object, suitable for being returned from RunSteps.
&mdash; **def [prepare](/recipes/recipe_modules/presubmit/api.py#40)(self):**
&mdash; **def [prepare](/recipes/recipe_modules/presubmit/api.py#39)(self):**
Set up a presubmit run.
......@@ -781,7 +781,7 @@ This expects the gclient configuration to already have been set.
Returns:
the StepResult from the bot_update step.
&emsp; **@property**<br>&mdash; **def [presubmit\_support\_path](/recipes/recipe_modules/presubmit/api.py#23)(self):**
&emsp; **@property**<br>&mdash; **def [presubmit\_support\_path](/recipes/recipe_modules/presubmit/api.py#22)(self):**
### *recipe_modules* / [tryserver](/recipes/recipe_modules/tryserver)
[DEPS](/recipes/recipe_modules/tryserver/__init__.py#5): [gerrit](#recipe_modules-gerrit), [git](#recipe_modules-git), [git\_cl](#recipe_modules-git_cl), [recipe\_engine/buildbucket][recipe_engine/recipe_modules/buildbucket], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/json][recipe_engine/recipe_modules/json], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/python][recipe_engine/recipe_modules/python], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step]
......
......@@ -18,7 +18,6 @@ class PresubmitApi(recipe_api.RecipeApi):
# According to event mon data we have, it seems like anything longer than
# this is a bug, and should just instant fail.
self._timeout_s = properties.timeout_s
self._vpython_spec_path = properties.vpython_spec_path
@property
def presubmit_support_path(self):
......@@ -241,4 +240,3 @@ def _createSummaryMarkdown(step_json):
' look at the stdout of the presubmit step.')
)
return '\n\n'.join(error_messages)
......@@ -10,6 +10,8 @@ message InputProperties {
bool runhooks = 1;
// Timeout for presubmit execution, in seconds.
int32 timeout_s = 2;
// The path to the vpython spec to use, relative to the repository root.
string vpython_spec_path = 3;
// TODO(tikuta): remove this if this is not necessary.
reserved "vpython_spec_path";
reserved 3;
}
......@@ -8,13 +8,12 @@ from PB.recipe_modules.depot_tools.presubmit import properties
class PresubmitTestApi(recipe_test_api.RecipeTestApi):
def __call__(self, runhooks=False, timeout_s=480, vpython_spec_path=None):
def __call__(self, runhooks=False, timeout_s=480):
return self.m.properties(
**{
'$depot_tools/presubmit': properties.InputProperties(
runhooks=runhooks,
timeout_s=timeout_s,
vpython_spec_path=vpython_spec_path,
),
}
)
......@@ -56,15 +56,6 @@ def GenTests(api):
api.post_process(post_process.DropExpectation)
)
yield (
api.test('root_vpython') +
api.runtime(is_experimental=False, is_luci=True) +
api.buildbucket.try_build(project='infra') +
api.presubmit(vpython_spec_path='.vpython') +
api.post_process(post_process.StatusSuccess) +
api.post_process(post_process.DropExpectation)
)
yield (
api.test('timeout') +
api.runtime(is_experimental=False, is_luci=True) +
......@@ -248,4 +239,3 @@ def GenTests(api):
api.post_process(post_process.ResultReason, bug_msg) +
api.post_process(post_process.DropExpectation)
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment