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

google / apitools / 663 / 5
92%
master: 92%

Build:
DEFAULT BRANCH: master
Ran 09 Aug 2018 10:21PM UTC
Files 60
Run time 46s
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

09 Aug 2018 10:18PM UTC coverage: 91.695% (+0.009%) from 91.686%
TOX_ENV=py27-oauth2client4

push

travis-ci

web-flow
Fixes issue where forced retry would cause timeout. (#241)

Fixes issue where forced retry would cause timeout.

Side note: This also fixes TravisCI builds that have been failing on
Python 3.3.

This fixes https://issuetracker.google.com/issues/111486730 -- if
using an expired access token from a cache, a forced retry will occur
and attempt to re-read bytes from the compression stream. This fails
because the bytes have already been consumed, and the server hangs
waiting for us to send the intended bytes from the first attempt. In
gsutil, this manifested itself as an SSLError with the message 'The read
operation timed out'.

While I'd normally avoid reading in an entire stream all at once, this
edge case should be fine because:

- We start off the entire (uncompressed) byte sequence anyway to begin
  with and only create the stream because that's the format needed for
  compression.
- This is only used for uploads using the SIMPLE strategy. Note that
  this isn't an issue for resumable uploads, since the first request in
  that flow is to create the resumable upload session (which isn't a
  media transfer request, thus it doesn't try to consume any bytes from
  the stream), so the credential refresh (if needed) would happen on that
  request.

1892 of 2381 branches covered (79.46%)

8910 of 9717 relevant lines covered (91.69%)

0.92 hits per line

Source Files on job 663.5 (TOX_ENV=py27-oauth2client4)
  • Tree
  • List 0
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 628
  • Travis Job 663.5
  • d0bfc7a3 on github
  • Prev Job for TOX_ENV=py27-oauth2client4 on master (#661.5)
  • Next Job for TOX_ENV=py27-oauth2client4 on master (#667.5)
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