Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add description to buildbot steps #438

Merged
merged 1 commit into from Aug 4, 2016
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -79,7 +79,7 @@ def make_step(self, command):

command = command.split(' ')

# Add bash -l before every command on Windows builders
# Add `bash -l` before every command on Windows builders

This comment has been minimized.

Copy link
@aneeshusa

aneeshusa Jul 18, 2016

Member

Please make the same change in the other make_step function.

bash_args = ["bash", "-l"] if self.is_windows else []
step_kwargs['command'] = bash_args + command
if self.is_windows:
@@ -90,13 +90,15 @@ def make_step(self, command):
),
})

step_desc = []
step_class = steps.ShellCommand
args = iter(command)
for arg in args:
# Change Step class to capture warnings as needed
# (steps.Compile and steps.Test catch warnings)
if arg == './mach':
mach_arg = next(args)
step_desc = [mach_arg]
if re.match('build(-.*)?', mach_arg):
step_class = steps.Compile
elif re.match('test-.*', mach_arg):
@@ -125,6 +127,15 @@ def make_step(self, command):
r'C:\Program Files\Amazon\cfn-bootstrap',
])

else:
step_desc += [arg]

if step_class != steps.ShellCommand:
step_kwargs['descriptionSuffix'] = " ".join(step_desc)

step_kwargs['description'] = "running"
step_kwargs['descriptionDone'] = "ran"

step_kwargs['env'] = step_env
return step_class(**step_kwargs)

@@ -194,9 +205,9 @@ def make_step(self, command):

command = command.split(' ')

# Add bash -l before every command on Windows builders
bash_command = ["bash", "-l"] if self.is_windows else []
step_kwargs['command'] = bash_command + command
# Add `bash -l` before every command on Windows builders
bash_args = ["bash", "-l"] if self.is_windows else []
step_kwargs['command'] = bash_args + command
if self.is_windows:
step_env += envs.Environment({
# Set home directory, to avoid adding `cd` command every time
@@ -205,13 +216,15 @@ def make_step(self, command):
),
})

step_desc = []
step_class = steps.ShellCommand
args = iter(command)
for arg in args:
# Change Step class to capture warnings as needed
# (steps.Compile and steps.Test catch warnings)
if arg == './mach':
mach_arg = next(args)
step_desc = [mach_arg]
if re.match('build(-.*)?', mach_arg):
step_class = steps.Compile
elif re.match('test-.*', mach_arg):
@@ -240,6 +253,15 @@ def make_step(self, command):
r'C:\Program Files\Amazon\cfn-bootstrap',
])

else:
step_desc += [arg]

if step_class != steps.ShellCommand:
step_kwargs['descriptionSuffix'] = " ".join(step_desc)

step_kwargs['description'] = "running"
step_kwargs['descriptionDone'] = "ran"

step_kwargs['env'] = step_env
return step_class(**step_kwargs)

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.