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

Consolidate runnable variants on DOMManipulationTask into a single Runnable variant. #12292

Merged
merged 2 commits into from Jul 7, 2016

Conversation

@cbrewster
Copy link
Member

cbrewster commented Jul 6, 2016

Consolidates the runnable variants on DOMManipulationTask into a single Runnable variant.
Also combines MainThreadRunnable into the Runnable trait.

I plan on filing a few E-Easy issues after this lands to implement name on each of the structs that implement Runnable.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because refactoring

This change is Reviewable

@highfive
Copy link

highfive commented Jul 6, 2016

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/storage.rs, components/script/dom/htmldetailselement.rs, components/script/dom/htmlformelement.rs, components/script/dom/htmlmediaelement.rs, components/script/dom/htmlimageelement.rs, components/script/script_thread.rs, components/script/task_source/dom_manipulation.rs
@highfive
Copy link

highfive commented Jul 6, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@cbrewster cbrewster changed the title Runnable variant Consolidate runnable variants on DOMManipulationTask into a single Runnable variant. Jul 6, 2016

pub trait MainThreadRunnable {
fn handler(self: Box<Self>, script_thread: &ScriptThread);
fn name(&self) -> &'static str { "" }

This comment has been minimized.

@KiChjang

KiChjang Jul 6, 2016

Member

I was thinking of "generic runnable" instead of the empty string.

@cbrewster cbrewster force-pushed the cbrewster:runnable_variant branch from b86b123 to 54cf3af Jul 6, 2016
bors-servo added a commit that referenced this pull request Jul 6, 2016
[Do Not Merge] Make DOM Manipulation events cancellable

<!-- Please describe your changes on the following line: -->
I can't reproduce the intermittent failure on #11703 so I am running some tests using buildbot.
If this does fix the intermittent, this is blocked on #12292.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
bors-servo added a commit that referenced this pull request Jul 6, 2016
[Do Not Merge] Make DOM Manipulation events cancellable

<!-- Please describe your changes on the following line: -->
I can't reproduce the intermittent failure on #11703 so I am running some tests using buildbot.
If this does fix the intermittent, this is blocked on #12292.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12296)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this pull request Jul 6, 2016
[Do Not Merge] Make DOM Manipulation events cancellable

<!-- Please describe your changes on the following line: -->
I can't reproduce the intermittent failure on #11703 so I am running some tests using buildbot.
If this does fix the intermittent, this is blocked on #12292.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12296)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this pull request Jul 6, 2016
[Do Not Merge] Make DOM Manipulation events cancellable

<!-- Please describe your changes on the following line: -->
I can't reproduce the intermittent failure on #11703 so I am running some tests using buildbot.
If this does fix the intermittent, this is blocked on #12292.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12296)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this pull request Jul 7, 2016
[Do Not Merge] Make DOM Manipulation events cancellable

<!-- Please describe your changes on the following line: -->
I can't reproduce the intermittent failure on #11703 so I am running some tests using buildbot.
If this does fix the intermittent, this is blocked on #12292.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12296)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this pull request Jul 7, 2016
[Do Not Merge] Make DOM Manipulation events cancellable

<!-- Please describe your changes on the following line: -->
I can't reproduce the intermittent failure on #11703 so I am running some tests using buildbot.
If this does fix the intermittent, this is blocked on #12292.

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

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12296)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this pull request Jul 7, 2016
[Do Not Merge] Make DOM Manipulation events cancellable

<!-- Please describe your changes on the following line: -->
I can't reproduce the intermittent failure on #11703 so I am running some tests using buildbot.
If this does fix the intermittent, this is blocked on #12292.

---
<!-- 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 #11703 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12296)
<!-- Reviewable:end -->
@KiChjang
Copy link
Member

KiChjang commented Jul 7, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 7, 2016

📌 Commit 54cf3af has been approved by KiChjang

@bors-servo
Copy link
Contributor

bors-servo commented Jul 7, 2016

Testing commit 54cf3af with merge 783fe8f...

bors-servo added a commit that referenced this pull request Jul 7, 2016
Consolidate runnable variants on DOMManipulationTask into a single Runnable variant.

<!-- Please describe your changes on the following line: -->
Consolidates the runnable variants on `DOMManipulationTask` into a single `Runnable` variant.
Also combines `MainThreadRunnable` into the `Runnable` trait.

I plan on filing a few E-Easy issues after this lands to implement `name` on each of the structs that implement `Runnable`.

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because refactoring

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12292)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 7, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Jul 7, 2016

  ▶ FAIL [expected PASS] /css-transforms-1_dev/html/transform-table-007.htm
  └   → /</span><span class="stdout">css-transforms-1_dev/html/transform-table-007.htm a5c014b20ef1363bea6f24eda28c7efb7c45698a
/css-transforms-1_dev/html/reference/transform-blank-ref.htm fa6407b1acbbfea27e27061e7d1bdeca98e4a728
Testing a5c014b20ef1363bea6f24eda28c7efb7c45698a == fa6407b1acbbfea27e27061e7d1bdeca98e4a728
@KiChjang
Copy link
Member

KiChjang commented Jul 7, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 7, 2016

Previous build results for android, arm32, arm64, linux-dev, mac-dev-unit, windows are reusable. Rebuilding only linux-rel, mac-rel-css, mac-rel-wpt...

@bors-servo
Copy link
Contributor

bors-servo commented Jul 7, 2016

💔 Test failed - mac-rel-css

@KiChjang
Copy link
Member

KiChjang commented Jul 7, 2016

STDERR: Could not terminate process: 21086
  ▶ ERROR [expected OK] /css-transforms-1_dev/html/css-transform-property-existence.htm
  └   → Traceback (most recent call last):
  File "/Users/servo/buildbot/slave/mac-rel-css/build/tests/wpt/harness/wptrunner/executors/base.py", line 149, in run_test
    result = self.do_test(test)
  File "/Users/servo/buildbot/slave/mac-rel-css/build/tests/wpt/harness/wptrunner/executors/executorservo.py", line 133, in do_test
    self.proc.kill()
  File "/Users/servo/buildbot/slave/mac-rel-css/build/python/_virtualenv/lib/python2.7/site-packages/mozprocess/processhandler.py", line 749, in kill
    self.proc.kill(sig=sig)
  File "/Users/servo/buildbot/slave/mac-rel-css/build/python/_virtualenv/lib/python2.7/site-packages/mozprocess/processhandler.py", line 165, in kill
    send_sig(signal.SIGTERM)
  File "/Users/servo/buildbot/slave/mac-rel-css/build/python/_virtualenv/lib/python2.7/site-packages/mozprocess/processhandler.py", line 152, in send_sig
    os.killpg(pid, sig)
OSError: [Errno 1] Operation not permitted

Not this again

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Jul 7, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 7, 2016

Testing commit 54cf3af with merge fdfde1c...

bors-servo added a commit that referenced this pull request Jul 7, 2016
Consolidate runnable variants on DOMManipulationTask into a single Runnable variant.

<!-- Please describe your changes on the following line: -->
Consolidates the runnable variants on `DOMManipulationTask` into a single `Runnable` variant.
Also combines `MainThreadRunnable` into the `Runnable` trait.

I plan on filing a few E-Easy issues after this lands to implement `name` on each of the structs that implement `Runnable`.

---
<!-- 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
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because refactoring

<!-- 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12292)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 7, 2016

@bors-servo bors-servo merged commit 54cf3af into servo:master Jul 7, 2016
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
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

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