-
Notifications
You must be signed in to change notification settings - Fork 394
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
Images not output when mixing FROM +target
and BUILD +target
(on the same target) when --wait-block
feature is used
#2218
Comments
@JayyyXp I tried to see if I could reproduce this with a smaller case, I added a similar directory structure under https://github.com/alexcb/earthly-test/tree/wait-no-local-export here's a single-line repro case to run:
and then it shows:
about 90% of the time, but when it does fail, it only outputs a single image:
|
Here's a reproduction case that occurs all the time: VERSION --wait-block 0.6
common-base:
FROM alpine
SAVE IMAGE common:base
use-common-base:
FROM +common-base
RUN echo "this won't trigger the SAVE IMAGE in common-base"
test:
BUILD +use-common-base
FROM alpine
IF sleep 10
RUN echo doing explicit build
BUILD +common-base
END
running The bug occurs due to If however the The It's interesting to note that the above reproduction case doesn't explicitly have a In order to fix this bug, I suspect we'll need to change the converter code to save |
FROM +target
and BUILD +target
(on the same target)
FROM +target
and BUILD +target
(on the same target)FROM +target
and BUILD +target
(on the same target) when --wait-block
feature is used
That's a really interesting finding, thank you for digging deep into this! It was nice to get some validation on this that I wasn't just going crazy :D |
fixed in #2444 |
When using a monorepo where Earthfiles in subdirs ouput images built in WAIT blocks, all the images marked for the output are not exported to host, but marked for push. Also this issue seems to flaky and effected by the Earthly volume cache.
Example code and output:
The text was updated successfully, but these errors were encountered: