jayvdb created this task. jayvdb added a subscriber: jayvdb. jayvdb added a project: Pywikibot-textlib.py.
TASK DESCRIPTION All ar.wikipedia builds for this commit failed: https://travis-ci.org/wikimedia/pywikibot-core/builds/45598351
https://travis-ci.org/wikimedia/pywikibot-core/jobs/45598353 https://travis-ci.org/wikimedia/pywikibot-core/jobs/45598357 https://travis-ci.org/wikimedia/pywikibot-core/jobs/45598361
test error is the same for them all: ``` ====================================================================== FAIL: test_allpages_pagesize (tests.site_tests.TestSiteObject) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line 433, in test_allpages_pagesize self.assertGreaterEqual(len(page.text), 100) AssertionError: 76 not greater than or equal to 100 ```
As the problem is ongoing, debugging the test locally shows the page triggering it is https://ar.wikipedia.org/wiki/(Habibi_(I_Need_Your_Love
which redirects to https://ar.wikipedia.org/wiki/%D8%AD%D8%A8%D9%8A%D8%A8%D9%8A_(%D8%A2%D9%8A_%...)
the (reverse) history of the page is: ``` (cur | prev) 05:34, 1 January 2015 ناي (Talk | contribs) m . . (129 bytes) (+75) . . (إضافة تصنيف:تحويلات عناوين مقالات غير عربية باستخدام المصناف الفوري) (undo | thank) [automatically checked] (cur | prev) 05:34, 1 January 2015 ناي (Talk | contribs) . . (54 bytes) (+12) . . (تحويل إلى حبيبي (آي نيد يور لاف)) (undo | thank) [automatically checked] (cur | prev) 03:42, 1 January 2015 Werldwayd (Talk | contribs) . . (42 bytes) (+42) . . (أنشأ الصفحة ب'حبيبي (آي نيد يور لاف)') (thank) [automatically checked] ```
The first revision is: ``` [[حبيبي (آي نيد يور لاف)]] ```
the next revision adds '#redirect'
the most recent revision adds a category.
TASK DETAIL https://phabricator.wikimedia.org/T85663
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb added a comment.
http://ar.wikipedia.org/w/api.php?format=jsonfm&action=query&generat... responds with
... "2430512": { "pageid": 2430512, "ns": 0, "title": "(Habibi (I Need Your Love", "contentmodel": "wikitext", "pagelanguage": "ar", "touched": "2015-01-01T05:40:53Z", "lastrevid": 14634802, "length": 129, "redirect": "", "revisions": [ { "revid": 14634802, "parentid": 14634801, "minor": "", "user": "\u0646\u0627\u064a", "timestamp": "2015-01-01T05:34:58Z", "comment": "\u0625\u0636\u0627\u0641\u0629 [[\u062a\u0635\u0646\u064a\u0641:\u062a\u062d\u0648\u064a\u0644\u0627\u062a \u0639\u0646\u0627\u0648\u064a\u0646 \u0645\u0642\u0627\u0644\u0627\u062a \u063a\u064a\u0631 \u0639\u0631\u0628\u064a\u0629]] \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 [[\u0648\u064a\u0643\u064a\u0628\u064a\u062f\u064a\u0627:\u0627\u0644\u0645\u0635\u0646\u0627\u0641 \u0627\u0644\u0641\u0648\u0631\u064a|\u0627\u0644\u0645\u0635\u0646\u0627\u0641 \u0627\u0644\u0641\u0648\u0631\u064a]]" } ] }, ...
so the API thinks it is length: 129
my guess is the API response is conting bytes, and len(unicode) is counting characters
TASK DETAIL https://phabricator.wikimedia.org/T85663
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
jayvdb edited projects, added Pywikibot-tests; removed Pywikibot-textlib.py. jayvdb set Security to none.
TASK DETAIL https://phabricator.wikimedia.org/T85663
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb Cc: Aklapper, jayvdb, pywikipedia-bugs
gerritbot added a project: Patch-For-Review. gerritbot added a comment.
Change 182422 had a related patch set uploaded (by Mpaa): Compute page length in bytes in test_allpages_pagesize
https://gerrit.wikimedia.org/r/182422
https://phabricator.wikimedia.org/tag/patch-for-review/
TASK DETAIL https://phabricator.wikimedia.org/T85663
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: gerritbot Cc: Aklapper, jayvdb, pywikipedia-bugs
gerritbot added a comment.
Change 182422 merged by jenkins-bot: Compute page length in bytes in test_allpages_pagesize
https://gerrit.wikimedia.org/r/182422
TASK DETAIL https://phabricator.wikimedia.org/T85663
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: gerritbot Cc: Aklapper, jayvdb, pywikipedia-bugs
Mpaa closed this task as "Resolved". Mpaa claimed this task.
TASK DETAIL https://phabricator.wikimedia.org/T85663
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Aklapper, jayvdb, pywikipedia-bugs
Mpaa removed a project: Patch-For-Review.
TASK DETAIL https://phabricator.wikimedia.org/T85663
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Mpaa Cc: Aklapper, jayvdb, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org