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

cyverse / atmosphere / 815 / 1
36%
master: 37%

Build:
Build:
LAST BUILD BRANCH: script-chmod
DEFAULT BRANCH: master
Ran 20 Oct 2017 12:27AM UTC
Files 450
Run time 15s
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

20 Oct 2017 12:20AM UTC coverage: 35.022% (+0.005%) from 35.017%
DISTRIBUTION=cyverse

Pull #533

travis-ci

web-flow
Guard against division by zero

When an image has not be launched, we hit `total_launched = 0` and then
the percentage calculation will throw:
...
>>> ZeroDivisionError: float division by zero

This sets the percent to `0.0` and only does the division if we have
launches.

Note: when trying to test or reproduce this, you might need to do a
clear of the redis cache for these calculations to be performed:

$ redis-cli flushall

One image that did *not* have launced in my local test envirionment was
- https://local.atmo.cloud/application/images/1468
Pull Request #533: Problem: success percent might cause division by zero error

926 of 6960 branches covered (13.3%)

Branch coverage included in aggregate %.

11276 of 27881 relevant lines covered (40.44%)

0.4 hits per line

Source Files on job 815.1 (DISTRIBUTION=cyverse)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 815
  • Travis Job 815.1
  • 20c64652 on github
  • Prev Job for DISTRIBUTION=cyverse on v28 (#807.1)
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

© 2026 Coveralls, Inc