• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rackspace / pyrax
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: working
DEFAULT BRANCH: master
Repo Added 25 Jun 2013 08:38PM UTC
Files 24
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH working
branch: working
CHANGE BRANCH
x
Reset
  • working
  • dev
  • master
  • noswiftclient
  • revert-410-bug/import_sample
  • v1.6.0
  • v1.6.1
  • v1.6.2
  • v1.7.0
  • v1.7.1
  • v1.7.2
  • v1.7.3
  • v1.8.0
  • v1.8.1
  • v1.8.2
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v1.9.4
  • v1.9.5
  • v1.9.6
  • v1.9.7
  • v1.9.8

pending completion
948

Pull #620

travis-ci

web-flow
Fix memory hole while uploading 5G chunks

The call read(MAX_FILE_SIZE) will load the hole MAX_FILE_SIZE into
memory, which turns to be 5GB. That puts the system to a crawl.

Instead, the better way to go around this is to use streaming, copying
small chunks of memory in a loop until all bytes are transferred.

Apart from that:
- xreadlines has been deprecated for quite a while now:
  https://www.quantifiedcode.com/knowledge-base/maintainability/%60.xreadlines()%60%20deprecated/7lC2NACa
- Tox was not able to run pypy test env properly without the explicit
  dependencies on requests and nose.

Includes unitests for copy_maxlen_bytes:

- One test for the typical case; several writes, last one shorter
- EOF test; copy ends before maxlen due to EOF reached first
- Exact copies; when bufsize is a exact divisor of maxlen
- One copy; when maxlen is less than bufsize
Pull Request #620: Fix memory hole while uploading 5G chunks

6495 of 6716 relevant lines covered (96.71%)

0.97 hits per line

Relevant lines Covered
Build:
Build:
6716 RELEVANT LINES 6495 COVERED LINES
0.97 HITS PER LINE
Source Files on working
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
948 working Fix memory hole while uploading 5G chunks The call read(MAX_FILE_SIZE) will load the hole MAX_FILE_SIZE into memory, which turns to be 5GB. That puts the system to a crawl. Instead, the better way to go around this is to use streaming, copying s... Pull #620 05 Feb 2017 04:08PM UTC web-flow travis-ci pending completion  
947 working Added unitests for copy_maxlen_bytes - One test for the typical case; several writes, last one shorter - EOF test; copy ends before maxlen due to EOF reached first - Exact copies; when bufsize is a exact divisor of maxlen - One copy; when maxlen ... Pull #620 05 Feb 2017 04:04PM UTC web-flow travis-ci pending completion  
946 working Fix memory hole while uploading 5G chunks The call read(MAX_FILE_SIZE) will load the hole MAX_FILE_SIZE into memory, which turns to be 5GB. That puts the system to a crawl. Instead, the better way to go around this is to use streaming, copying s... Pull #620 05 Feb 2017 03:05PM UTC web-flow travis-ci pending completion  
945 working Fix memory hole while uploading 5G chunks The call read(MAX_FILE_SIZE) will load the hole MAX_FILE_SIZE into memory, which turns to be 5GB. That puts the system to a crawl. Instead, the better way to go around this is to use streaming, copying s... Pull #620 05 Feb 2017 03:03PM UTC web-flow travis-ci pending completion  
944 working Fix memory hole while uploading 5G chunks The call read(MAX_FILE_SIZE) will load the hole MAX_FILE_SIZE into memory, which turns to be 5GB. That puts the system to a crawl. Instead, the better way to go around this is to use streaming, copying s... Pull #620 05 Feb 2017 08:12AM UTC web-flow travis-ci pending completion  
937 working Don't convert key to bytes on Python 3. Fixes #565. Pull #608 04 May 2016 03:02PM UTC jaraco travis-ci pending completion  
931 working <a href="https://github.com/rackspace/pyrax/commit/e7d729f43">&lt;a href=&quot;https://github.com/rackspace/pyrax/commit/</a><a class="double-link" href="https://github.com/rackspace/pyrax/commit/&lt;a class=&quot;do... push 19 Jan 2016 06:51PM UTC sivel travis-ci pending completion  
930 working Bump version to 1.9.6 push 19 Jan 2016 06:37PM UTC sivel travis-ci pending completion  
929 working Bump version to 1.9.6 and update RELEASENOTES.md push 19 Jan 2016 06:33PM UTC Matt Martz travis-ci pending completion  
928 working Merge pull request #599 from rsyed83/exclude_managed_dns Exclude Managed DNS from service registration to avoid conflict with Cloud DNS push 14 Jan 2016 05:49PM UTC Matt Martz travis-ci pending completion  
See All Builds (644)
  • Repo on GitHub
  • CI Project
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc