Random(?) test_crawler.py failure on Travis
See original GitHub issueEvery now and then the Travis build fails on tests.test_crawler.CrawlerRunnerTestCase.test_deprecated_attribute_spiders
, I’m not sure why.
Some examples:
- https://travis-ci.org/scrapy/scrapy/jobs/582184413#L407
- https://travis-ci.org/scrapy/scrapy/jobs/580207692#L419
- https://travis-ci.org/scrapy/scrapy/jobs/584701732#L415
- https://travis-ci.org/scrapy/scrapy/jobs/584762868#L418
PS: Sorry, I feel bad for ignoring the bug report template, but I felt like it didn’t apply in this case.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Common Build Problems - Travis CI Docs
If that build suddenly fails too, there's a good chance, that a dependency was updated and is causing the breakage. Check the list...
Read more >Travis-ci build fails but tests pass locally - Stack Overflow
You should raise such questions on the PR itself. What you are seeing is just a random failure that has not been tracked...
Read more >Fatal Python error: _Py_HashRandomization_Init - Windows
Fatal Python error: _Py_HashRandomization_Init: failed to get random numbers to initialize Python Python runtime state: preinitialized.
Read more >Travis CI - Test and Deploy Your Code with Confidence
Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be...
Read more >Travis CI - Wikipedia
Travis CI is a hosted continuous integration service used to build and test software projects hosted on GitHub, Bitbucket, GitLab, Perforce, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
the flakiness is happening due to this
These warnings
ResourceWarning('unclosed file <_io.BufferedReader name=30>
are the reason the tests are failing. Every run, the filename is changed and I still have to figure out who is opening these files and everytime it blames deepcopy module.@s-sanjay I was suggesting that as a temporary measure, to avoid new contributors from getting hit by this and us having to explain to them that the issue is in Scrapy and not in their changes.
In any case, #4095 should have fixed the actual issue.