Oriel — AI & technology worth noticing, every day.

Deterministic Simulation Testing in Celld

Web page · https://celld.dev/docs/engineering/deterministic-simulation-testing

First seen by Oriel on .

AI summary

celld uses deterministic simulation testing to explore distributed execution orders, reproduce failures by seed, and find and fix a race that could prevent a scheduled alarm from running.

  • The simulator runs celld’s production event-handling code while controlling request order, asynchronous tasks, simulated time, and object-storage successes or failures.
  • After each action, invariant checks inspect responses and stored data; identical code, settings, and seed reproduce the same run.
  • A delayed cleanup for a deleted 10:00 alarm could remove the wake entry needed by a newly set 10:05 alarm, despite both requests returning success.
  • celld now gives each alarm its own object-storage entry, so cleanup of an older alarm cannot delete the newer alarm’s entry.
  • The failing execution order became a regression test that checks the wake-entry invariant throughout the run; the simulator remains under development.

#deterministic simulation testing #distributed systems #cloudflare workers #durable objects

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
Hacker News50024805https://celld.dev/docs/engineering/deterministic-simulation-testing/ Read discussion