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

`mach package` treated as a steps.Compile #503

Merged
merged 1 commit into from Oct 12, 2016

Conversation

@lucasloisp
Copy link
Contributor

lucasloisp commented Oct 5, 2016

@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


This change is Reviewable

@highfive
Copy link

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.

Copy link
Member

aneeshusa left a 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?
@@ -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.

@aneeshusa

aneeshusa Oct 5, 2016

Member

nit: use elif instead of if

This comment has been minimized.

@lucasloisp

lucasloisp Oct 5, 2016

Author Contributor

I would have sworn I used elif. I'll change it

@@ -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.

@aneeshusa

aneeshusa Oct 5, 2016

Member

nit: use elif instead of if

@aneeshusa
Copy link
Member

aneeshusa commented Oct 5, 2016

Commit message looks much better :) A few more nits:

  • We actually have mach package for more platforms now, not just Android, so amend the beginning to something like Even when this command fails, Buildbot still goes on to run the next step, ....
  • The parenthetical with the issue reference is unneeded as GitHub already will make it easy to get to the issue from the commit, so remove it.
  • grammar nit: check for it on the -> check for it in the

Also it looks like a merge commit sneaked in there, so go ahead and squash everything into one commit.

@lucasloisp lucasloisp force-pushed the lucasloisp:mach_package_as_compile_step branch from 5a22763 to 0412ec7 Oct 5, 2016
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.
@lucasloisp lucasloisp force-pushed the lucasloisp:mach_package_as_compile_step branch from 0412ec7 to 9296512 Oct 5, 2016
@lucasloisp
Copy link
Contributor Author

lucasloisp commented Oct 12, 2016

@aneeshusa Anything I should change or is the change ready to be approved?

@jdm jdm removed the S-needs-squash label Oct 12, 2016
@aneeshusa
Copy link
Member

aneeshusa commented Oct 12, 2016

@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+

@bors-servo
Copy link
Contributor

bors-servo commented Oct 12, 2016

📌 Commit 9296512 has been approved by aneeshusa

@bors-servo
Copy link
Contributor

bors-servo commented Oct 12, 2016

Testing commit 9296512 with merge 13c0fce...

bors-servo added a commit that referenced this pull request Oct 12, 2016
…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 -->
@bors-servo
Copy link
Contributor

bors-servo commented Oct 12, 2016

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit 9296512 into servo:master Oct 12, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@lucasloisp lucasloisp deleted the lucasloisp:mach_package_as_compile_step branch Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.