RESOLVED FIXED 167448
Improve W3C importer command line options
https://bugs.webkit.org/show_bug.cgi?id=167448
Summary Improve W3C importer command line options
youenn fablet
Reported 2017-01-25 21:19:19 PST
Importer command line options are confusing to newcomers.
Attachments
Patch (6.74 KB, patch)
2017-01-25 21:24 PST, youenn fablet
no flags
Patch (10.04 KB, patch)
2017-01-26 07:51 PST, youenn fablet
no flags
Patch for landing (11.40 KB, patch)
2017-02-08 21:51 PST, youenn fablet
no flags
youenn fablet
Comment 1 2017-01-25 21:24:59 PST
youenn fablet
Comment 2 2017-01-25 21:26:20 PST
Patch transforms: import-w3c-tests -t web-platform-tests/webrtc my-path-to-repository into: import-w3c-tests web-platform-tests/webrtc -s my-path-to-repository
Joseph Pecoraro
Comment 3 2017-01-26 01:01:35 PST
Comment on attachment 299792 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=299792&action=review > Tools/Scripts/webkitpy/w3c/test_importer.py:119 > - parser = argparse.ArgumentParser(prog='import-w3c-tests [w3c_test_source_directory]') > + parser = argparse.ArgumentParser(prog='import-w3c-tests [web-platform-tests/test-suite-name...]') More than anything, import-w3c-tests needs example commands. Otherwise I'm just going to forgot how to use it anyways. A section of examples would go a long way! Thanks for improve this!
Joseph Pecoraro
Comment 4 2017-01-26 01:02:44 PST
Comment on attachment 299792 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=299792&action=review >> Tools/Scripts/webkitpy/w3c/test_importer.py:119 >> + parser = argparse.ArgumentParser(prog='import-w3c-tests [web-platform-tests/test-suite-name...]') > > More than anything, import-w3c-tests needs example commands. Otherwise I'm just going to forgot how to use it anyways. > > A section of examples would go a long way! Thanks for improve this! Err, I meant `import-w3c-tests --help` should have an examples section. Your previous bugzilla comment gives exactly what I would want to see in the help =)
youenn fablet
Comment 5 2017-01-26 07:51:17 PST
youenn fablet
Comment 6 2017-01-26 07:52:15 PST
(In reply to comment #4) > Comment on attachment 299792 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=299792&action=review > > >> Tools/Scripts/webkitpy/w3c/test_importer.py:119 > >> + parser = argparse.ArgumentParser(prog='import-w3c-tests [web-platform-tests/test-suite-name...]') > > > > More than anything, import-w3c-tests needs example commands. Otherwise I'm just going to forgot how to use it anyways. > > > > A section of examples would go a long way! Thanks for improve this! > > Err, I meant `import-w3c-tests --help` should have an examples section. Your > previous bugzilla comment gives exactly what I would want to see in the help > =) I added some examples. I also made link conversion off by default and disabled git module generation since bots can no longer get them properly.
youenn fablet
Comment 7 2017-02-06 22:27:32 PST
Ping review
Ryosuke Niwa
Comment 8 2017-02-08 17:04:22 PST
Comment on attachment 299808 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=299808&action=review > Tools/Scripts/webkitpy/w3c/test_importer.py:128 > + parser.add_argument('-l', '--links-conversion', dest='convert_test_harness_links', action='store_true', default=False, > + help='Change links (testharness js or css e.g.). This option only applies when providing a source directory. If this option is set, links are converted to point to WebKit testharness files. When tests are downloaded from W3C repository, links are converted for CSS tests and remain unchanged for WPT tests') Given the webkit-dev discussion, we probably don't want to flip this default but rather we should fix the link conversion so that it always works (probably in a separate patch).
youenn fablet
Comment 9 2017-02-08 21:51:23 PST
Created attachment 301017 [details] Patch for landing
youenn fablet
Comment 10 2017-02-09 07:37:46 PST
(In reply to comment #8) > Comment on attachment 299808 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=299808&action=review > > > Tools/Scripts/webkitpy/w3c/test_importer.py:128 > > + parser.add_argument('-l', '--links-conversion', dest='convert_test_harness_links', action='store_true', default=False, > > + help='Change links (testharness js or css e.g.). This option only applies when providing a source directory. If this option is set, links are converted to point to WebKit testharness files. When tests are downloaded from W3C repository, links are converted for CSS tests and remain unchanged for WPT tests') > > Given the webkit-dev discussion, we probably don't want to flip this default > but rather we should fix the link conversion so that it always works > (probably in a separate patch). I left the option unchanged for now.
WebKit Commit Bot
Comment 11 2017-02-09 08:04:38 PST
Comment on attachment 301017 [details] Patch for landing Clearing flags on attachment: 301017 Committed r211954: <http://trac.webkit.org/changeset/211954>
WebKit Commit Bot
Comment 12 2017-02-09 08:04:43 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.