WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
256581
WPT variant parsing seems wrong
https://bugs.webkit.org/show_bug.cgi?id=256581
Summary
WPT variant parsing seems wrong
Anne van Kesteren
Reported
2023-05-10 02:59:48 PDT
E.g., websockets WPT has a bunch of <!-- META: variant= --> <!-- META: variant=?wss --> ending up as single test. I think that's because
https://github.com/WebKit/WebKit/commit/9833f67e85a7c743cd0b8fe64666f62fc07b628f
didn't consider the empty string to be a valid variant. We'd mainly end up running more tests so I'm not sure we want to fix this, but we should probably consider it at some point and document the outcome.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-05-17 03:00:42 PDT
<
rdar://problem/109450384
>
Chris Dumez
Comment 2
2023-05-17 16:57:58 PDT
If I look at imported/w3c/web-platform-tests/websockets/constructor/019.html for example, I see: ``` <meta name="variant" content=""> <meta name="variant" content="?wss"> <meta name="variant" content="?wpt_flags=h2"> ``` When I run the tests, I see we run: ``` [235/366] imported/w3c/web-platform-tests/websockets/constructor/019.html passed [236/366] imported/w3c/web-platform-tests/websockets/constructor/019.html?wss passed ``` So we seem to run the first 2 variants just fine. The third variant doesn't run but it is only because it is skipped: ``` LayoutTests/TestExpectations:imported/w3c/web-platform-tests/websockets/constructor/019.html?wpt_flags=h2 [ Skip ] ``` Could you clarify what the problem is? Which test are you seeing a problem with?
Anne van Kesteren
Comment 3
2023-05-19 02:49:05 PDT
Sorry, I should have been more clear. The problem is with the any.js tests. E.g., let's take Close-1000-reason.any.js as an example. If you look at Close-1000-reason.any.html (which the import script ends up generating) it'll have <!-- META: variant= --> <!-- META: variant=?wss --> <!-- META: variant=?wpt_flags=h2 --> and as you note we skip the last one. But we only end up running and creating an expectation file for the ?wss variant. The same is true for Close-1000-reason.any.worker.html (which the import script also generates).
Anne van Kesteren
Comment 4
2023-05-19 02:50:18 PDT
Perhaps the import script should generate <meta> elements instead?
Sam Sneddon [:gsnedders]
Comment 5
2023-05-19 07:14:07 PDT
This is just gonna be Tools/Scripts/webkitpy/layout_tests/controllers/layout_test_finder_legacy.py:148: results = re.match(r'<!--\s*META:\s*variant=([?|#]\S+)\s*-->', line) Which clearly doesn't match the empty string.
Sam Sneddon [:gsnedders]
Comment 6
2023-05-19 07:48:22 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/14081
EWS
Comment 7
2023-05-20 00:22:41 PDT
Committed
264289@main
(e17c2153ab90): <
https://commits.webkit.org/264289@main
> Reviewed commits have been landed. Closing PR #14081 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug