Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMLBearDTDUrlTest.test_valid_files consistently fails on Travis Windows #2944

Open
jayvdb opened this issue Aug 6, 2019 · 2 comments
Open

Comments

@jayvdb
Copy link
Member

jayvdb commented Aug 6, 2019

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 added a commit to jayvdb/coala-bears that referenced this issue Aug 6, 2019
XMLBearDTDUrlTest.test_valid_files is consistently failing only
on Travis Windows, but not AppVeyor.

Related to coala#2944
jayvdb added a commit to jayvdb/coala-bears that referenced this issue Aug 6, 2019
XMLBearDTDUrlTest.test_valid_files is consistently failing only
on Travis Windows, but not AppVeyor.

Related to coala#2944
@jayvdb
Copy link
Member Author

jayvdb commented Aug 6, 2019

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

@jayvdb
Copy link
Member Author

jayvdb commented Aug 6, 2019

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

jayvdb added a commit to jayvdb/coala-bears that referenced this issue Aug 6, 2019
XMLBearDTDUrlTest times out regular on Travis Windows.
Increase the timeout for that test to 120s.

Related to coala#2944
jayvdb added a commit to jayvdb/coala-bears that referenced this issue Aug 6, 2019
XMLBearDTDUrlTest times out regular on Travis Windows.
Increase the timeout for that test to 120s.

Related to coala#2944
jayvdb added a commit to jayvdb/coala-bears that referenced this issue Aug 6, 2019
XMLBearDTDUrlTest times out regular on Travis Windows.
Increase the timeout for that test to 120s.

Related to coala#2944
jayvdb added a commit to jayvdb/coala-bears that referenced this issue Aug 6, 2019
XMLBearDTDUrlTest times out regular on Travis Windows.
Increase the timeout for that test to 120s.

Related to coala#2944
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant