Skip to content

Conversation

When multiple exports run in parallel inline cache exporting
can run for each of them into the same cache exporter instance.
Inline cache exporter can only be invoked multiple times
sequentially. There is a 'reset()` call after every invocation
that completely switches out the internal cache chains collector.

Before v0.25 this caused some corruption in inline cache
(or some unknown error). Since v0.25 this case is likely to
trigger internal consistency check error and fail the build.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@github-actions github-actions bot added area/hack building buildkit itself area/dependencies Pull requests that update a dependency file area/remotecache area/docs area/solver labels Oct 6, 2025
tonistiigi and others added 4 commits October 6, 2025 16:54
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Don't fail whole cache export on subbranch error.

This behavior changed in v0.25, but while before
error was not returned, the cache chains were either
too agressively dropped or the whole exported
cache chain got corrupted.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@github-actions github-actions bot added area/dockerfile area/testing area/client area/frontend and removed area/dependencies Pull requests that update a dependency file labels Oct 6, 2025
@tonistiigi
Copy link
Member

I think we can skip #6273 . It is safe, but I needed to move code around too much for a patch release.

@crazy-max
Copy link
Member Author

crazy-max commented Oct 7, 2025

I think we can skip #6273 . It is safe, but I needed to move code around too much for a patch release.

Ok I was thinking it would be helpful to run tests on moby

Edit: We can use another ref to run buildkit tests on moby if we want to.

While the custom fields used embedded Go struct field,
this does not work for map types and needs custom JSON
marshaller to make sure custom fields appear without wrapper.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi merged commit 1d4469a into moby:v0.25 Oct 7, 2025
140 checks passed
@crazy-max crazy-max deleted the v0.25_picks_0.25.1 branch October 7, 2025 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants