Re: [webkit-dev] WPT first test policy proposal

2021-11-23 Thread Ryosuke Niwa via webkit-dev
On Fri, Nov 19, 2021 at 1:06 PM Tim Nguyen via webkit-dev <
webkit-dev@lists.webkit.org> wrote:

> Hello everyone,
>
> I would like to start a discussion on a policy to enforce WPT usage as a
> first choice, that would be enforced via check-webkit-style on Changelog
> files.
>
> *Why use WPT?*
>
> Contributing to WPT has many benefits:
>
>- interoperability/compatibility issues with WPT we write may be
>detected by other browser vendors and we would get faster feedback and
>turnaround to fix them
>- creates/encourages discussion in case of disagreement with other
>browser vendors
>- WebKit greatly benefits from WPT coverage, it is time to provide our
>own coverage to other browsers
>- Improves WebKit’s score generally for WPT (which has tests mostly
>contributed by Chromium, Firefox at the moment)
>
>
> *Are there reasons to not use WPT?*
>
> Common reasons for not writing WPT that have been mentioned are:
>
>- "WPTs are less pleasant to write.”
>
> This is not true imo, the WPT harness is documented (
> https://web-platform-tests.org/writing-tests/index.html), unlike WebKit
> internals, making it easier for new contributors to figure out things.
>

This is absolutely still the case for me. WPT harness require so much
boilerplate even today.

I absolutely hate having to describe what I'm testing when the test code
speaks for itself. This is akin to our WebKit coding style of not adding
comments that repeat the code.

I also absolutely hate having to start a HTTP server just to test some DOM
Node API. There is absolutely no reason why we need to do that.

Also, why do we need to call setup or done just to avoid a single test()
function call? The harness should be automatically detecting that.

I can go on and on about all other issues I have with WPT.

>
>- “When you actually move a regression test to WPT proper, commit
>history is lost, and you don't know what kind of user facing problem it's
>preventing any more.”
>
> Use `` with a reference to the webkit bug.
> Ensure you actually export the WPT and merge the WPT PR as well!
>

This is yet another thing we have to do. We shouldn't be making writing
WebKit tests harder.

*Here is my current proposal:*
>
> Every LayoutTests/ changelog adding new test files would contain:
>

I'm opposed to introducing a policy like this in general. WebKit project
avoids adding new policies wherever possible.

To me, we make the experience of writing WPT tests so much better & so much
more pleasant that people would prefer writing them over js-test.js tests
on their own, not forced upon by a policy.

- R. Niwa
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Running the GTK port on macOS with Docker

2021-11-23 Thread Philippe Normand via webkit-dev
Hi,

I found out that disk I/O is terribly slow on Docker for macOS. I had to
give up on my build after several hours because of that. So I tried
"Mutagen", wasn't able to make it work, and kind of gave up and moved to
the next thing on the pile of things to do... 

Today I just found one possible workaround, involving docker-sync. I'll
give this a try and report back.

Philippe

On 2021-11-23 06:02, Jean-Yves Avenard wrote:
> Hi
> 
> How is that effort going ?
> 
> Having a way to build the GTK port today would have saved me a lot of
> time. Instead I had to keep uploading patches to bugzilla to find
> compilation errors.
> 
> Jean-Yves
> 
>> On 15 Oct 2021, at 10:33 pm, Philippe Normand  wrote:
>>
>> On Fri, 2021-10-15 at 10:04 +1100, Jean-Yves Avenard wrote:
>>> Hi.
>>>
>>> Personally, I would love a way to quickly build for GTK on my Mac, as
>>> for now I had to rely on pushing to the EWS, wait for compilation
>>> errors and fix them as I went.
>>>
>>> So something running in docker using my local tree would be ideal.
>>>
>>
>> Alright, thanks for answering Jean-Yves :) I'll clean-up the experiment
>> a bit, document it and ping you for testing when it's ready.
>>
>> Philippe
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev