jayvdb added a comment.
A quick update: https://gerrit.wikimedia.org/r/#/c/173630/ improved the efficiency of the query generator underneath preloading , so much that it actually removed (hid) some of the preloading bugs.
test_preload_templates is consistently passing on en.wp, test.wd, fr.wikt, however it occasionally fails on ar.wp; usually all platforms fail together. e.g. https://travis-ci.org/wikimedia/pywikibot-core/builds/42379426 https://travis-ci.org/wikimedia/pywikibot-core/builds/42379426
I'm not able to deduce what might be causing those irregular failures; my only (and probably wrong) guess is that the test is finding pages on ar.wp that dont have any templates.
TASK DETAIL https://phabricator.wikimedia.org/T75461
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
To: jayvdb Cc: pywikipedia-bugs, JAnD, jayvdb, Mpaa, GWicke