Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WITH DOCKER breaks parallelization #3808

Open
idelvall opened this issue Feb 14, 2024 · 1 comment
Open

WITH DOCKER breaks parallelization #3808

idelvall opened this issue Feb 14, 2024 · 1 comment
Labels
type:bug Something isn't working

Comments

@idelvall
Copy link
Member

idelvall commented Feb 14, 2024

I would expect earthly +test-docker run the two builds in parallel, but that is not the case.

Notes:

  • Commenting the FROM alpine line brings parallelization
  • Moving FROM alpine outside of the target below VERSION 0.7, brings parallelization
  • Using VERSION --no-use-registry-for-with-docker 0.7 brings parallelization
  • The bug is reproducible both in CLI versions 0.7.23 and 0.8.3
  • The bug is reproducible both with VERSION 0.7 and VERSION 0.8

Probably related to #2377

VERSION 0.7

a:
   FROM ubuntu
   RUN --no-cache bin/bash -c "for f in {1..10} ; do echo a ; sleep 1; done ;"

b:
   FROM ubuntu
   RUN --no-cache bin/bash -c "for f in {1..10} ; do echo b ; sleep 1; done ;"

docker-a:
   FROM ubuntu
   WITH DOCKER
     RUN --no-cache bin/bash -c "for f in {1..10} ; do echo a ; sleep 1; done ;"
   END

docker-b:
   FROM ubuntu
   WITH DOCKER
     RUN --no-cache bin/bash -c "for f in {1..10} ; do echo b ; sleep 1; done ;"
   END

# test properly runs +a and +b in parallel
test:
   FROM alpine
   BUILD +a
   BUILD +b

# test-docker is the failing one
test-docker:
   # Commenting the following line fixes parallelization
   FROM alpine
   BUILD +docker-a
   BUILD +docker-b
@idelvall idelvall added the type:bug Something isn't working label Feb 14, 2024
@vladaionescu
Copy link
Member

Possible duplicate with #2377?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants