Dashboardfossilizefossilize: codeCacheBlobPath is shared …

fossilize: codeCacheBlobPath is shared across concurrent platform builds — race condition if host is one of many platforms

Category: gotcha
Confidence: 1.00
ID: 019eb3b5-8867-7af4-bddb-cd5ed2262561
Project ID: b075a555-f2ea-4652-a165-2e3407d916e7
Cross-project: No
Recalled in other projects: 1
Source session: (none)
Created: 2026-07-16 21:33:21
Updated: 2026-07-16 21:33:21

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 2026-07-22

Content

Trap: createBinaryForPlatform runs concurrently for all platforms. The code-cache blob path (codeCacheBlobPath) is a fixed path derived from the config, not per-platform. If the host platform is included in a multi-platform build, concurrent runs could race on reading/writing the blob file. Looks safe because only the host branch writes it, but concurrent reads from other platforms during the write window are possible. Fix: generate the host blob sequentially before spawning concurrent platform builds, or use a per-run temp path.

Move to: