question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Random(?) test_crawler.py failure on Travis

See original GitHub issue

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
s-sanjaycommented, Oct 6, 2019

the flakiness is happening due to this

{message : ResourceWarning('unclosed file <_io.BufferedReader name=30>',), category : 'ResourceWarning', filename : '/Users/sanjay/nobackup/scrapy/.tox/py36/lib/python3.6/copy.py', lineno : 239, line : None}
{message : ResourceWarning('unclosed file <_io.BufferedReader name=25>',), category : 'ResourceWarning', filename : '/Users/sanjay/nobackup/scrapy/.tox/py36/lib/python3.6/copy.py', lineno : 239, line : None}
{message : ScrapyDeprecationWarning('CrawlerRunner.spiders attribute is renamed to CrawlerRunner.spider_loader.',), category : 'ScrapyDeprecationWarning', filename : '/Users/sanjay/nobackup/scrapy/tests/test_crawler.py', lineno : 172, line : None}

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.

0reactions
Gallaeciocommented, Nov 1, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found