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.
  1. tontinton

    In this day and age there's no excuse to not build a new distributed system without DST, the AI is not lazy.

  2. mrkn1

    > once celld has confirmed they're no longer needed

    Isn't that the same check then act race in a new spot, and is it covered by an invariant?

  3. winterqt

    Obligatory "what is deterministic simulation testing" link to https://youtu.be/4fFDFbi3toc

More from this day

2026-10-11