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

Leverage pex.common.open_zip. #409

Merged
merged 2 commits into from
Sep 1, 2017

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Aug 31, 2017

Also use in one spot in the pex.testing module where we weren't
before.

Also use in one spot in the `pex.testing` module where we weren't
before.
@jsirois
Copy link
Member Author

jsirois commented Aug 31, 2017

Discovered working too many open files issue under pypy in #408 CI job.

@jsirois jsirois requested a review from kwlzn August 31, 2017 21:32
Copy link
Contributor

@kwlzn kwlzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - any clues as to why switching the OS version resolves the too many open files issue?

@jsirois
Copy link
Member Author

jsirois commented Sep 1, 2017

No clues. I just noticed the beta Trust banner on the failing pypy shard and tried pinning back to Precise. I'll try a spin against each tomorrow with ulimit -n tomorrow though. I expect the Trusty image will have a lower value.

@jsirois jsirois merged commit 616dc9c into pex-tool:master Sep 1, 2017
@jsirois jsirois deleted the jsirois/zipfile/cleanup_use branch September 1, 2017 07:40
@jsirois
Copy link
Member Author

jsirois commented Sep 1, 2017

Turns out the newer Travis Trusty image has a 30000 open file limit and Precise (the former default) 524288, so this seems to explain the new pypy failures. I did an audit of pex code file leaks and only turned up one instance of zip files in tests - fixed here, and 1 instance in the InstallerBase preamble. That case though is executed in a throwaway subprocess.

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

Successfully merging this pull request may close these issues.

2 participants