9from recipe_engine
import recipe_api
13CONFIG_RELEASE =
'Release'
19 """Prepare the variables."""
23 if self.m.path.basename(self.m.path.start_dir) ==
'k':
24 self.m.path._start_dir = self.m.path._start_dir[:-2]
36 self.
default_env[
'PATH'] = self.m.path.pathsep.join([
38 str(self.m.bot_update.repo_resource()),
43 self.m.properties.get(
'swarm_out_dir',
'tmp'))
45 self.
tmp_dir = self.m.path.start_dir.join(
'tmp')
47 self.
builder_cfg = self.m.builder_name_schema.DictForBuilderName(
50 if self.
role == self.m.builder_name_schema.BUILDER_ROLE_HOUSEKEEPER:
60 if self.
builder_cfg[
'extra_config'].startswith(
'SK'):
70 if (self.m.properties.get(
'patch_issue',
'')
and
71 self.m.properties[
'patch_issue'] !=
'0' and
72 self.m.properties.get(
'patch_set',
'')
and
73 self.m.properties[
'patch_set'] !=
'0' and
74 self.m.properties.get(
'patch_ref',
'')):
76 self.
issue = self.m.properties[
'patch_issue']
77 self.
patchset = self.m.properties[
'patch_set']
84 self.m.properties.get(
'internal_hardware_label'))
98 script = self.resource(
'get_env_var.py')
99 step_stdout = self.m.
step(
100 name=
'get swarming bot id',
101 cmd=[
'python3', script,
'SWARMING_BOT_ID'],
102 stdout=self.m.raw_io.output()).stdout.decode(
'utf-8')
109 script = self.resource(
'get_env_var.py')
110 step_stdout = self.m.
step(
111 name=
'get swarming task id',
112 cmd=[
'python3', script,
'SWARMING_TASK_ID'],
113 stdout=self.m.raw_io.output()).stdout.decode(
'utf-8')
static int step(int x, SkScalar min, SkScalar max)
def swarming_task_id(self)
def swarming_bot_id(self)
const myers::Point & get(const myers::Segment &)
static SkString join(const CommandLineFlags::StringArray &)