jayvdb created this task. jayvdb added subscribers: greg, pywikipedia-bugs, jayvdb, Aklapper. jayvdb added projects: Pywikibot-tests, pywikibot-core.
TASK DESCRIPTION If loading the initialisation of ParamInfo was successful, some of the core API modules are working correctly. If then loading a batch of modules causes a server error, the paraminfo class could retry the batch by loading paraminfo for one module at a time, and report which module fails.
Another option is to avoid loading non-core modules, or avoid loading all modules to determine prefixes.
This should make pywikibot more resilient for when defective modules deployed to a wiki, and result in quicker & better errors reported to WMF ops / release managers.
(Currently WMF test and beta wikis have such a defective module : T100775 , so fixing this quickly may be necessary in case Wikimedia dont revert / fix the problem)
TASK DETAIL https://phabricator.wikimedia.org/T100779
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, greg, pywikipedia-bugs
XZise added a subscriber: XZise. XZise added a comment.
The problem would be that other parts usually rely on the fact that after the `fetch` call all modules are now cached.
TASK DETAIL https://phabricator.wikimedia.org/T100779
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: XZise, Aklapper, jayvdb, greg, pywikipedia-bugs
greg added a comment.
Given https://phabricator.wikimedia.org/T100775 is fixed, I think there's nothing else for me here (this task is for a pywikibot-specific issue, yes?), so unusbscribing. Thanks for the heads up though.
TASK DETAIL https://phabricator.wikimedia.org/T100779
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: greg Cc: XZise, Aklapper, jayvdb, greg, pywikipedia-bugs
greg removed a subscriber: greg.
TASK DETAIL https://phabricator.wikimedia.org/T100779
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: greg Cc: XZise, Aklapper, jayvdb, pywikipedia-bugs
XZise added a comment.
Okay if we are going to change something for this I think the most sensible way would be to have a flag in fetch() to ignore failures. And whenever a batch is executed and it's not important that all modules are cached and it “could“ skip some that it skips problematic.
TASK DETAIL https://phabricator.wikimedia.org/T100779
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise Cc: XZise, Aklapper, jayvdb, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org