Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up`mach package` treated as a steps.Compile #503
Conversation
highfive
commented
Oct 5, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @aneeshusa (or someone else) soon. |
|
Looks good overall. A few nits on the commit message:
|
| @@ -106,6 +106,8 @@ def make_step(self, command): | |||
| step_desc = [mach_arg] | |||
| if re.match('build(-.*)?', mach_arg): | |||
| step_class = steps.Compile | |||
| if re.match('package', mach_arg): | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| @@ -251,6 +253,8 @@ def make_step(self, command): | |||
| step_desc = [mach_arg] | |||
| if re.match('build(-.*)?', mach_arg): | |||
| step_class = steps.Compile | |||
| if re.match('package', mach_arg): | |||
This comment has been minimized.
This comment has been minimized.
|
Commit message looks much better :) A few more nits:
Also it looks like a merge commit sneaked in there, so go ahead and squash everything into one commit. |
5a22763
to
0412ec7
Even when this command fails, Buildbot still goes on to run the next step, because it is run as a simple ShellCommand. Instead, we now check for it in the `make_step` function and use `steps.Compile` to create the step as it is not only a closer semantic match (we're "compiling" the package) but it also makes it so when it fails Builbot doesn't ignore it or move on to the next step.
0412ec7
to
9296512
|
@aneeshusa Anything I should change or is the change ready to be approved? |
|
@lucasloisp Sorry, I didn't get a notification that you had pushed new changes for some reason! This looks great, thanks for the PR :) @bors-servo r+ |
|
|
…husa `mach package` treated as a steps.Compile @aneeshusa: as per issue #372, both `make_step` now have a heuristic for checking that the argument passed to mach (`mach_arg`) is `'package'` and assigns `step_class = steps.Compile` <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/503) <!-- Reviewable:end -->
|
|
lucasloisp commentedOct 5, 2016
•
edited by larsbergstrom
@aneeshusa: as per issue #372, both
make_stepnow have a heuristic for checking that the argument passed to mach (mach_arg) is'package'and assignsstep_class = steps.CompileThis change is