Skip to content
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

Add mechanism to report warnings/anomalies during extraction #1111

Open
tidoust opened this issue Nov 9, 2022 · 0 comments
Open

Add mechanism to report warnings/anomalies during extraction #1111

tidoust opened this issue Nov 9, 2022 · 0 comments

Comments

@tidoust
Copy link
Member

tidoust commented Nov 9, 2022

Extractors in browserlib cannot report curation actions that they may perform in order not to generated invalid data. Only things they can do is:

  1. Report warnings and errors to the console. No one monitors these messages in production.
  2. Throw an exception and make the extraction fail. That's appropriate in some cases but generally not what you want.

One idea could be to make extractors return a more structured JSON response that e.g. includes "warnings" and "errors" properties, which could then be picked up by Strudy, test code and/or other tools to alert us that a spec has unexpected content that probably needs looking into.

Via #1110 (adding a curation step for dfns does not remove the need for such a mechanism)

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

No branches or pull requests

1 participant