# Rewind VM: a flaky build you only catch once

DevFeed: [Rewind VM: a flaky build you only catch once](<https://devfeed.tech/articles/rewind-vm-a-flaky-build-you-only-catch-once-64486.md>)

Original publisher: [Read original article](<https://fzakaria.com/2026/10/03/rewind-vm-a-flaky-build-you-only-catch-once>)

Published: 2026-10-04T02:52:00Z

Content type: article

Language: en

Sources: [Farid Zakaria's Blog](<https://devfeed.tech/sources/farid-zakaria-s-blog.md>)

Topics: [Chaos Engineering](<https://devfeed.tech/topics/chaos-engineering.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [make](<https://devfeed.tech/topics/make.md>), [NixOS](<https://devfeed.tech/topics/nixos.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [ci](<https://devfeed.tech/tags/ci.md>), [flaky](<https://devfeed.tech/tags/flaky.md>), [laptop](<https://devfeed.tech/tags/laptop.md>), [test](<https://devfeed.tech/tags/test.md>)

## AI overview

Rewind VM makes Linux builds and test runs reproducible by controlling external events and allowing developers to replay or explore perturbed thread schedules. The article demonstrates how it exposes and helps fix a dining philosophers deadlock, while noting limits such as one virtual CPU, no network access beyond loopback, and replay on the same CPU vendor.

## Source excerpt

If a test fails on CI and nobody can reproduce it, did it really fail? 🧘 Nix gives me a build that is a function of its inputs via the extensional model. The same derivation, produces the same store path, and if I am lucky, the same bytes. What Nix does not give me is the same run.1 A test suite with a race in it may pass on my laptop, fail once on CI, and when I rebuild it to look, it passes again. A run is the sequence of events that happen in a process to produce a result. A build is a run of a derivation. ↩