Closed
Bug 1480454
Opened 7 years ago
Closed 7 years ago
Various fixes for wpt-in-jsshell
Categories
(Core :: JavaScript Engine, enhancement)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla63
| Tracking | Status | |
|---|---|---|
| firefox63 | --- | fixed |
People
(Reporter: Ms2ger, Assigned: Ms2ger)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
|
2.47 KB,
patch
|
jgraham
:
review+
|
Details | Diff | Splinter Review |
|
1.27 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
|
592 bytes,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
|
1.73 KB,
patch
|
bbouvier
:
review+
|
Details | Diff | Splinter Review |
|
1.52 KB,
patch
|
jgraham
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8997068 -
Flags: review?(james)
| Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8997069 -
Flags: review?(bbouvier)
| Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8997070 -
Flags: review?(bbouvier)
| Assignee | ||
Comment 4•7 years ago
|
||
Attachment #8997071 -
Flags: review?(bbouvier)
| Assignee | ||
Comment 5•7 years ago
|
||
Attachment #8997072 -
Flags: review?(james)
Comment 6•7 years ago
|
||
Comment on attachment 8997068 [details] [diff] [review]
Part a: Add a wasm setting to the wpt .ini expectation files
I guess I imagined an actual command line option. Could be worth adding a comment about who uses the wasm value.
Attachment #8997068 -
Flags: review?(james) → review+
Comment 7•7 years ago
|
||
Comment on attachment 8997069 [details] [diff] [review]
Part b: Improve assertion in _emit_manifest_at
Review of attachment 8997069 [details] [diff] [review]:
-----------------------------------------------------------------
wow, it seems we'd almost want a linter that errors if there's any use of the pdb global variable. Thanks.
Attachment #8997069 -
Flags: review?(bbouvier) → review+
Updated•7 years ago
|
Attachment #8997070 -
Flags: review?(bbouvier) → review+
Comment 8•7 years ago
|
||
Comment on attachment 8997071 [details] [diff] [review]
Part d: Don't run wpt jstests in the jsreftest harness
Review of attachment 8997071 [details] [diff] [review]:
-----------------------------------------------------------------
Does this mean that a JS WPT test will run only in the browser and not in the JS shell? We'd actually like to have them run in both environments, even if it's a waste in resources consumption, for a few reasons:
- a WPT test failing in the shell will tell us the equivalent WPT browser test needs to be updated too (so we don't need to always run WPT in try builds).
- more generally, JS engine hackers mostly use the shell for testing purposes.
- some behaviors are different in a browser vs in the shell. At least I can remember one or two cases where the JS shell tests were passing and the equivalent browser tests were not, so it's been useful in the past.
Does it make sense, or am I misunderstanding this patch?
Attachment #8997071 -
Flags: review?(bbouvier)
Comment 9•7 years ago
|
||
Comment on attachment 8997072 [details] [diff] [review]
Part e: Stop running disabled wpt tests in jstests.
Review of attachment 8997072 [details] [diff] [review]:
-----------------------------------------------------------------
I expect this is fine, but I'd like a comment that explains the intent.
::: js/src/tests/jstests.py
@@ +382,5 @@
>
> return [
> RefTestCase(
> wpt,
> + strip_leading_slash(test.url),
I'm not really sure what the intent of this change is. It seems we are going from passing in a path, which may contain several tests, to passing in a url with path, query and fragment but without a leading slash. Which might be fine? I'm not sure.
Attachment #8997072 -
Flags: review?(james) → review+
| Assignee | ||
Comment 10•7 years ago
|
||
Comment on attachment 8997071 [details] [diff] [review]
Part d: Don't run wpt jstests in the jsreftest harness
No, the manifests are only used for js*ref*tests, i.e., the way we usually run jstests in the browser. With this change, we keep running these tests in the shell, but don't run them in two different harnesses (jsreftest and wpt) in the browser.
Attachment #8997071 -
Flags: review?(bbouvier)
Comment 11•7 years ago
|
||
Comment on attachment 8997071 [details] [diff] [review]
Part d: Don't run wpt jstests in the jsreftest harness
Review of attachment 8997071 [details] [diff] [review]:
-----------------------------------------------------------------
Ha, I missed the jsreftest bits, thanks.
Attachment #8997071 -
Flags: review?(bbouvier) → review+
| Assignee | ||
Comment 12•7 years ago
|
||
(In reply to James Graham [:jgraham] from comment #9)
> Comment on attachment 8997072 [details] [diff] [review]
> Part e: Stop running disabled wpt tests in jstests.
>
> Review of attachment 8997072 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> I expect this is fine, but I'd like a comment that explains the intent.
>
> ::: js/src/tests/jstests.py
> @@ +382,5 @@
> >
> > return [
> > RefTestCase(
> > wpt,
> > + strip_leading_slash(test.url),
>
> I'm not really sure what the intent of this change is. It seems we are going
> from passing in a path, which may contain several tests, to passing in a url
> with path, query and fragment but without a leading slash. Which might be
> fine? I'm not sure.
The thing is that loader.iter_tests() also returns disabled tests. loader.tests has removed those (they're in loader.disabled_tests), but it also drops the test_path I was using before. The closest equivalent seems to be test.url, but that has a leading slash that would cause the string to be interpreted as relative to the file system root.
I suppose there could be an issue with variants, but in that case I'm screwed anyway, because the shell doesn't support the location object to figure out which variant is running. I could perhaps add a lint for that.
| Assignee | ||
Comment 13•7 years ago
|
||
(In reply to :Ms2ger (⌚ UTC+1/+2) from comment #12)
> (In reply to James Graham [:jgraham] from comment #9)
> > Comment on attachment 8997072 [details] [diff] [review]
> > Part e: Stop running disabled wpt tests in jstests.
> >
> > Review of attachment 8997072 [details] [diff] [review]:
> > -----------------------------------------------------------------
> >
> > I expect this is fine, but I'd like a comment that explains the intent.
> >
> > ::: js/src/tests/jstests.py
> > @@ +382,5 @@
> > >
> > > return [
> > > RefTestCase(
> > > wpt,
> > > + strip_leading_slash(test.url),
> >
> > I'm not really sure what the intent of this change is. It seems we are going
> > from passing in a path, which may contain several tests, to passing in a url
> > with path, query and fragment but without a leading slash. Which might be
> > fine? I'm not sure.
>
> The thing is that loader.iter_tests() also returns disabled tests.
> loader.tests has removed those (they're in loader.disabled_tests), but it
> also drops the test_path I was using before. The closest equivalent seems to
> be test.url, but that has a leading slash that would cause the string to be
> interpreted as relative to the file system root.
>
> I suppose there could be an issue with variants, but in that case I'm
> screwed anyway, because the shell doesn't support the location object to
> figure out which variant is running. I could perhaps add a lint for that.
Talked on IRC and I'm using test.path instead of test.url.
Comment 14•7 years ago
|
||
Pushed by Ms2ger@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/009f3d9799b6
Part a: Add a wasm setting to the wpt .ini expectation files; r=jgraham
https://hg.mozilla.org/integration/mozilla-inbound/rev/a0ed2387d4a4
Part b: Improve assertion in _emit_manifest_at; r=bbouvier
https://hg.mozilla.org/integration/mozilla-inbound/rev/3c2e6da29d5f
Part c: Give RefTestCase a useful __repr__ implementation; r=bbouvier
https://hg.mozilla.org/integration/mozilla-inbound/rev/6b60feef3ce6
Part d: Don't run wpt jstests in the jsreftest harness; r=bbouvier
https://hg.mozilla.org/integration/mozilla-inbound/rev/dbd2bfad3d7a
Part e: Stop running disabled wpt tests in jstests; r=jgraham
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/12333 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 17•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/009f3d9799b6
https://hg.mozilla.org/mozilla-central/rev/a0ed2387d4a4
https://hg.mozilla.org/mozilla-central/rev/3c2e6da29d5f
https://hg.mozilla.org/mozilla-central/rev/6b60feef3ce6
https://hg.mozilla.org/mozilla-central/rev/dbd2bfad3d7a
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Upstream PR merged
https://hg.mozilla.org/integration/mozilla-inbound/rev/5f9e2ddc97adc2c2f30ac2cc3bed4d1c1f6db8c7
Bug 1480454 - Part f: Run mach wpt-manifest-update to pick up change from part a. r=me
Comment 20•7 years ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•