Last modified: 2014-11-18 01:40:37 UTC
First notices in bug 71971 comment 8 https://travis-ci.org/wikimedia/pywikibot-core/jobs/37948029 Then comment 14 https://travis-ci.org/wikimedia/pywikibot-core/jobs/38570786 And now another case https://travis-ci.org/wikimedia/pywikibot-core/jobs/40263130 FAIL: test_image_usage_no_redirect_filter (tests.site_tests.TestImageUsage) Test the site.imageusage() method with redirects. ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/wikimedia/pywikibot-core/tests/site_tests.py", line 698, in test_image_usage_no_redirect_filter self.assertFalse(using.isRedirectPage()) AssertionError: True is not false The three builds have all been en.wikipedia. One potential possibility is that the page stops being a redirect during the test run, in which case the 'bug' is in the test case, and not in pywikibot.
Change 171814 had a related patch set uploaded by XZise: Identify which page is no redirect https://gerrit.wikimedia.org/r/171814
Change 171814 merged by jenkins-bot: Identify which page is no redirect https://gerrit.wikimedia.org/r/171814
Okay due to the patch we now know it's not that suddenly the page became a non-redirect: https://travis-ci.org/wikimedia/pywikibot-core/jobs/40348621#L446 So there is something else wrong.
Maybe there is a side effect. I checked all four occurences listed here and for all of them the test before 'test_image_usage_in_redirects' failed. I also checked a some other successful tests and there 'test_image_usage_in_redirects' hasn't failed.
The four also are always python 3.3 builds.
Again .. a python 3.3 build, and the error occurs after 'test_image_usage_in_redirects' failed. https://travis-ci.org/wikimedia/pywikibot-core/jobs/40715242
Same scenario: https://travis-ci.org/wikimedia/pywikibot-core/jobs/40988525
And again in both cases the test before that failed.
Again a failure and again the previous failed too: https://travis-ci.org/wikimedia/pywikibot-core/jobs/41080800#L483
And another https://travis-ci.org/wikimedia/pywikibot-core/jobs/41216356 they all match the same scenario - py3, incorrect data after an exception, so im making this block our py3 port bug and increasing the importance, as incorrect data leaking across page generators doesnt sound particularly good.
And another: https://travis-ci.org/wikimedia/pywikibot-core/jobs/41313071#L483 This issue is weird as I can't see how something could get stuck, except maybe in httplib so it returns the value on the next request. Unfortunately I don't know how I could disrupt it locally so that I get that error too. I tried throwing exceptions in the loop but it didn't care.