WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
140934
Import W3C web platform tests infrastructure
https://bugs.webkit.org/show_bug.cgi?id=140934
Summary
Import W3C web platform tests infrastructure
youenn fablet
Reported
2015-01-27 05:34:29 PST
Now that wptserve can be activated within WebKit test infrastructure, we should populate LayoutTests/imported/w3c/web-platform-tests with wptserve implementation and related infrastructure folders.
Attachments
Initial WPT infrastructure with domparsing tests
(5.67 MB, patch)
2015-01-27 05:48 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews103 for mac-mavericks
(544.51 KB, application/zip)
2015-01-27 07:03 PST
,
Build Bot
no flags
Details
Trying to fix wpt path
(5.67 MB, patch)
2015-01-27 14:25 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-mavericks
(526.33 KB, application/zip)
2015-01-27 15:38 PST
,
Build Bot
no flags
Details
Adding further logs
(5.67 MB, patch)
2015-01-28 04:03 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-mavericks
(566.93 KB, application/zip)
2015-01-28 05:44 PST
,
Build Bot
no flags
Details
Adding further logs
(5.67 MB, patch)
2015-01-28 06:29 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews103 for mac-mavericks
(540.12 KB, application/zip)
2015-01-28 07:49 PST
,
Build Bot
no flags
Details
Checking __init__.py files
(5.67 MB, patch)
2015-01-28 10:48 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Cleaned-up version
(5.67 MB, patch)
2015-01-29 03:55 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Downloading web platform tests python modules on the fly
(480.68 KB, patch)
2015-01-29 15:21 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Downloading WPT python modules
(627.35 KB, patch)
2015-01-29 22:52 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Adding .gitignore for downloaded modules
(627.93 KB, patch)
2015-01-30 00:35 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Adding .gitignore for downloaded modules
(627.94 KB, patch)
2015-01-30 00:53 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Patch for landing
(626.61 KB, patch)
2015-01-30 13:16 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Fixing style
(627.75 KB, patch)
2015-01-30 23:57 PST
,
youenn fablet
no flags
Details
Formatted Diff
Diff
Show Obsolete
(11)
View All
Add attachment
proposed patch, testcase, etc.
youenn fablet
Comment 1
2015-01-27 05:48:13 PST
Created
attachment 245439
[details]
Initial WPT infrastructure with domparsing tests
Build Bot
Comment 2
2015-01-27 07:03:41 PST
Comment on
attachment 245439
[details]
Initial WPT infrastructure with domparsing tests
Attachment 245439
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5906577227776000
New failing tests: imported/w3c/web-platform-tests/domparsing/DOMParser-parseFromString-html.html imported/w3c/web-platform-tests/domparsing/insert-adjacent.html
Build Bot
Comment 3
2015-01-27 07:03:44 PST
Created
attachment 245443
[details]
Archive of layout-test-results from ews103 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-mavericks Platform: Mac OS X 10.9.5
youenn fablet
Comment 4
2015-01-27 08:29:06 PST
(In reply to
comment #3
)
> Created
attachment 245443
[details]
> Archive of layout-test-results from ews103 for mac-mavericks > > The attached test failures were seen while running run-webkit-tests on the > mac-ews. > Bot: ews103 Port: mac-mavericks Platform: Mac OS X 10.9.5
WPT server seems to launch correctly on Mac-WK2 but not Mac WK1 bots. The trace is the following: Traceback (most recent call last): File "/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/web_platform_test_launcher.py", line 14, in <module> import serve as WebPlatformTestServer File "./serve.py", line 16, in <module> from tools.scripts import _env ImportError: No module named tools.scripts I am not sure of the exact solution.
Ryosuke Niwa
Comment 5
2015-01-27 13:11:36 PST
Maybe due to different versions of Python being used?
youenn fablet
Comment 6
2015-01-27 14:25:08 PST
Created
attachment 245470
[details]
Trying to fix wpt path
Build Bot
Comment 7
2015-01-27 15:38:57 PST
Comment on
attachment 245470
[details]
Trying to fix wpt path
Attachment 245470
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/4989131411161088
New failing tests: imported/w3c/web-platform-tests/domparsing/DOMParser-parseFromString-html.html imported/w3c/web-platform-tests/domparsing/insert-adjacent.html
Build Bot
Comment 8
2015-01-27 15:38:59 PST
Created
attachment 245486
[details]
Archive of layout-test-results from ews101 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-mavericks Platform: Mac OS X 10.9.5
youenn fablet
Comment 9
2015-01-28 04:03:27 PST
Created
attachment 245531
[details]
Adding further logs
Build Bot
Comment 10
2015-01-28 05:44:40 PST
Comment on
attachment 245531
[details]
Adding further logs
Attachment 245531
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5311268990746624
New failing tests: imported/w3c/web-platform-tests/domparsing/DOMParser-parseFromString-html.html imported/w3c/web-platform-tests/domparsing/insert-adjacent.html
Build Bot
Comment 11
2015-01-28 05:44:43 PST
Created
attachment 245533
[details]
Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
youenn fablet
Comment 12
2015-01-28 06:29:00 PST
Created
attachment 245537
[details]
Adding further logs
Build Bot
Comment 13
2015-01-28 07:49:22 PST
Comment on
attachment 245537
[details]
Adding further logs
Attachment 245537
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/4780999443480576
New failing tests: imported/w3c/web-platform-tests/domparsing/DOMParser-parseFromString-html.html imported/w3c/web-platform-tests/domparsing/insert-adjacent.html
Build Bot
Comment 14
2015-01-28 07:49:25 PST
Created
attachment 245543
[details]
Archive of layout-test-results from ews103 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-mavericks Platform: Mac OS X 10.9.5
youenn fablet
Comment 15
2015-01-28 09:46:58 PST
(In reply to
comment #14
)
> Created
attachment 245543
[details]
> Archive of layout-test-results from ews103 for mac-mavericks > > The attached test failures were seen while running run-webkit-tests on the > mac-ews. > Bot: ews103 Port: mac-mavericks Platform: Mac OS X 10.9.5
According the WPT log below, the LayoutTests/imported/w3c/web-platform-tests/tools/__init__.py is missing for the Mac WK1 bot, hence the inability to import wpt modules. Could it be that empty files are not created when applying the patch for this bot? WPT log is: DEBUG:web-platform-test-launcher:sys.path is: ['/Volumes/Data/EWS/WebKit/LayoutTests/imported/w3c/web-platform-tests', '/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/layout_tests/servers', '/Volumes/Data/EWS/WebKit/Tools/Scripts', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC', '/Library/Python/2.7/site-packages'] DEBUG:web-platform-test-launcher:files in cwd are:['_certs', 'common', 'config.default.json', 'config.json', 'domparsing', 'fonts', 'images', 'resources', 'serve.py', 'serve.pyc', 'tools', 'w3c-import.log'] DEBUG:web-platform-test-launcher:files in cwd/tools are:['html5lib', 'pywebsocket', 'runner', 'scripts', 'six', 'sslutils', 'w3c-import.log', 'webdriver', 'wptserve'] Traceback (most recent call last): File "/Volumes/Data/EWS/WebKit/Tools/Scripts/webkitpy/layout_tests/servers/web_platform_test_launcher.py", line 18, in <module> logger.debug(imp.find_module('tools')) ImportError: No module named tools
youenn fablet
Comment 16
2015-01-28 10:48:46 PST
Created
attachment 245553
[details]
Checking __init__.py files
youenn fablet
Comment 17
2015-01-29 03:55:13 PST
Created
attachment 245615
[details]
Cleaned-up version
youenn fablet
Comment 18
2015-01-29 05:29:33 PST
(In reply to
comment #17
)
> Created
attachment 245615
[details]
> Cleaned-up version
See
https://bugs.webkit.org/show_bug.cgi?id=141030
for a potentially cleaner handling of empty __init__.py files
Ryosuke Niwa
Comment 19
2015-01-29 09:29:24 PST
!? Did you accidentally added all the files in the imported directory? The patch is 5.7MB.
youenn fablet
Comment 20
2015-01-29 10:24:14 PST
(In reply to
comment #19
)
> !? Did you accidentally added all the files in the imported directory? The > patch is 5.7MB.
No, I just use the import script that copies the whole tools folder. It notably includes full html5lib and pywebsocket modules files. If size is an issue, we could probably discard the tools/html5lib/html5lib/tests internal tests (2.5 MB) and the pywebsocket/src/tests internal tests (400Kb). We could be more drastic by removing all modules except than wptserve, pywebsocket and sslutils, which would reduce the patch size to 1 MB probably. Removing these modules may result in future unexpected test failures though.
youenn fablet
Comment 21
2015-01-29 11:03:43 PST
(In reply to
comment #20
)
> (In reply to
comment #19
) > > !? Did you accidentally added all the files in the imported directory? The > > patch is 5.7MB. > > No, I just use the import script that copies the whole tools folder. > It notably includes full html5lib and pywebsocket modules files. > > If size is an issue, we could probably discard the > tools/html5lib/html5lib/tests internal tests (2.5 MB) and the > pywebsocket/src/tests internal tests (400Kb). > > We could be more drastic by removing all modules except than wptserve, > pywebsocket and sslutils, which would reduce the patch size to 1 MB probably. > Removing these modules may result in future unexpected test failures though.
Or we auto-install the different tools as we do for thirdparty python modules before launching web-platform-test-server. Some more scripting, but that would leave webkit repo slim.
Ryosuke Niwa
Comment 22
2015-01-29 12:22:10 PST
(In reply to
comment #21
)
> (In reply to
comment #20
) > > (In reply to
comment #19
) > > > !? Did you accidentally added all the files in the imported directory? The > > > patch is 5.7MB. > > > > No, I just use the import script that copies the whole tools folder. > > It notably includes full html5lib and pywebsocket modules files. > > > > If size is an issue, we could probably discard the > > tools/html5lib/html5lib/tests internal tests (2.5 MB) and the > > pywebsocket/src/tests internal tests (400Kb). > > > > We could be more drastic by removing all modules except than wptserve, > > pywebsocket and sslutils, which would reduce the patch size to 1 MB probably. > > Removing these modules may result in future unexpected test failures though. > > Or we auto-install the different tools as we do for thirdparty python > modules before launching web-platform-test-server. > Some more scripting, but that would leave webkit repo slim.
Yeah, can we do that instead?
youenn fablet
Comment 23
2015-01-29 15:21:08 PST
Created
attachment 245661
[details]
Downloading web platform tests python modules on the fly
youenn fablet
Comment 24
2015-01-29 22:52:21 PST
Created
attachment 245697
[details]
Downloading WPT python modules
youenn fablet
Comment 25
2015-01-30 00:35:03 PST
Created
attachment 245700
[details]
Adding .gitignore for downloaded modules
youenn fablet
Comment 26
2015-01-30 00:53:50 PST
Created
attachment 245703
[details]
Adding .gitignore for downloaded modules
youenn fablet
Comment 27
2015-01-30 01:34:50 PST
Size is reduced to 600 ko, hope this is small enough. 300 ko are due to tools/runner. It is called by wpt server when some specific URLs are hit. I doubt that this will ever happen in WebKit layout test context. Note also that the _certs folder can be dynamically generated by wptserver. It seems safer to have a repeatable test set-up hence why it is checked in.
Ryosuke Niwa
Comment 28
2015-01-30 10:12:25 PST
Comment on
attachment 245703
[details]
Adding .gitignore for downloaded modules View in context:
https://bugs.webkit.org/attachment.cgi?id=245703&action=review
r=me for webkitpy change and rs=me for the import.
> Tools/Scripts/webkitpy/layout_tests/servers/web_platform_test_launcher.py:38 > +
Superflous change.
> LayoutTests/TestExpectations:234 > +imported/w3c/web-platform-tests/domparsing/DOMParser-parseFromString-html.html [ Pass ] # Some assertions failing
Shouldn't this have a failing expectation then?
youenn fablet
Comment 29
2015-01-30 10:28:49 PST
(In reply to
comment #28
)
> Comment on
attachment 245703
[details]
> Adding .gitignore for downloaded modules > > LayoutTests/TestExpectations:234 > > +imported/w3c/web-platform-tests/domparsing/DOMParser-parseFromString-html.html [ Pass ] # Some assertions failing > > Shouldn't this have a failing expectation then?
This line just reminds that the expected.txt contains some FAIL assertions lines. It does not need to be there. It serves more as a reminder that someone should investigate the inconsistency between WebKit and the test as TestImport file will do for failed tests. It may also be useful when updating the revision of the test suite.
youenn fablet
Comment 30
2015-01-30 13:16:46 PST
Created
attachment 245736
[details]
Patch for landing
WebKit Commit Bot
Comment 31
2015-01-30 15:29:53 PST
Attachment 245736
[details]
did not pass style-queue: ERROR: LayoutTests/TestExpectations:235: Path does not exist. [test/expectations] [5] Total errors found: 1 in 93 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 32
2015-01-30 16:57:18 PST
Comment on
attachment 245736
[details]
Patch for landing Rejecting
attachment 245736
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-02', 'land-attachment', '--force-clean', '--non-interactive', '--parent-command=commit-queue', 245736, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: 19ba9e139caa3210
r179424
= 7ceb91db1a07084c86cbd7997b85782e66ab8554
r179425
= e37d84c5b7056e35db5e224e50861aee8811eead
r179426
= fff116d7a3b48251caa7bf0a2fa92e847c39865d Done rebuilding .git/svn/refs/remotes/origin/master/.rev_map.268f45cc-cd09-0410-ab3c-d52691b4dbfc First, rewinding head to replay your work on top of it... Fast-forwarded master to refs/remotes/origin/master. ERROR: LayoutTests/TestExpectations:235: Path does not exist. [test/expectations] [5] Total errors found: 1 in 1 files Full output:
http://webkit-queues.appspot.com/results/5570474293592064
youenn fablet
Comment 33
2015-01-30 23:57:19 PST
Created
attachment 245776
[details]
Fixing style
WebKit Commit Bot
Comment 34
2015-01-31 01:46:40 PST
Comment on
attachment 245776
[details]
Fixing style Clearing flags on attachment: 245776 Committed
r179439
: <
http://trac.webkit.org/changeset/179439
>
WebKit Commit Bot
Comment 35
2015-01-31 01:46:44 PST
All reviewed patches have been landed. Closing bug.
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