Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement TextEncoder (fixes #4768). #5025
Conversation
highfive
commented
Feb 23, 2015
hoppipolla-critic-bot
commented
Feb 23, 2015
|
Critic review: https://critic.hoppipolla.co.uk/r/4064 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
What are the other failures you see? |
|
hmm, there are so many, most of them are decoder fail. Here is the link to log summary.
|
|
Yes, |
|
Ah. My recommendation with the failures is to make a PR that enables the |
|
I see, let me try this and give you a clear log. |
|
I've left comments on Critic :) |
|
I rebase the branch to newest. Also, I found that only 4 tests being passed after the textencoder added T_T |
|
Yeah, I suspect the tests are relying on things like document.inputEncoding and TextDecoder, unfortunately. |
|
rebase to newest master and solve datatype issue. Though I think it still cast usize to u32 and causing some loss. |
|
I believe there's just one nit left here, based on the Critic review - there should be a space before the { on |
|
I didn't notice the new issue, should be fixed now. |
* mark most tests as fail * remove 10 passed tests in wpt tests * add textencoder into exposed interface
|
Done. I squash it into three commits: constructor, implement method, and enable testings |
This comment has been minimized.
This comment has been minimized.
jdm
commented on 314bf79
Mar 14, 2015
|
r+ |
This comment has been minimized.
This comment has been minimized.
jdm
replied
Mar 14, 2015
|
@bors: retry |
|
Thanks! |
This comment has been minimized.
This comment has been minimized.
|
saw approval from jdm |
This comment has been minimized.
This comment has been minimized.
|
merging yodalee/servo/issue4768-textencoder = 314bf79 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
some tests failed: |
This comment has been minimized.
This comment has been minimized.
|
saw approval from jdm |
This comment has been minimized.
This comment has been minimized.
|
merging yodalee/servo/issue4768-textencoder = 314bf79 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
some tests failed: |
This PR need modification, but I think some review is fine. I run the wpt test, there are some issues: * The textencoder constructor test will fail, because it return `IndexError` instead of `RangeError` in spec. * Other fail I cannot understand why....
|
I cannot reproduce the crash result of |
|
Yeah, that looks kind of like resource exhaustion on the builder machine. It's weird that it's happening for this test in particular :/ |
This PR need modification, but I think some review is fine. I run the wpt test, there are some issues: * The textencoder constructor test will fail, because it return `IndexError` instead of `RangeError` in spec. * Other fail I cannot understand why....
|
@jdm |
|
You mean you made the test not test anything. |
|
oops, I think I misunderstand the meaning of async_test and test. |
|
The good news is that I can reproduce the failure locally:
|
|
Wow, that test actually does spawn an incredible number of tasks for some reason. |
|
So it's the async_test that creates a lot of iframes that is doing us in, specifically. For the purposes of this PR, I suggest just annotating that a crash is expected from this test, and we can file another bug for improving our thread creation eagerness and making this test not crash. |
|
@mbrubeck Assigned to you to figure out next steps. |
…=jdm This is a series of already-reviewed changes by @yodalee from #5025, rebased onto current servo master, with some fixups applied: * Fixed build errors/warnings from the latest rust upgrade. * Marked `tests/wpt/web-platform-tests/encoding/single-byte-decoder.html` as expecting CRASH. I could not verify locally that the new test annotation is correct, since the test appears to hang rather than crash on my Linux box. (Or maybe I just didn't wait long enough.) If this crash isn't consistent, or if it takes a long time, maybe we should skip this test instead? r? @jdm
…=jdm This is a series of already-reviewed changes by @yodalee from #5025, rebased onto current servo master, with some fixups applied: * Fixed build errors/warnings from the latest rust upgrade. * Marked `tests/wpt/web-platform-tests/encoding/single-byte-decoder.html` as expecting CRASH. I could not verify locally that the new test annotation is correct, since the test appears to hang rather than crash on my Linux box. (Or maybe I just didn't wait long enough.) If this crash isn't consistent, or if it takes a long time, maybe we should skip this test instead? r? @jdm
…=jdm This is a series of already-reviewed changes by @yodalee from #5025, rebased onto current servo master, with some fixups applied: * Fixed build errors/warnings from the latest rust upgrade. * Marked `tests/wpt/web-platform-tests/encoding/single-byte-decoder.html` as expecting CRASH. I could not verify locally that the new test annotation is correct, since the test appears to hang rather than crash on my Linux box. (Or maybe I just didn't wait long enough.) If this crash isn't consistent, or if it takes a long time, maybe we should skip this test instead? r? @jdm
yodalee commentedFeb 23, 2015
This PR need modification, but I think some review is fine.
I run the wpt test, there are some issues:
IndexErrorinstead ofRangeErrorin spec.