coala / coala-bears

Bears for coala
https://coala.io/
GNU Affero General Public License v3.0
294 stars 580 forks source link

XMLBearDTDUrlTest.test_valid_files consistently fails on Travis Windows #2944

Open jayvdb opened 5 years ago

jayvdb commented 5 years ago
tests\xml2\XMLBearTest.py .........F
_____________________ XMLBearDTDUrlTest.test_valid_files ______________________
self = <coalib.testing.LocalBearTestHelper.verify_local_bear.<locals>.LocalBearTest testMethod=test_valid_files>
    def test_valid_files(self):
        self.assertIsInstance(valid_files, (list, tuple))
        for file in valid_files:
            self.check_validity(self.uut,
                                file.splitlines(keepends=True),
                                filename,
                                valid=True,
                                force_linebreaks=force_linebreaks,
                                create_tempfile=create_tempfile,
>                               tempfile_kwargs=tempfile_kwargs)
c:\python36\lib\site-packages\coalib\testing\LocalBearTestHelper.py:401: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
c:\python36\lib\site-packages\coalib\testing\LocalBearTestHelper.py:174: in check_validity
    aspects=aspects,
c:\python36\lib\site-packages\coalib\testing\LocalBearTestHelper.py:287: in check_results
    self.assertComparableObjectsEqual(bear_output, results)
c:\python36\lib\site-packages\coalib\testing\LocalBearTestHelper.py:138: in assertComparableObjectsEqual
    self.assertEqual(observed_result, expected_result)
E   AssertionError: Lists differ: [<Result object(id=0xff5cce720b7a45db983bd[1142 chars]c88>] != []
E   
E   First list contains 2 additional elements.
E   First extra element 0:
E   <Result object(id=0xff5cce720b7a45db983bd5642ae630e8, origin='XMLBear', affected_code=(<SourceRange object(start=<SourcePosition object(file='C:\\Users\\travis\\AppData\\Local\\Temp\\tmp0f0cd5do.xml', line=134, column=None) at 0x1cd419d1080>, end=<SourcePosition object(file='C:\\Users\\travis\\AppData\\Local\\Temp\\tmp0f0cd5do.xml', line=134, column=None) at 0x1cd41978f60>) at 0x1cd419d14e0>,), severity=NORMAL, confidence=100, message='failed to load external entity "http://docs.oasis-open.org/dita/v1.0.1/dtd/highlightDomain.mod"', aspect=NoneType, applied_actions={}) at 0x1cd419781d0>
E   
E   Diff is 1200 characters long. Set self.maxDiff to None to see it.
tests\xml2\XMLBearTest.py ..                                             [100%]

https://travis-ci.org/coala/coala-bears/jobs/567956795

Other times in fails with a timeout. The timeout was increased to 120 for the above log result.

https://travis-ci.org/jayvdb/coala-bears/jobs/567916630 https://travis-ci.org/jayvdb/coala-bears/jobs/567839932

jayvdb commented 5 years ago

https://travis-ci.org/coala/coala-bears/jobs/568184854 - travis apt precise job timeout

jayvdb commented 5 years ago

More on travis apt

https://travis-ci.org/coala/coala-bears/jobs/568193156 https://travis-ci.org/coala/coala-bears/jobs/568193159

Seems like the host is having difficulties