Page MenuHomePhabricator

Some revscoring data utilities should report warnings at the end, rather than with console loglines
Open, LowPublic

Description

For example, autolabel might emit:

mwapi.errors.APIError: badid_rvstartid: No revision was found for parameter "rvstartid". -- See https://hu.wikipedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.

Instead, we should increment a "missing revision" counter, and report the total number at the end of the run.

Event Timeline

I'm thinking we should print a table at the end of merge_labels that looks like this:

             ==========================================
             | needs_review=true | needs_review=false |
             +-------------------+--------------------+
| has labels |              2000 |                 10 |
| partial    |                25 |                  0 |
| no labels  |                 5 |             17072  |
awight renamed this task from Report revscoring utilities errors in a summary at the end of the run, rather than inline warnings to Some revscoring data utilities should report warnings at the end, rather than with console loglines.Apr 3 2018, 7:46 PM
awight updated the task description. (Show Details)