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

googledatalab / pydatalab / 3227
78%

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

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

Jobs
ID Job ID Ran Files Coverage
4 3227.4 (TOX_ENV=coveralls) 04 Jun 2018 09:27PM UTC 0
77.85
Travis Job 3227.4
Source Files on build 3227
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3227
  • 5f963132 on github
  • Prev Build on master (#3220)
  • Next Build on master (#3232)
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