Page MenuHomePhabricator

Phan is failing on CI with errors related to ParserOutput and ParsoidParser
Closed, ResolvedPublic

Description

Phan error log

20:05:57 includes/parser/ParserOutput.php:2443 UnusedPluginSuppression Plugin BuiltinSuppressionPlugin suppresses issue PhanUndeclaredMethod on this line but this suppression is unused or suppressed elsewhere
20:05:57 includes/parser/Parsoid/ParsoidParser.php:166 UnusedPluginSuppression Plugin BuiltinSuppressionPlugin suppresses issue PhanUndeclaredStaticMethod on this line but this suppression is unused or suppressed elsewhere

Impact

Seems to be affecting all patches on Gerrit (?)

Event Timeline

Change 943634 had a related patch set uploaded (by Umherirrender; author: Umherirrender):

[mediawiki/core@master] parser: Remove phan-suppression after parsoid 0.18.0-a20 update

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

Parsoid was updated - https://gerrit.wikimedia.org/r/c/mediawiki/vendor/+/943619

Affects all core patches for normal test and gate-and-submit

Umherirrender triaged this task as Unbreak Now! priority.Jul 31 2023, 8:13 PM
cscott claimed this task.
cscott subscribed.

Patch merged. Sorry about that. I wish I knew of a way to make phan happy with a backcompat patch both before and after the dependency is updated.

Change 943640 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/core@master] Remove Parsoid back-compat code

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

Change 943634 merged by jenkins-bot:

[mediawiki/core@master] parser: Remove phan-suppression after parsoid 0.18.0-a20 update

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

Change 943640 merged by jenkins-bot:

[mediawiki/core@master] Remove Parsoid back-compat code

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