Repository navigation
mach package treated as a steps.Compile - #503
Conversation
|
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. |
aneeshusa
left a comment
There was a problem hiding this comment.
Looks good overall. A few nits on the commit message:
- Keep the title (first line) to around 50 chars or less
- Add some motivation to the body. Why are we making this change?
| step_desc = [mach_arg] | ||
| if re.match('build(-.*)?', mach_arg): | ||
| step_class = steps.Compile | ||
| if re.match('package', mach_arg): |
There was a problem hiding this comment.
nit: use elif instead of if
There was a problem hiding this comment.
I would have sworn I used elif. I'll change it
| step_desc = [mach_arg] | ||
| if re.match('build(-.*)?', mach_arg): | ||
| step_class = steps.Compile | ||
| if re.match('package', mach_arg): |
There was a problem hiding this comment.
nit: use elif instead of if
|
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
Compare
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
Compare
|
@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+ |
|
📌 Commit 9296512 has been approved by |
…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 -->
|
☀️ Test successful - status-travis |
@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