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

ChristianTremblay / pyhaystack / 121
39%
master: 40%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 16 Mar 2017 12:48AM UTC
Jobs 5
Files 48
Run time 3min
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

pending completion
121

push

travis-ci

ChristianTremblay
client.ops.grid: Handle expired cache (#35)

If the cache has expired, then we can wind up with the situation where
`op` is `None`, so the `if` block falls through to the `else` branch
erroniously.

This causes a stack trace like the following:

```
    2017-02-17 01:49:00,039 pyhaystack.client.WideskyHaystackSession.his_write_frame[his.py: 726] WARNING Unable to probe multi-his-write support
    Traceback (most recent call last):
      File "/usr/lib/python2.7/dist-packages/pyhaystack/client/ops/his.py", line 723, in _on_probe_multi
        result = operation.result
      File "/usr/lib/python2.7/dist-packages/pyhaystack/util/state.py", line 97, in result
        self._result.reraise()
      File "/usr/lib/python2.7/dist-packages/pyhaystack/util/asyncexc.py", line 28, in reraise
        reraise(*self._exc_info)
      File "/usr/lib/python2.7/dist-packages/pyhaystack/client/ops/feature.py", line 93, in _on_got_about
        self._about = operation.result
      File "/usr/lib/python2.7/dist-packages/pyhaystack/util/state.py", line 97, in result
        self._result.reraise()
      File "/usr/lib/python2.7/dist-packages/pyhaystack/util/asyncexc.py", line 28, in reraise
        reraise(*self._exc_info)
      File "/usr/lib/python2.7/dist-packages/pyhaystack/client/ops/grid.py", line 118, in _check_auth
        self._state_machine.auth_ok()
      File "/usr/lib/python2.7/dist-packages/fysom/__init__.py", line 297, in fn
        self.transition()
      File "/usr/lib/python2.7/dist-packages/fysom/__init__.py", line 290, in _tran
        self._enter_state(e)
      File "/usr/lib/python2.7/dist-packages/fysom/__init__.py", line 341, in _enter_state
        return getattr(self, fnname)(e)
      File "/usr/lib/python2.7/dist-packages/fysom/__init__.py", line 88, in _callback
        return func(obj, *args, **kwargs)
      File "/usr/lib/python2.7/dist-packages/pyhaystack/client/ops/grid.py", line 177, in _do_check_cache
        ... (continued)

6 of 6 new or added lines in 1 file covered. (100.0%)

943 of 2152 relevant lines covered (43.82%)

2.17 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
pyhaystack/client/ops/grid.py
Jobs
ID Job ID Ran Files Coverage
1 121.1 16 Mar 2017 12:48AM UTC 0
43.77
Travis Job 121.1
2 121.2 16 Mar 2017 12:52AM UTC 0
43.26
Travis Job 121.2
3 121.3 16 Mar 2017 12:48AM UTC 0
43.26
Travis Job 121.3
4 121.4 16 Mar 2017 12:48AM UTC 0
43.26
Travis Job 121.4
5 121.5 16 Mar 2017 12:49AM UTC 0
43.26
Travis Job 121.5
Source Files on build 121
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #121
  • a3187572 on github
  • Prev Build on develop (#117)
  • Next Build on develop (#123)
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