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

m-lab / mlab-ns / 1174
64%

Build:
DEFAULT BRANCH: master
Ran 14 Jun 2019 10:03AM UTC
Jobs 1
Files 23
Run time 2s
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
1174

push

travis-ci

web-flow
Support per-experiment ReverseProxyProbability  (#199)

* Change get_reverse_proxy to accept an experiment name.

* Make pylint happy.

* Make pyflakes happy.

* Add log message.

* Change reverse_proxy.py to not use class methods.

Apparently memcache (and the underlying cPickle) doesn't like when the
class it's trying to serialize has been patched. The former code used the
get_by_key_name class method and was then patching it with MagicMock in
the test, and this made memcache.set() fail.

I reverted the code back to the previous behavior of reading and caching
*all* the entities in Datastore whenever the probability for any experiment
is requested, which makes sense to me since:

1. they all have the same expiration and
2. they are both requested very often when mlab-ns is running in production

So, the total number of calls to Datastore will be (slightly) smaller this way.

* Change tests to use the emulated Datastore/memcache instead of mocking.

* Make get_reverse_proxy return probability if memcache.set fails.

* Add whitespace between test setup and execution.

* Fix logic to avoid the extra call to memcache.get().

* Change get_reverse_proxy to return a default entity with the requested name.

Also, set probability for this default entity to 0.0.

* Update comments.

* s/records/record/

1076 of 1618 relevant lines covered (66.5%)

0.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1174.1 (PYTHONPATH=$PYTHONPATH:$HOME/google-cloud-sdk/platform/google_appengine) 14 Jun 2019 10:03AM UTC 0
66.5
Travis Job 1174.1
Source Files on build 1174
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1174
  • 9250edf6 on github
  • Prev Build on master (#1158)
  • Next Build on master (#1181)
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