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
Test for member name clashes in idlharness #12231
Test for member name clashes in idlharness #12231
Conversation
Chromium equivalent: https://chromium-review.googlesource.com/c/chromium/src/+/1154984 |
The tryjobs from the Chromium patch are red apparently because of some issues with Document and the createImageBitmap API: https://chromium-review.googlesource.com/c/chromium/src/+/1154984 Should those be resolved before proceeding with this patch? |
e283510
to
aac22ba
Compare
I'll be happy to review this but shouldn't be the assignee. Are there for example Chromium tryjobs which show that the current patch passes all IDL checks? There are failing CI checks above; how do reviewers read and understand them? |
@kenrussell - the wpt-bot picks a random reviewer from the set of reviewers as the assignee; this is intended to ensure that we don't suffer diffusion of responsibility (all reviewers leaving it for someone else). If you're willing to review, then the assignment succeeded!
The (blocking) failure is not related to this change, so can be ignored with respect to your review. What you really want to look at is the before/after results on wpt.fyi (there's a link called "View visual comparison" on each of the wpt.fyi checks). This link shows all the newly failing results on Chrome: Looks like overloaded methods are being incorrectly treated as clashes, so something needs fixing. |
Would it be possible for @foolip to review this? I've never reviewed a patch in this repo and am still lost reading the test results. |
Sure, I can review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM % nits.
I have to admit I'm not thrilled about growing the number of subtests that are checking that specs are doing the right thing as opposed to implementations, but I think it's a better trade-off than failing the setup which would have been the option. An approach to avoiding this would be to build the tests and have the spec checks be part of the build step, but that'd amount to a full rewrite of the whole idlharness.js machinery.
@@ -7,7 +7,7 @@ | |||
'use strict'; | |||
|
|||
idl_test( | |||
['webgl1'], | |||
['webgl1', 'webgl2'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay! :)
6428f77
to
8fe88fd
Compare
8fe88fd
to
e3d208e
Compare
https://github.com/web-platform-tests/wpt/pull/12231/checks?check_run_id=237131876 produced https://staging.wpt.fyi/results/?diff&filter=ADC&q=seq%28status%3A%21fail%20status%3Afail%29&run_id=253480011&run_id=239540012 which has 6 tests with clashes, which boil down to 3 separate redefinitions. WebGL with |
infrastructure/ failures are #19297 |
#12197 revealed that clashing partial/inherited/included interface member names are totally overridden .
This asserts that each member name is unique when rolling the extra members into the main interface, adding a setup test for each partial/mixin/inheritance.