Page MenuHomePhabricator

Track in the Citoid extension how often PDF lookups succeed
Closed, ResolvedPublic

Description

Context

To be able to track any improvements to the PDF handling in the Citoid service, and test assumptions we will need further instrumentation in VE.

Scope

It's hard to tell if an URL really leads to a PDF. The only way to be sure is sending a request to the source and e.g. check the content type in the header. In a lot of cases this is not practical though, because bot protection mechanisms can block these requests leading to useless results. See T433824: Detect early on if an URL would lead to a PDF for logging.

The implication of that, that we can only work with "best guesses" what's a PDF source. In the scraper we're using "links that end with .pdf" as best guess. See T428578: Scraper: count refs which include PDF URLs

So "PDF URL" refers to "an URL ending with .pdf in the following definition of the metrics.

Metrics
  • Count how often a lookup of a PDF source fails
  • Count how often a lookup of a PDF source succeeds
Outcome
actionfeaturedescription
automatic-generate-pdfsource-failcitoidAutomatic citation generation with "PDF source" failed
automatic-generate-pdfsource-build-successcitoidAutomatic citation generation with "PDF source" succeeded and we show results to choose from
automatic-pdfsource-insertcitoidAutomatic citation generation with "PDF source" succeeded and a Citation was inserted

Event Timeline

Change #1325973 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/Citoid@master] Track how often pdf source lookups fail / succeed

https://gerrit.wikimedia.org/r/1325973

Change #1325973 merged by jenkins-bot:

[mediawiki/extensions/Citoid@master] Track how often pdf source lookups fail / succeed

https://gerrit.wikimedia.org/r/1325973