Skip to content

Generate BSF CSVs both with and without /third_party tests#275

Merged
yulunwu2 merged 1 commit into
web-platform-tests:mainfrom
yulunwu2:skip-temporal-tests
May 22, 2026
Merged

Generate BSF CSVs both with and without /third_party tests#275
yulunwu2 merged 1 commit into
web-platform-tests:mainfrom
yulunwu2:skip-temporal-tests

Conversation

@yulunwu2
Copy link
Copy Markdown
Contributor

@yulunwu2 yulunwu2 commented May 13, 2026

Adds an --include-third-party flag to browser-specific-failures.js
(off by default), and extends build.sh to produce four CSVs per run:
the existing {stable,experimental}-browser-specific-failures.csv files
now exclude /third_party/ tests while the new -with-third-party.csv
will include them.

/third_party/ introduces Temporal tests as large number of individual tests instead of
using the subtest WPT convention. These test failures misrepresent the interoperability
of the web by causing the single browser failure graph to be completely dominated
by a feature not yet shipped by all browsers.

Charts including /third_party/ results will be added to wpt.fyi in a separate PR.

@yulunwu2 yulunwu2 requested a review from gsnedders May 13, 2026 22:19
@yulunwu2 yulunwu2 force-pushed the skip-temporal-tests branch from 11377ff to ac68699 Compare May 14, 2026 16:05
@jgraham
Copy link
Copy Markdown

jgraham commented May 14, 2026

No objection to landing this change. However I don't think that continuing to show a metric that's known to be broken is a good long term approach.

@yulunwu2 yulunwu2 requested review from foolip and jgraham May 14, 2026 16:50
@yulunwu2
Copy link
Copy Markdown
Contributor Author

@jgraham @foolip could you take a look at this change? Thank you!

@yulunwu2 yulunwu2 requested a review from dandclark May 14, 2026 16:51
@stubbornella
Copy link
Copy Markdown

@jgraham we could also move/remove the graph. @yulunwu2 created a separate PR for that option.
web-platform-tests/wpt.fyi#4906

@yulunwu2
Copy link
Copy Markdown
Contributor Author

@jgraham thank you for your support on this matter! If you don't find this objectionable to land in the interim as we figure what we want to do regarding the BSF graph on the front page, could I get a r+1?

@foolip
Copy link
Copy Markdown
Member

foolip commented May 18, 2026

I think that the current BSF metric should be supplemented with more different views and ways of weighing the data. IIUC Apple is working on a proposal for BSF updates and a wpt.fyi landing page, which I've wanted for a long time and very much look forward to.

In the spirit of making as much data as possible available, I'd like suggest a tweak to this PR. Rather than simply excluding Test262, instead compute the metric with and without third_party/. Then let a checkbox (default unchecked) control whether third party test suites are included. Later one we might be able to scrap this in favor of filtering by spec/WG/feature/etc..

I'd also like @dandclark to review this PR before we go ahead.

@yulunwu2 yulunwu2 force-pushed the skip-temporal-tests branch from ac68699 to bfb28f6 Compare May 19, 2026 21:24
@yulunwu2 yulunwu2 changed the title Skip /third_party/test262/ when computing browser-specific failures Generate BSF CSVs both with and without /third_party tests May 19, 2026
@yulunwu2 yulunwu2 force-pushed the skip-temporal-tests branch 2 times, most recently from f83c31e to 636ae4d Compare May 19, 2026 21:36
Copy link
Copy Markdown
Member

@gsnedders gsnedders left a comment

Choose a reason for hiding this comment

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

It would be good to add some tests to test/browser-specific.js for the flag, verify it's doing the right thing — make sure it does exclude /third_party/test.html, and that it doesn't exclude /foo/third_party/test.html, etc.

Comment thread browser-specific-failures.js Outdated
Comment thread build.sh Outdated
Comment thread browser-specific-failures.js Outdated
@yulunwu2 yulunwu2 force-pushed the skip-temporal-tests branch 2 times, most recently from efa77fe to 7d501fe Compare May 20, 2026 05:49
Adds an --include-third-party flag to browser-specific-failures.js
(off by default), and extends build.sh to produce four CSVs per run:
the existing {stable,experimental}-browser-specific-failures.csv files
will be updated to exclude /third_party while the new -with-third-party.csv
variants will include them.

This will let wpt.fyi expose a UI toggle to switch between different BSF chart views.
wpt.fyi will be updated in a separate change to include the third_party toggle.

/third_party/ introduces Temporal tests as individual tests instead of using the
subtest WPT convention. These test failures misrepresent the overall interoperability
of the web by causing the single browser failure graph to be completely dominated
by a feature not yet shipped by all browsers.
@yulunwu2 yulunwu2 force-pushed the skip-temporal-tests branch from 7d501fe to dace0a6 Compare May 20, 2026 05:54
@yulunwu2 yulunwu2 requested a review from gsnedders May 20, 2026 07:24
@yulunwu2
Copy link
Copy Markdown
Contributor Author

Screenshot 2026-05-21 at 12 43 57 PM

@yulunwu2
Copy link
Copy Markdown
Contributor Author

adding screenshot for proposed UI changes for wpt.fyi

@foolip
Copy link
Copy Markdown
Member

foolip commented May 21, 2026

Thanks for the preview, @yulunwu2! It looks like this will make the component taller as the text is now taller than the graph itself. I think we can omit the "By default" paragraph. If that's not enough, then also omit the "Last updated WPT revision", or merge it into a single line.

For the new toggle, how about "WPT" and "WPT + Test262" as the options instead of first/third party? That'll be accurate at least while third_party is just Test262, hopefully long enough to get the next iteration of graphs done.

And if you have a wpt.fyi PR I can review there instead :)

Copy link
Copy Markdown
Member

@foolip foolip left a comment

Choose a reason for hiding this comment

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

This LGTM together with a wpt.fyi change along the lines that @yulunwu2 showed in the screenshot. I've also asked @DanielRyanSmith to review this.

@yulunwu2
Copy link
Copy Markdown
Contributor Author

@foolip Thanks for reviewing this change and your comments on the wpt.fyi change!

I've removed the third_party paragraph and updated the toggle name.

The PR is here:

web-platform-tests/wpt.fyi#4921

Screenshot 2026-05-21 at 2 53 32 PM

@yulunwu2
Copy link
Copy Markdown
Contributor Author

@jgraham could I get a +1 for this PR?

Copy link
Copy Markdown
Contributor

@DanielRyanSmith DanielRyanSmith left a comment

Choose a reason for hiding this comment

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

Sorry for the delay here. The logic here looks good to me!

Copy link
Copy Markdown

@jgraham jgraham left a comment

Choose a reason for hiding this comment

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

Approved, but reiterating for future reference that I don't think continuing to publish this metric is a good long term approach.

@yulunwu2 yulunwu2 merged commit da8fe49 into web-platform-tests:main May 22, 2026
1 check passed
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.

7 participants