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

berkmancenter / mediacloud / 4889 / 1
61%
master: 70%

Build:
Build:
LAST BUILD BRANCH: release
DEFAULT BRANCH: master
Ran 24 Feb 2018 08:55PM UTC
Files 310
Run time 10s
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

24 Feb 2018 08:16PM UTC coverage: 51.043%. First build
MC_TEST_CHUNK=1

push

travis-ci

hroberts
Don't deep_copy or wantarray return value in HandlerProxy if the caller is python

When a database handle was created in perl and passed to python, the hashes() and flat() methods were returning
the single value rather than a list in python when the query returned only one row.  This is different than the
behavior when calling those functions from a python created db handle, so it was causing intermittent havoc in
python functions called from perl with a perl db handle.  The cause was that those methods were calling wantarray
in perl to figure out whether to return a list or a ref to a list, which was causing the return type confusion.

You can reproduce this issue by uncommenting the new code in HandlerProxy hashes() and running
lib/MediaWords/DB/t/HandlerProxy.t

In the theory of reducing unnecessary work and round trip complexity, I added a check to all of the deep_copy(
$return_value ) calls in HandlerProxy.pm to avoid the deep_copy if the caller is python.

11057 of 21662 relevant lines covered (51.04%)

77.61 hits per line

Source Files on job 4889.1 (MC_TEST_CHUNK=1)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 4889.1
  • 50e5275d on github
  • Next Job for MC_TEST_CHUNK=1 on python_handler_deproxy (#4890.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