Reland "depot_tools: Run recipe scripts using vpython."

Bug: 1002153
Recipe-Nontrivial-Roll: chromiumos
Recipe-Nontrivial-Roll: build
Recipe-Nontrivial-Roll: infra
Recipe-Nontrivial-Roll: skia
Recipe-Nontrivial-Roll: build_limited_scripts_slave
Recipe-Nontrivial-Roll: release_scripts
Change-Id: I21b3223c5fc8a24fdafcc0795db51322cfe65148
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1865252
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
changes/52/1865252/4
Edward Lemur 6 years ago committed by Commit Bot
parent 989bc35186
commit b594247e39

@ -344,16 +344,16 @@ Module for interact with gerrit endpoints
Wrapper for easy calling of gerrit_utils steps.
&mdash; **def [abandon\_change](/recipes/recipe_modules/gerrit/api.py#159)(self, host, change, message=None, name=None, step_test_data=None):**
&mdash; **def [abandon\_change](/recipes/recipe_modules/gerrit/api.py#160)(self, host, change, message=None, name=None, step_test_data=None):**
&mdash; **def [create\_gerrit\_branch](/recipes/recipe_modules/gerrit/api.py#31)(self, host, project, branch, commit, \*\*kwargs):**
&mdash; **def [create\_gerrit\_branch](/recipes/recipe_modules/gerrit/api.py#32)(self, host, project, branch, commit, \*\*kwargs):**
Create a new branch from given project and commit
Returns:
the ref of the branch created
&mdash; **def [get\_change\_description](/recipes/recipe_modules/gerrit/api.py#72)(self, host, change, patchset):**
&mdash; **def [get\_change\_description](/recipes/recipe_modules/gerrit/api.py#73)(self, host, change, patchset):**
Get the description for a given CL and patchset.
@ -365,7 +365,7 @@ Args:
Returns:
The description corresponding to given CL and patchset.
&mdash; **def [get\_changes](/recipes/recipe_modules/gerrit/api.py#117)(self, host, query_params, start=None, limit=None, o_params=None, step_test_data=None, \*\*kwargs):**
&mdash; **def [get\_changes](/recipes/recipe_modules/gerrit/api.py#118)(self, host, query_params, start=None, limit=None, o_params=None, step_test_data=None, \*\*kwargs):**
Query changes for the given host.
@ -383,14 +383,14 @@ Returns:
A list of change dicts as documented here:
https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-changes
&mdash; **def [get\_gerrit\_branch](/recipes/recipe_modules/gerrit/api.py#53)(self, host, project, branch, \*\*kwargs):**
&mdash; **def [get\_gerrit\_branch](/recipes/recipe_modules/gerrit/api.py#54)(self, host, project, branch, \*\*kwargs):**
Get a branch from given project and commit
Returns:
the revision of the branch
&mdash; **def [get\_revision\_info](/recipes/recipe_modules/gerrit/api.py#87)(self, host, change, patchset):**
&mdash; **def [get\_revision\_info](/recipes/recipe_modules/gerrit/api.py#88)(self, host, change, patchset):**
Returns the info for a given patchset of a given change.

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -26,6 +26,7 @@ class GerritApi(recipe_api.RecipeApi):
self.repo_resource('gerrit_client.py'),
cmd,
infra_step=infra_step,
venv=True,
**kwargs)
def create_gerrit_branch(self, host, project, branch, commit, **kwargs):

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"branch",
@ -32,7 +32,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"branchinfo",
@ -60,7 +60,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",
@ -110,7 +110,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",
@ -137,7 +137,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",
@ -185,7 +185,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"abandon",
@ -229,7 +229,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -18,7 +18,7 @@ class GitClApi(recipe_api.RecipeApi):
with self.m.context(cwd=self.m.context.cwd or my_loc):
return self.m.python(
name, self.repo_resource('git_cl.py'), [subcmd] + args,
**kwargs)
venv=True, **kwargs)
def get_description(self, patch_url=None, codereview=None, **kwargs):
"""DEPRECATED. Consider using gerrit.get_change_description instead."""

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"upload",
@ -12,7 +12,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"issue"
@ -21,7 +21,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",
@ -33,7 +33,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",
@ -54,7 +54,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",
@ -72,7 +72,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",
@ -85,7 +85,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",

@ -106,7 +106,7 @@ class PresubmitApi(recipe_api.RecipeApi):
'--upstream', upstream, # '' if not in bot_update mode.
])
venv = None
venv = True
# TODO(iannucci): verify that presubmit_support.py correctly finds and
# uses .vpython files, then remove this configuration.
if self._vpython_spec_path:

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",
@ -41,7 +41,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",
@ -41,7 +41,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/gerrit_client.py",
"changes",

Loading…
Cancel
Save