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

googledatalab / pydatalab / 3227 / 4
78%
master: 78%

Build:
DEFAULT BRANCH: master
Ran 04 Jun 2018 09:27PM UTC
Files 101
Run time 6s
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

04 Jun 2018 09:09PM UTC coverage: 77.849%. Remained the same
TOX_ENV=coveralls

push

travis-ci

ojarjur
Fix an MLToolbox preprocessing failure caused by pickling of TF objects. (#689)

It seems happening after we upgrade DataFlow version to 2.0. The issue happens when:

You have "import tensorflow as tf" in a DoFn's init.
At run time, DataFlow initializes the DoFn first, and then pickle and unpickle the instance to multiple workers. That means it needs to pickle the state including imports.
Under tensorflow there are some objects that are not pickle friendly. So pickling everything under tensorflow namespace causes it to fail at run time.
The issue also occur if you have global "import tensorflow" statement.

The fix is to move tensorflow import into either DoFn's process(), or start_bundle() function. That way the import occurs for each instance on each worker and no tensorflow pickling is needed.

5444 of 6993 relevant lines covered (77.85%)

0.78 hits per line

Source Files on job 3227.4 (TOX_ENV=coveralls)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3219
  • Travis Job 3227.4
  • 5f963132 on github
  • Prev Job for TOX_ENV=coveralls on master (#3220.4)
  • Next Job for TOX_ENV=coveralls on master (#3232.4)
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