Repository navigation
hydo 0.5.0
hydo runs your whole system (its services, their disks and network) in a virtual machine,
breaks it with faults, and replays every failure exactly. This release gives each image a new
fingerprint epoch with fixes inside the guest, makes explorations faster and easier to judge,
adds faults of a disk's blocks and a kill at the exact moment of an event, and ships the
onboarding skill inside hydo's own release. Projects that pin hydo_version: "0.3" keep
working.
Before you upgrade
- From 0.4.1, run
hydo updatetwice.hydo updateof 0.4.1 updates hydo only. Run
hydo updateonce more with 0.5.0 to bring every copy of the skill to 0.5.0. hydo 0.4.1
reads the skill from the oldskill-vreleases only. From 0.4.0 or older, upgrade by hand as
docs/INSTALL.md, section "Upgrading", says, then runhydo updatewith 0.5.0 for the skill. - Build your images again: they get new fingerprints. An image that 0.5.0 builds is at the
fingerprint epoch 5. An image built by 0.4.x keeps its epoch, its bytes and its fingerprints
under 0.5.0, so a saved fingerprint stays valid until you build again. Fingerprints of
different epochs are not compared;hydo reprothen compares the verdicts. - What epoch 5 changes inside an image:
- An image service (a service from a Docker or OCI image) binds its system folders and its
mounts:once per boot under one lock. Before, a readiness check that started with the
service could bind/deva second time over the service's/dev/shmtmpfs. - Each image service has a
/tmpof its own, as a container has, and/sysis bound
recursively, so it finds the cgroup2 files. A program that shared files in/tmpwith
another service or with the workload no longer sees them; use a folder ofmounts:. - On hvx, an x86_64 image keeps time with its TSC (
guest.exact_tick): the guest's clock
follows the virtual TSC at every uptime. Before, a busy guest's clock nearly stopped after
some minutes, and long runs endedTIMEOUT workload. A verdict that depends on the guest's
timeouts can change. - On the Mac, an image's root keeps its hard links, so an image with many hard links takes
much less guest RAM. - A timed pause of threads (
P=workload/<thread>) takes the workload's largest session and
leaves out a thread that ended.
- An image service (a service from a Docker or OCI image) binds its system folders and its
- Drawn schedules have new texts. The explorer writes
dseed=0where the disk's seed
decides nothing, so an exploration of the same seeds prints other schedule strings than 0.4.x.
A saved regression keeps its text and its run. - On Linux with hvx, keep the kernel module you have. It did not change since 0.3.1.
- The onboarding skill has hydo's version, 0.5.0. It comes in this release as
hydo-skill-0.5.0.tar.gz; the old skill releases 1.0.0 to 2.4.0 count as older.
New
- Explorations.
- A schedule that ran once runs once: a first run or a shrink candidate whose schedule the
exploration already ran takes the earlier result without a VM (--rerun-repeatsruns them
all). stats.jsonandhydo stats: the curve of new behaviour with a judgement, the cost by
role and by worker, the faults drawn againstfaults:, and how many runs fit in a budget.
hydo reportand its web page show it.hydo explore --shard I/Nandhydo explore --merge DIR... --out DIRsplit one exploration
over many machines and merge the parts without a VM. The workflow
.github/workflows/explore.ymlruns up to 20 parts on GitHub's KVM runners.- The explorer shrinks a service that does not start again and a workload that does not end.
The system's detection of damage is shrunk only with--shrink-detected-damage. - On the Mac, workers of one exploration share their guest RAM: a worker holds only the pages
it writes, so more workers fit. - Each problem of
hydo reportnames thehydo runcommand that makes its run directory, and
hydo inspect diagnose <explore dir> --problem Nreads it.
- A schedule that ran once runs once: a first run or a shrink candidate whose schedule the
- Faults.
- Faults of the disk's blocks on the Mac and KVM engines: a torn write at a power cut
(torn=), a misdirected write (mis=), bad sectors (lse=, andG=<svc>@<at>:bad|rot
under a file), and a request without an answer (hang=);hydo explore --block-faults. kill-now-<svc>kills a service at the moment of a console event, before any of its
threads runs on;hydo explore --kill-now.
- Faults of the disk's blocks on the Mac and KVM engines: a torn write at a power cut
- Checks and evidence.
- Which error paths ran (
error_paths: true, the Mac engine):hydo report --pathslists the
error-handling places that only faults reached and those that never ran. - Walks through a web app keep a filmstrip of every action, and a failing run keeps the
Playwright trace of every step, also across a power cut.browser.read_backchecks that
the pages show every object the server acknowledged. - The shell assertion SDK
hydo/sdk/hydo_assert.shis in both releases (hydo guide hydo_assert.sh).
- Which error paths ran (
- Onboarding.
hydo compose,hydo k8sandhydo-fetch-imageread the credential thatdocker login
saved, for images in private registries, andhydo compose --from-dockersaves an image
from the local Docker.hydo buildestimates whether an image's roots fit into the Mac's guest RAM and hvx's disk,
and warns before the build.hydo composewritesroot.share_images: truefor services of one image.- The clock audit leaves out test code and ranks first the code of the programs that the
services run. hydo update,hydo skill updateandhydo doctorwork under GitHub's rate limit: they
sendGH_TOKEN,GITHUB_TOKENorgh auth tokento GitHub's API only, and say when the
limit resets.
- Function fuzzing (
hydo fuzz). Enumerations, trait methods and values built by a
constructor; generic containers, private error fields, constructors without arguments and
fallible constructors; clearer reports when a test module does not build.
Fixed
- The s3 emulator's proxy keeps the service's
Content-Lengthand whole bodies, so uploads
through it no longer vanish. rclone answers conditional writes with 412 as S3 does. hydo exploreandhydo runexit with status 5 when they refuse before any run, with a JSON
line under--json.- A root too big for the guest's RAM, and a run that used up the engine's exit budget, get
verdicts of their own. - The quickstarts were checked against the release candidates (release step 6a): the Linux page
names the fingerprint epoch 5, both pages say which failureshydo exploreshrinks since this
release, and their exploration results, minimal schedules and fingerprints are this release's.
Known and deferred
- On KVM, a fingerprint on Intel differs from the one on AMD; the verdicts are the same.
- The deferred findings of 0.4.0's docs review stay deferred (0.4.0's release notes).
- The README's animation shows an exploration of 30 runs, not the quickstart's 20 (deferred since
0.4.0: the animation is drawn from a recorded run and does not change hydo's behaviour). - On hvx, the guest's clock of an image built by 0.4.x keeps the old timer tick; build the image
again with 0.5.0 to get the clock that follows the virtual TSC.
Downloads
Every file below is built from the release commit 4d43a6bd2a7bb0e3a2da54597c625cbeffd128e7, the commit of the tag v0.5.0;
hydo --version names it.
hydo-linux-0.5.0.tar.gz(x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
hydo-mac-0.5.0.tar.gz(Apple Silicon Mac, signed and notarized).hydo-linux-0.5.0-sources.tar.gzandhydo-mac-0.5.0-sources.tar.gz: the corresponding source
of the third-party software in each tarball (THIRD-PARTY.md in each tarball lists it).hydo-mac-0.5.0-signatures.tar.gz: the Mac programs' signatures. The published Mac tarball is
the unsigned build of this tag with these signatures attached
(hydo/dist/mac/attach-signatures.sh, docs/design/signing.md).hydo-skill-0.5.0.tar.gz: the onboarding skill, the plugin folder ashydo/.hydo skill updateandhydo updateinstall it after they check its line inSHA256SUMS.SHA256SUMSlists all six files.