balena-io-modules / balena-compose

Complete toolkit for building docker-compose.yml files and optionally deploy them on balenaCloud
Apache License 2.0
8 stars 1 forks source link

Test failures due to dockerode regression in buildImage() #15

Closed kb2ma closed 2 years ago

kb2ma commented 2 years ago

Tests fail with a timeout. Root cause is regression in dockerode v3.3.4 that hangs balena-compose use of its buildImage() function. See Issue on that repo for details. We are awaiting response to a fix PR.

  136 passing (8m)
  2 pending
  14 failing

  1) Directory build
       should build a directory image:
     Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/kbee/dev/balena-compose/repo/test/build/all.spec.ts)
      at listOnTimeout (internal/timers.js:549:17)
      at processTimers (internal/timers.js:492:7)
...
kb2ma commented 2 years ago

As a workaround for tests to pass, pinned dockerode to v3.3.3 in #11.

kb2ma commented 2 years ago

Closing since the immediate issue is worked around. Created #17 to track pinning on dockerode v3.3.3.