Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

mach package treated as a steps.Compile - #503

Merged
bors-servo merged 1 commit into
servo:masterfrom
lucasloisp:mach_package_as_compile_step
Oct 12, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
lucasloisp:mach_package_as_compile_step

Conversation

@lucasloisp

@lucasloisp lucasloisp commented Oct 5, 2016 •

Copy link
Copy Markdown
Contributor

@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

highfive commented Oct 5, 2016

Copy link
Copy Markdown

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 aneeshusa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: use elif instead of if

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: use elif instead of if

@aneeshusa

Copy link
Copy Markdown
Contributor

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.

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 mach_package_as_compile_step branch from 0412ec7 to 9296512 Compare October 5, 2016 16:31
@lucasloisp

Copy link
Copy Markdown
Contributor Author

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

@aneeshusa

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor

📌 Commit 9296512 has been approved by aneeshusa

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 9296512 with merge 13c0fce...

bors-servo pushed 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
Copy Markdown
Contributor

☀️ Test successful - status-travis

@lucasloisp
lucasloisp deleted the mach_package_as_compile_step branch October 24, 2016 01:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants