* hexagon: check-tcg rebuilding up to date image
@ 2023-03-03 22:20 ` Matheus Tavares Bernardino
0 siblings, 0 replies; 6+ messages in thread
From: Matheus Tavares Bernardino @ 2023-03-03 18:19 UTC (permalink / raw)
To: qemu-devel; +Cc: alex.bennee, philmd, tsimpson
Hi,
We noticed that local `make check-tcg` is rebuilding the docker image
for qemu-hexagon at every run, whereas previously it would say "Image is
up to date" and move on.
This was changed at 0b1a649047 (tests/docker: use direct RUNC call to
build containers, 2023-02-28), where we started to no longer use
docker.py and its image_matches_dockerfile() to skip image builds.
Is this new behavior by design? Or perhaps do we have some local
docker misconfiguration that is not correctly using caches?
Thanks,
Matheus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: hexagon: check-tcg rebuilding up to date image
@ 2023-03-03 22:20 ` Matheus Tavares Bernardino
0 siblings, 0 replies; 6+ messages in thread
From: Matheus Tavares Bernardino @ 2023-03-03 22:20 UTC (permalink / raw)
To: farosas; +Cc: alex.bennee, philmd, qemu-devel, quic_mathbern, tsimpson
From: Fabiano Rosas <farosas@suse.de>
>
> We started relying on docker for the cache. Are you using docker or
> podman? There should be a RUNC variable in config-host.mak that you can
> check.
I'm using docker.
> And for the record, which version of either podman or docker?
Docker version 20.10.12, build 20.10.12-0ubuntu2~20.04.1
> I think we might need to add DOCKER_BUILDKIT=1 $(RUNC) ... to properly
> make use of caching with docker.
I just tested it and can confirm that, with that change, `docker build`
indeed uses the cache instead of rebuilding the image. Thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: hexagon: check-tcg rebuilding up to date image
2023-03-03 22:20 ` Matheus Tavares Bernardino
(?)
@ 2023-03-03 22:01 ` Fabiano Rosas
2023-03-04 12:58 ` Alex Bennée
-1 siblings, 1 reply; 6+ messages in thread
From: Fabiano Rosas @ 2023-03-03 22:01 UTC (permalink / raw)
To: Matheus Tavares Bernardino, qemu-devel; +Cc: alex.bennee, philmd, tsimpson
Matheus Tavares Bernardino <quic_mathbern@quicinc.com> writes:
> Hi,
>
> We noticed that local `make check-tcg` is rebuilding the docker image
> for qemu-hexagon at every run, whereas previously it would say "Image is
> up to date" and move on.
>
> This was changed at 0b1a649047 (tests/docker: use direct RUNC call to
> build containers, 2023-02-28), where we started to no longer use
> docker.py and its image_matches_dockerfile() to skip image builds.
>
> Is this new behavior by design? Or perhaps do we have some local
> docker misconfiguration that is not correctly using caches?
Hi,
We started relying on docker for the cache. Are you using docker or
podman? There should be a RUNC variable in config-host.mak that you can
check.
And for the record, which version of either podman or docker?
Alex,
I think we might need to add DOCKER_BUILDKIT=1 $(RUNC) ... to properly
make use of caching with docker. As for podman, I'm seeing conflicting
information on the web as to whether it even supports caching.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: hexagon: check-tcg rebuilding up to date image
2023-03-03 22:01 ` Fabiano Rosas
@ 2023-03-04 12:58 ` Alex Bennée
2023-03-06 11:55 ` Matheus Tavares Bernardino
2023-03-06 12:39 ` Fabiano Rosas
0 siblings, 2 replies; 6+ messages in thread
From: Alex Bennée @ 2023-03-04 12:58 UTC (permalink / raw)
To: Fabiano Rosas; +Cc: Matheus Tavares Bernardino, qemu-devel, philmd, tsimpson
Fabiano Rosas <farosas@suse.de> writes:
> Matheus Tavares Bernardino <quic_mathbern@quicinc.com> writes:
>
>> Hi,
>>
>> We noticed that local `make check-tcg` is rebuilding the docker image
>> for qemu-hexagon at every run, whereas previously it would say "Image is
>> up to date" and move on.
>>
>> This was changed at 0b1a649047 (tests/docker: use direct RUNC call to
>> build containers, 2023-02-28), where we started to no longer use
>> docker.py and its image_matches_dockerfile() to skip image builds.
>>
>> Is this new behavior by design? Or perhaps do we have some local
>> docker misconfiguration that is not correctly using caches?
>
> Hi,
>
> We started relying on docker for the cache. Are you using docker or
> podman? There should be a RUNC variable in config-host.mak that you can
> check.
>
> And for the record, which version of either podman or docker?
>
>
> Alex,
>
> I think we might need to add DOCKER_BUILDKIT=1 $(RUNC) ... to properly
> make use of caching with docker. As for podman, I'm seeing conflicting
> information on the web as to whether it even supports caching.
As opposed to --build-arg BUILDKIT_INLINE_CACHE=1 or both?
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: hexagon: check-tcg rebuilding up to date image
2023-03-04 12:58 ` Alex Bennée
@ 2023-03-06 11:55 ` Matheus Tavares Bernardino
2023-03-06 12:39 ` Fabiano Rosas
1 sibling, 0 replies; 6+ messages in thread
From: Matheus Tavares Bernardino @ 2023-03-06 11:55 UTC (permalink / raw)
To: alex.bennee; +Cc: farosas, philmd, qemu-devel, quic_mathbern, tsimpson
Alex Bennée <alex.bennee@linaro.org> writes:
>
> Fabiano Rosas <farosas@suse.de> writes:
>
> >
> > I think we might need to add DOCKER_BUILDKIT=1 $(RUNC) ... to properly
> > make use of caching with docker. As for podman, I'm seeing conflicting
> > information on the web as to whether it even supports caching.
>
> As opposed to --build-arg BUILDKIT_INLINE_CACHE=1 or both?
For me, `DOCKER_BUILDKIT=1 $(RUNC)` seems to do the trick with no
need for `--build-arg BUILDKIT_INLINE_CACHE=1`.
In fact, the latter appears to be ignored by my docker instalation:
"[Warning] One or more build-args [BUILDKIT_INLINE_CACHE] were not consumed"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: hexagon: check-tcg rebuilding up to date image
2023-03-04 12:58 ` Alex Bennée
2023-03-06 11:55 ` Matheus Tavares Bernardino
@ 2023-03-06 12:39 ` Fabiano Rosas
1 sibling, 0 replies; 6+ messages in thread
From: Fabiano Rosas @ 2023-03-06 12:39 UTC (permalink / raw)
To: Alex Bennée; +Cc: Matheus Tavares Bernardino, qemu-devel, philmd, tsimpson
Alex Bennée <alex.bennee@linaro.org> writes:
> Fabiano Rosas <farosas@suse.de> writes:
>
>> Matheus Tavares Bernardino <quic_mathbern@quicinc.com> writes:
>>
>>> Hi,
>>>
>>> We noticed that local `make check-tcg` is rebuilding the docker image
>>> for qemu-hexagon at every run, whereas previously it would say "Image is
>>> up to date" and move on.
>>>
>>> This was changed at 0b1a649047 (tests/docker: use direct RUNC call to
>>> build containers, 2023-02-28), where we started to no longer use
>>> docker.py and its image_matches_dockerfile() to skip image builds.
>>>
>>> Is this new behavior by design? Or perhaps do we have some local
>>> docker misconfiguration that is not correctly using caches?
>>
>> Hi,
>>
>> We started relying on docker for the cache. Are you using docker or
>> podman? There should be a RUNC variable in config-host.mak that you can
>> check.
>>
>> And for the record, which version of either podman or docker?
>>
>>
>> Alex,
>>
>> I think we might need to add DOCKER_BUILDKIT=1 $(RUNC) ... to properly
>> make use of caching with docker. As for podman, I'm seeing conflicting
>> information on the web as to whether it even supports caching.
>
> As opposed to --build-arg BUILDKIT_INLINE_CACHE=1 or both?
Both. As I understand it, DOCKER_BUILDKIT=1 enables buildkit and
BUILDKIT_INLINE_CACHE=1 embeds metadata in the image so that when you
push/pull the metadata goes along (as opposed to having the cache as a
separate artifact from the image).
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-03-06 12:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-03 18:19 hexagon: check-tcg rebuilding up to date image Matheus Tavares Bernardino
2023-03-03 22:20 ` Matheus Tavares Bernardino
2023-03-03 22:01 ` Fabiano Rosas
2023-03-04 12:58 ` Alex Bennée
2023-03-06 11:55 ` Matheus Tavares Bernardino
2023-03-06 12:39 ` Fabiano Rosas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.