Page MenuHomePhabricator

archivebot_tests fails for wikipedia:zh-yue
Closed, ResolvedPublic

Description

Seems the month format was changed recently.

12:15:02 ======================================================================
12:15:02 FAIL: test_archivebot_zh_yue (tests.archivebot_tests.TestArchiveBot) (content='5|William915]]([[User Talk:William915|傾偈]]) 2009年5月27號 (三) 06:25 (UTC)\n\n', thread='Xqt,歡迎加入[[粵語維基百科]]!')
12:15:02 Test archivebot for one site on wikipedia:zh-yue
12:15:02 ----------------------------------------------------------------------
12:15:02 Traceback (most recent call last):
12:15:02   File "/src/tests/archivebot_tests.py", line 144, in test_archivebot
12:15:02     self.assertIsInstance(thread.timestamp, datetime)
12:15:02 AssertionError: None is not an instance of <class 'datetime.datetime'>
12:15:02 
12:15:02 ======================================================================
12:15:02 FAIL: test_archivebot_zh_yue (tests.archivebot_tests.TestArchiveBot) (content='lk:Hillgentleman|書]]|[[2011年|二零一一年]][[五月二十七號]](星期五)[[格林威治]] 05點16分03秒。>\n', thread='[[user:xqbot]]')
12:15:02 Test archivebot for one site on wikipedia:zh-yue
12:15:02 ----------------------------------------------------------------------
12:15:02 Traceback (most recent call last):
12:15:02   File "/src/tests/archivebot_tests.py", line 144, in test_archivebot
12:15:02     self.assertIsInstance(thread.timestamp, datetime)
12:15:02 AssertionError: None is not an instance of <class 'datetime.datetime'>
12:15:02 
12:15:02 ----------------------------------------------------------------------

Event Timeline

Xqt changed the task status from Open to In Progress.Aug 5 2023, 11:32 AM
Xqt claimed this task.
Xqt triaged this task as High priority.
Xqt updated the task description. (Show Details)

Change 945912 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] Ignore failing archivebot_tests on zh-yue site

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

Change 945912 merged by jenkins-bot:

[pywikibot/core@master] [tests] Ignore failing archivebot_tests on zh-yue site

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

Xqt changed the task status from In Progress to Open.Aug 5 2023, 5:01 PM
Xqt removed Xqt as the assignee of this task.

Change 950070 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] Revert "[tests] Ignore failing archivebot_tests on zh-yue site"

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

Change 950070 merged by jenkins-bot:

[pywikibot/core@master] Revert "[tests] Ignore failing archivebot_tests on zh-yue site"

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

Xqt claimed this task.
Xqt added a project: Upstream.

Solved upstream