Repository navigation
hydo 0.1.0
hydo 0.1.0 is the first public release.
hydo runs a whole system — your services, their databases and queues, and the workload that drives them — inside a virtual machine whose execution is bit-for-bit deterministic. It injects faults from a seed: process kills and pauses, network loss and delay, one-way partitions, power cuts at a chosen disk flush, disk errors and lying disks, clock jumps, and faults in fake outside services. It explores many such schedules, checks your system's properties after each run, and shrinks every failure to a short schedule string that replays exactly.
This is an experimental release. Run it on a machine you can dedicate to testing.
Platforms
| Linux | macOS | |
|---|---|---|
| Engine | hvx, our own VT-x kernel module | Hypervisor.framework |
| Hardware | x86_64 with an Intel CPU and VT-x, bare metal recommended | Apple Silicon |
| Needs | root (sudo) for the kernel module, the running kernel's headers, a C compiler and make |
nothing beyond macOS 13 or later |
| Guests | x86_64 Linux | arm64 Linux |
Install
Linux:
tar xzf hydo-linux-0.1.0.tar.gz
./hydo-linux-0.1.0/install.sh
export PATH="$HOME/.hydo/bin:$PATH"
hydo doctormacOS:
tar xzf hydo-mac-0.1.0.tar.gz
./hydo-mac-0.1.0/install.sh
export PATH="$HOME/.hydo/bin:$PATH"
hydo doctorEach tarball's README.md (Linux) or QUICKSTART-mac.md (macOS) walks from installing to a first exploration and a reproduced failure. No Python, Go, Rust, Nix or internet access is needed.
Files
| File | sha256 |
|---|---|
hydo-linux-0.1.0.tar.gz |
58aab3b1898826d4ec9c892445099352a0b666fd11a74feee33c98129d4c491c |
hydo-linux-0.1.0-sources.tar.gz |
ea8a62f326442fd451e91024fc174818fe89946e775bd9df88fc0f9531c34b8f |
hydo-mac-0.1.0.tar.gz |
5c02e7f364424e97aad67a7fa91b73d29a8466e5fe17ea4bd540edc06dac9806 |
hydo-mac-0.1.0-sources.tar.gz |
27527e482e299b75fa60df0194deb90d6f180165bec3d1d80e53061d6b1b850e |
SHA256SUMS lists all four. Each file is reproducible: building it again from the commit it was built from gives the same bytes (the Linux tarball and both sources archives from 1a88c31, the macOS tarball from e29c664, an ancestor of it; the macOS programs also need the same build folder, because their Mach-O build ID depends on it). docs/RELEASING.md describes the build.
Licenses
- hydo is licensed under Apache-2.0.
- The Linux kernel module (
hv/hvx) is licensed under GPL-2.0. - Each tarball bundles third-party software, such as the guest Linux kernel, busybox and the iproute2 tools.
THIRD-PARTY.mdand thelicenses/folder in each tarball list every component with its version and license. - The
-sourcesarchive next to each tarball contains the corresponding source of every copyleft component, with our patches and build recipes.
Known limitations
- Where a failure replays. A failure replays exactly with the same engine, image and hydo version. A failure found on Linux cannot be replayed on a Mac. Replay on a second machine of the same kind is expected but not yet tested: every recorded run so far was made on one Intel machine and one M2 Mac.
- CI runners. Hosted CI runners are virtual machines without VT-x passthrough, so Linux CI needs a self-hosted bare-metal runner.
- What has been tested.
- The Linux engine was tested on one Intel CPU model with Ubuntu's 6.8 kernel. On other kernels the module may not compile.
- On hybrid desktop CPUs (performance and efficiency cores) the exact branch clock is not available.
- Untested paths. The module install path (
install.shwithout--no-module) and the optional udev rule for running withoutsudohave not yet been exercised on a fresh machine. Please report what you see. - AMD. AMD processors are not supported by the Linux engine.