Files
buildkit/solver
Tonis Tiigi b94ff2bc54 solver: fix race on merged edge secondary exporters
When a job merged an edge into another, mergeTo appended the dependency
cache keys to the target edge's secondaryExporters on the scheduler
goroutine. Cache export reads the same slice through the exporter of a
result loaded from that edge, and runs outside the scheduler, e.g. for
build history provenance or cache export while another build is still
running and merging into the shared edge.

Guard secondaryExporters with a mutex and let ExportTo iterate over a
copy, so nested exports run without holding the lock.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-10-28 20:57:07 -07:00
..
2026-08-26 02:06:18 -07:00
2026-10-22 11:11:56 +02:00
2025-05-02 12:19:17 -07:00
2026-05-14 10:13:21 -07:00
2026-10-05 17:49:26 -07:00