Skip to content

Give some more guidance around import-w3c-tests#27

Open
annevk wants to merge 1 commit into
WebKit:mainfrom
annevk:patch-1
Open

Give some more guidance around import-w3c-tests#27
annevk wants to merge 1 commit into
WebKit:mainfrom
annevk:patch-1

Conversation

@annevk

@annevk annevk commented Mar 24, 2023

Copy link
Copy Markdown

Make it clearer how to checkout web-platform-tests/wpt locally and how to use -s.

@stwrt stwrt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add a description to your change on the pull request.

Comment thread docs/Infrastructure/ImportWPTTests.md Outdated
Make it clearer how to checkout web-platform-tests/wpt locally and how to use -s.
@stwrt

stwrt commented Apr 5, 2023

Copy link
Copy Markdown
Contributor

Still no description in the pull request 🥺.

The comment looks better 😀.

@annevk

annevk commented Apr 5, 2023

Copy link
Copy Markdown
Author

Oh sorry, I updated the commit message. I didn't realize we use the PR OP for something. Made that match the commit message body now.

Tools/Scripts/import-w3c-tests web-platorm-tests/folder_to_import_here -l -s path_to_web_platform_tests
```

Important: your checkout of WPT needs to be in a directory named `web-platform-tests` and the path passed to `-s` should not include that directory. I.e., if your checkout is at `~/web-platform-tests` you pass `-s ~`. `import-w3c-tests` will unfortunately not complain if you got this wrong.

@marcoscaceres marcoscaceres Apr 6, 2023

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe:

Suggested change
Important: your checkout of WPT needs to be in a directory named `web-platform-tests` and the path passed to `-s` should not include that directory. I.e., if your checkout is at `~/web-platform-tests` you pass `-s ~`. `import-w3c-tests` will unfortunately not complain if you got this wrong.
**Important**: your checkout of WPT needs to be in a directory named `web-platform-tests` and the path passed to `-s` should not include that directory. I.e., if your checkout is at `~/web-platform-tests` you pass `-s ~`. `import-w3c-tests`. Unfortunately `import-w3c-tests` does not currently report an error if it can't find the path.

We should file a bug on WebKit itself to fix this... like, locally my folder is "~/dev/wpt" and I really would prefer not to rename it to "web-platform-tests".

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You Only to do it once, and can get it to that name when you first clone. Maybe that should be in the instructions on how to clone instead

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get that, but when you clone directly from WPT it's also called "wpt" unless you explicitly alias it (i.e., this a webkit-ism... and not so great if you are just doing general "web work" or standards stuff)... maybe we should be asking for to create a symlink?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I support filing a bug on that to get that changed. It's indeed annoying.

@clopez

clopez commented May 11, 2023

Copy link
Copy Markdown
Contributor

Here is the old doc with info related to this https://trac.webkit.org/wiki/WebKitW3CTesting but not sure if is still 100% up-to-date.

Maybe there is some info from there that is worth adding here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants