web-platform-tests / rfcs

web-platform-tests RFCs
75 stars 63 forks source link

Conditional requirements support in wptrunner #96

Closed bashi closed 2 years ago

bashi commented 2 years ago

Hi web-platform-tests,

I have a proposal to support conditional requirements in wptrunner. Context: https://github.com/web-platform-tests/wpt/pull/30570

bashi commented 2 years ago

@jgraham, @foolip What do you think?

@yutakahirano, @nidhijaju: FYI

annevk commented 2 years ago

It would help me if this had a more detailed explanation as to why this is a good thing. It says "there is a demand", but I don't see the demand being explained.

bashi commented 2 years ago

Thank you for feedback!

Does that mean the following example needs more explanations to clarify the benefits (not installing may-not-be-needed dependencies unconditionally)? Or are you suggesting that I should add alternatives considered (e.g. installing potential dependencies unconditionally) then discuss pros and cons (e.g. keeping wptrunner simple vs making wptrunner flexible for extension)?

annevk commented 2 years ago

I was thinking about the former, but both sounds great. In particular without such information my bias would be toward making it easy to run all tests in all browsers.

bashi commented 2 years ago

Thank you for the clarification. I updated the RFC and included these points.

+1 to making it easy to run all tests in all browsers. I'm happy to withdraw this proposal if adding aioquic dependency unconditionally makes sense :)

jgraham commented 2 years ago

There are a couple of things to consider here:

bashi commented 2 years ago

Hi, any concerns on this proposal? If there is no substantive disagreement on this, I'd like to request merging this PR since 1 week has passed.