Skip to content

Unregister components while exiting#22474

Merged
bors-servo merged 1 commit intoservo:masterfrom
csmoe:unregister
Dec 18, 2018
Merged

Unregister components while exiting#22474
bors-servo merged 1 commit intoservo:masterfrom
csmoe:unregister

Conversation

@csmoe
Copy link
Copy Markdown
Contributor

@csmoe csmoe commented Dec 16, 2018

r=@gterzian



This change is Reviewable

@highfive
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 @avadacatavra (or someone else) soon.

@highfive
Copy link
Copy Markdown

Heads up! This PR modifies the following files:

@highfive
Copy link
Copy Markdown

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 16, 2018
Copy link
Copy Markdown
Member

@gterzian gterzian left a comment

Choose a reason for hiding this comment

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

Looks good so far, thanks!

Could you please add a test-case for this? You could for example do a notify_activity followed by a unregister call, and then assert that after a timeout no alerts have been received on the ipc channel.

@csmoe csmoe changed the title [WIP] Unregister components while exiting Unregister components while exiting Dec 17, 2018
@gterzian
Copy link
Copy Markdown
Member

Great! Please squash into one commit and then it should be good to go...

@gterzian gterzian assigned gterzian and unassigned avadacatavra Dec 17, 2018
@gterzian gterzian added the S-needs-squash Some (or all) of the commits in the PR should be combined. label Dec 17, 2018
@KiChjang KiChjang removed the S-needs-squash Some (or all) of the commits in the PR should be combined. label Dec 18, 2018
@KiChjang
Copy link
Copy Markdown
Contributor

@bors-servo r=gterzian

Thanks!

@bors-servo
Copy link
Copy Markdown
Contributor

📌 Commit 5600a1d has been approved by gterzian

@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 Dec 18, 2018
@bors-servo
Copy link
Copy Markdown
Contributor

⌛ Testing commit 5600a1d with merge 59a9da3...

bors-servo pushed a commit that referenced this pull request Dec 18, 2018
Unregister components while exiting

r=@gterzian

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22468 (GitHub issue number if applicable)

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

💔 Test failed - status-taskcluster

@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 Dec 18, 2018
@gterzian
Copy link
Copy Markdown
Member

@bors-servo
Copy link
Copy Markdown
Contributor

💣 Failed to start rebuilding: Unknown error

@bors-servo
Copy link
Copy Markdown
Contributor

⌛ Testing commit 5600a1d with merge a067620...

bors-servo pushed a commit that referenced this pull request Dec 18, 2018
Unregister components while exiting

r=@gterzian

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #22468 (GitHub issue number if applicable)

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22474)
<!-- 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 Dec 18, 2018
@bors-servo
Copy link
Copy Markdown
Contributor

☀️ Test successful - android-mac, arm32, arm64, linux-rel-css, linux-rel-wpt, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, magicleap, status-taskcluster
Approved by: gterzian
Pushing a067620 to master...

@bors-servo bors-servo merged commit 5600a1d into servo:master Dec 18, 2018
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 18, 2018
@gterzian
Copy link
Copy Markdown
Member

@csmoe thank you!

@csmoe
Copy link
Copy Markdown
Contributor Author

csmoe commented Dec 18, 2018

@gterzian thank for your patience :)

@csmoe csmoe deleted the unregister branch December 18, 2018 06:50
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.

When exiting, monitored component should unregister itself

6 participants