Page MenuHomePhabricator

Check for MediaWiki/PHP (deprecation) warnings/errors on pages
Open, Needs TriagePublicSpike

Description

Current Situation:

  • MediaWiki tends to spit out warnings into the DOM, this happens for example in case of API deprecation (recent example: T350934).

Goal:

  • Automatically check during test suite run relevant pages for deprecation and/or other warnings.
  • Define on which pages to check, maybe all pages we touch anyway?

Acceptance Criteria:

  • A PHP warning/error message print somewhere in the DOM on relavant (to be defined) pages results in a test suite failure.
  • A MediaWiki warning/error message print somewhere in the DOM on relavant (to be defined) pages results in a test suite failure.

[optional] Notes:

  • none

Event Timeline

roti_WMDE renamed this task from Check for (deprecation) warnings to Check for MediaWiki/PHP (deprecation) warnings/errors on pages.Nov 16 2023, 12:25 PM
roti_WMDE updated the task description. (Show Details)

Note as of https://github.com/wmde/wikibase-release-pipeline/pull/525 all console warnings and errors will appear in the test run logs in the test/suites/SUITE_NAME/results/wdio-0-*-browser.logs. Commented warnings or errors within the HTML file are a different issue, and what I read this ticket to be potentially about, but regardless this seemed worth mentioning here.