Skip to content

Trigger mozbrowsererror event when a pipeline fails. - #10551

Merged
bors-servo merged 1 commit into
servo:masterfrom
asajeffrey:trigger-mozbrowsererror-event
Apr 18, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
asajeffrey:trigger-mozbrowsererror-event

Conversation

@asajeffrey

Copy link
Copy Markdown
Contributor

Addresses part of #10334 (it fires the event, but does not include a backtrace).


This change is Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Apr 12, 2016
@asajeffrey

Copy link
Copy Markdown
Contributor Author

It could do with a test, but this requires more infrastructure for testing panics.

@paulrouget

Copy link
Copy Markdown
Contributor

Is there a way to test that manually? To experiment with this event in browserhtml.

@Ms2ger

Ms2ger commented Apr 13, 2016

Copy link
Copy Markdown
Contributor

r? @jdm

I know you're busy, but you seem to be the only reviewer for mozbrowser code.

@highfive highfive assigned jdm and unassigned Ms2ger Apr 13, 2016
@asajeffrey

Copy link
Copy Markdown
Contributor Author

@paul: I added --random-pipeline-closure-probability so we could test random pipeline failures. Would that do the trick?

@asajeffrey

Copy link
Copy Markdown
Contributor Author

Grr, that was meant for @paulrouget oops!

@paulrouget

Copy link
Copy Markdown
Contributor

@paul: I added --random-pipeline-closure-probability so we could test random pipeline failures. Would that do the trick?

We need 2 things:

  • being able to write a wpt test
  • being able to experiment with this new mozbrowser event in browserhtml. We don't want to integrate this feature "blindly"

Not sure what that would look like. What would --random-pipeline-closure-probability do exactly? And maybe we want to be able to tell which pipeline to crash/close (--force-close-pipeline 1,2).

@asajeffrey

Copy link
Copy Markdown
Contributor Author

@paulrouget --random-pipeline-closure-probability=P causes the constellation to shut down a random pipeline with probability P per event. This is almost what we want, but may end up shutting down the browser.html pipeline as well, which is not what we're after.

We have a lot of the tools to write wpt tests that use this to test panic, I've not put the pieces together yet, it's on my queue (#10568).

@jdm

jdm commented Apr 13, 2016

Copy link
Copy Markdown
Member

Sounds like @paulrouget wants the deterministic panics I suggested in #10144.

@asajeffrey

Copy link
Copy Markdown
Contributor Author

@jdm --random-pipeline-closure-probability=1 is pretty deterministic, it just is a bit brutal :)

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #10610) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Apr 14, 2016
@asajeffrey
asajeffrey force-pushed the trigger-mozbrowsererror-event branch from 4fe89f0 to aef2f0c Compare April 14, 2016 16:43
@asajeffrey

Copy link
Copy Markdown
Contributor Author

Rebased.

@notriddle notriddle removed the S-needs-rebase There are merge conflict errors. label Apr 15, 2016
@jdm

jdm commented Apr 18, 2016

Copy link
Copy Markdown
Member

r=me with this change.
-S-awaiting-review +S-needs-code-changes


Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 1 unresolved discussion, some commit checks broke.


components/compositing/constellation.rs, line 1905 [r2] (raw file):
Let's invert this and safe a level of indentation.


Comments from Reviewable

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Apr 18, 2016
@asajeffrey
asajeffrey force-pushed the trigger-mozbrowsererror-event branch from aef2f0c to 59824cc Compare April 18, 2016 21:04
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Apr 18, 2016
@asajeffrey

Copy link
Copy Markdown
Contributor Author

@bors-servo r=jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 59824cc has been approved by jdm

@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 Apr 18, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 59824cc with merge 4001a24...

bors-servo pushed a commit that referenced this pull request Apr 18, 2016
Trigger mozbrowsererror event when a pipeline fails.

Addresses part of #10334 (it fires the event, but does not include a backtrace).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10551)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt

@bors-servo
bors-servo merged commit 59824cc into servo:master Apr 18, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Apr 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants