Bug 234480 - Fix Tools/Scripts/webkitpy/w3c/test_importer.py
Summary: Fix Tools/Scripts/webkitpy/w3c/test_importer.py
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Nguyen (:ntim)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-18 13:11 PST by Tim Nguyen (:ntim)
Modified: 2021-12-20 02:57 PST (History)
5 users (show)

See Also:


Attachments
Patch (1.46 KB, patch)
2021-12-18 13:14 PST, Tim Nguyen (:ntim)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Nguyen (:ntim) 2021-12-18 13:11:19 PST
ntim @ OpenSource ⚡️ import-w3c-tests -t web-platform-tests/html/semantics/interactive-elements/the-dialog-element/
Downloading W3C test repositories
Fetching https://github.com/web-platform-tests/wpt.git...
Checking out revision origin/master
Scanning /Volumes/Data/Code/Safari/OpenSource/WebKitBuild/w3c-tests/to-be-imported/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/...
Traceback (most recent call last):
  File "/Volumes/Data/Code/Safari/OpenSource/Tools/Scripts/import-w3c-tests", line 35, in <module>
    sys.exit(test_importer.main(sys.argv[1:], sys.stdout, sys.stderr))
  File "/Volumes/Data/Code/Safari/OpenSource/Tools/Scripts/webkitpy/w3c/test_importer.py", line 98, in main
    test_importer.do_import()
  File "/Volumes/Data/Code/Safari/OpenSource/Tools/Scripts/webkitpy/w3c/test_importer.py", line 209, in do_import
    self.find_importable_tests(self.filesystem.join(self.source_directory, test_path))
  File "/Volumes/Data/Code/Safari/OpenSource/Tools/Scripts/webkitpy/w3c/test_importer.py", line 352, in find_importable_tests
    if test_info['type'] == 'mismatch':
KeyError: 'type'
Comment 1 Tim Nguyen (:ntim) 2021-12-18 13:14:51 PST
Created attachment 447530 [details]
Patch
Comment 2 Manuel Rego Casasnovas 2021-12-20 00:16:03 PST
Comment on attachment 447530 [details]
Patch

r=me, thanks for the fix.

This seems to be failing for this test: http://wpt.live/html/semantics/interactive-elements/the-dialog-element/top-layer-position.html
Should we add some kind of unit test to avoid breaking this again in the future?
Comment 3 Tim Nguyen (:ntim) 2021-12-20 02:13:56 PST
(In reply to Manuel Rego Casasnovas from comment #2)
> Comment on attachment 447530 [details]
> Patch
> 
> r=me, thanks for the fix.
> 
> This seems to be failing for this test:
> http://wpt.live/html/semantics/interactive-elements/the-dialog-element/top-
> layer-position.html
> Should we add some kind of unit test to avoid breaking this again in the
> future?

A test would be ideal, though this type of bug is also easily noticeable (I first noticed it importing the whole css/ directory).
Comment 4 EWS 2021-12-20 02:56:53 PST
Committed r287257 (245413@main): <https://commits.webkit.org/245413@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 447530 [details].
Comment 5 Radar WebKit Bug Importer 2021-12-20 02:57:16 PST
<rdar://problem/86716802>