-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Utilities for updating BCD based on test results #18514
Comments
One small detail I think will be important in practice is to only allow one claim per BCD entry. If we have some contradictory test results for a BCD entry, it should be the responsibility of the test infra to collapse that into a single result. This is currently done in |
I'm not sure that's workable in practice: that works if the results come from a single test run, but isn't necessarily going to be true if you're combining multiple JSON files from different runs. A clear example here would be something like WebGL, where some of the extensions rely on hardware support, hence getting different test results for the same item for the same browser is pretty likely, and it would be nice for the script to be able to handle this in some meaningful way. |
Closing this issue since the decision was to keep the script inside of the collector instead of moving it to BCD. |
This is a continuation of #6585, with a concrete proposal.
Background: https://github.com/foolip/mdn-bcd-collector generates tests, runs them, puts results in a special JSON format, and then updates BCD based on the results from many browser releases.
Updating BCD is done in the
update-bcd
script. This is in itself a surprisingly difficult problem, and the script doesn't deal with all edge cases, such as when test results indicate that a feature was added, removed, and then added back again. See foolip/mdn-bcd-collector#571 for more such cases. Additionally, this code needs to stay in sync with any changes to schema or relevant guidelines in BCD.Proposal: To improve the quality and maintainability of this aspect, define a schema for test results, and add scripts to BCD itself for updating BCD based on test results. In other words:
@Elchi3 @queengooborg WDYT?
The text was updated successfully, but these errors were encountered: