Skip to content

Move code to exit servo after writing a screenshot out of composite_specific_target. - #7875

Merged
bors-servo merged 1 commit into
servo:masterfrom
jgraham:composite_no_exit
Oct 8, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
jgraham:composite_no_exit

Conversation

@jgraham

@jgraham jgraham commented Oct 5, 2015

Copy link
Copy Markdown
Contributor

The structure of this function was confusing, so move some parts out into the
caller where they seem like a more natural fit and add documentation of the
functions

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 5, 2015
@jgraham

jgraham commented Oct 5, 2015

Copy link
Copy Markdown
Contributor Author

@glennw does something like this seem sensible? I didn't fully test it yet…

Comment thread components/compositing/compositor.rs Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The and_then seems redundant.

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.

It unwraps a level of Option i.e. Some(Some(img)) becomes Some(img)

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.

But I guess I'm looking for unwrap_or. The Result and Option APIs are huge :(

@glennw

glennw commented Oct 7, 2015

Copy link
Copy Markdown
Member

@jgraham It looks reasonable to me - did you want to do any more testing / changes on it, or is it ready?

…pecific_target.

The structure of this function was confusing, so move some parts out into the
caller where they seem like a more natural fit and add documentation of the
functions
@jgraham
jgraham force-pushed the composite_no_exit branch from 923ddf9 to 64b74f5 Compare October 7, 2015 08:24
@jgraham

jgraham commented Oct 7, 2015

Copy link
Copy Markdown
Contributor Author

I think it's ready for review.

@glennw

glennw commented Oct 7, 2015

Copy link
Copy Markdown
Member

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 64b74f5 has been approved by glennw

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Oct 7, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 64b74f5 with merge f917037...

bors-servo pushed a commit that referenced this pull request Oct 7, 2015
Move code to exit servo after writing a screenshot out of composite_specific_target.

The structure of this function was confusing, so move some parts out into the
caller where they seem like a more natural fit and add documentation of the
functions

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7875)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-dev-ref-unit

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 7, 2015
@jdm

jdm commented Oct 7, 2015

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, linux-dev, linux-rel, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only mac-dev-ref-unit...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-dev-ref-unit

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 7, 2015
@jdm

jdm commented Oct 7, 2015

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, linux-dev, linux-rel, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only mac-dev-ref-unit...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-dev-ref-unit

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 7, 2015
@jdm

jdm commented Oct 7, 2015

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⚡ Previous build results for android, gonk, linux-dev, linux-rel, mac-rel-css, mac-rel-wpt are reusable. Rebuilding only mac-dev-ref-unit...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-dev-ref-unit

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Oct 7, 2015
@jgraham

jgraham commented Oct 7, 2015

Copy link
Copy Markdown
Contributor Author

Well, it's the same test that fails each time…

@jdm

jdm commented Oct 7, 2015

Copy link
Copy Markdown
Member

@bors-servo: retry

@jgraham

jgraham commented Oct 7, 2015

Copy link
Copy Markdown
Contributor Author

Ah, the other kind of OK

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 64b74f5 with merge e7f73fd...

bors-servo pushed a commit that referenced this pull request Oct 7, 2015
Move code to exit servo after writing a screenshot out of composite_specific_target.

The structure of this function was confusing, so move some parts out into the
caller where they seem like a more natural fit and add documentation of the
functions

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7875)
<!-- Reviewable:end -->
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Oct 7, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants