celld's simulator uncovers hidden alarm race in Cloudflare Workers runtime

Deterministic Simulation Testing in Celld

celld's simulator uncovers hidden alarm race in Cloudflare Workers runtime

celld, a runtime for Cloudflare Workers and Durable Objects, uses deterministic simulation testing to reproduce bugs that depend on event ordering. The simulator controls task scheduling, storage responses, and simulated time, using seeds to replay failures. It found an alarm race where a delayed cleanup deleted a wake entry needed by a new alarm, causing missed alarms after a node restart. The team fixed the design and added a regression test.

When the simulator finally advanced that cleanup, it removed the 10:00 wake entry that the new alarm still needed.

More from this day

2026-10-11