Skip to content

hydo 0.3.4

Choose a tag to compare

@kakoc kakoc released this 15 Nov 13:12
dee7da6

hydo 0.3.4

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 tests what happens during
an upgrade, pauses single threads on every engine, and helps you find the rules your system
promises and the outside services it calls. Projects that pin hydo_version: "0.3" keep working.

Before you upgrade

  • Images built by 0.3.4 get new fingerprints on the Mac and on KVM. The fingerprint epoch is
    3 now. An image built by 0.3.4 boots a guest kernel with cgroups on the Mac engine and on KVM
    (Image-explore-cg, bzImage-kvm-cg), so its runs have other timing and other fingerprints
    than the same image built by 0.3.3. A timing-dependent verdict can change too: on KVM the
    quickstart's lost write now shows with disk=cut | run C=11 R=everysec. An image built before
    keeps its kernel, its fingerprints and its verdicts. With hydo's kernel module (hvx) a rebuilt
    image has new bytes, and its fingerprints and verdicts stay.
  • On Intel, KVM fingerprints no longer depend on the CPU model for images built by 0.3.4. They
    still differ from the fingerprints on AMD. The verdicts are the same on both.
  • Rebuilt images with fakes, proxies or generated gRPC drivers get new bytes. hydo's own guest
    programs (hydo-world, hydo-world-tls, hydo-grpc) carry the version, and hydo-world
    gained features.
  • On Linux with hvx, keep the kernel module you have. It did not change since 0.3.1.
  • The onboarding skill is 2.3.1. Claude Code offers the update (claude plugin update hydo@hydo). For other AI tools, run hydo skill update.

New

  • Upgrades. A service can list its versions (services[].versions), and the token U=
    switches it to another version during a run, one member of a cluster at a time, with an
    optional rollback. hydo explore --upgrades draws such switches. The example
    hydo/onboard/examples/etcd-upgrade reaches etcd issue 19557 with one token.
  • Pauses of single threads on every engine. P=workload/<thread>@... stops only the named
    threads of your test program. Before, only hvx could do it.
  • Rules your system promises. hydo rules scan lists what your project promises in its
    schema, API, documentation and tests. hydo rules check runs candidate rules on runs without
    faults and keeps only the ones that hold. hydo rules scan --kind clock finds code that
    measures time with the wall clock and proposes clock steps for it. The onboarding skill uses
    both.
  • Outside services. emulators: runs a pinned Stripe, SMTP or S3 emulator behind a fault
    proxy. hydo fake from-openapi writes a fake from an OpenAPI description, with error answers
    (errors:). A proxy route can be idempotent: true.
  • Faults aimed at outside services. hydo explore --protocol-cover gives each schedule one
    fault of a fake or proxy (H=), walking over its routes, steps and fault kinds, with the routes
    the system really called first. On the web-shop example it found the double order at seed 3
    instead of seed 120.
  • Kubernetes manifests. hydo k8s writes a starting hydo.yaml from Kubernetes manifests, a
    Helm chart or a Kustomize folder. hydo onboard runs it when it finds one.
  • Web apps. browser: runs your own Playwright tests unchanged against the system in the
    virtual machine and reports uncaught page errors, spinners that never stop, and failed requests
    the page never shows.
  • Performance changes. perf: runs each step on its own, and hydo perf compare says in
    words which step does more or less work than before. On hvx the count is the guest's retired
    branches, so an unchanged build compares as 0.000 %.
  • Storage faults on several services. G= takes a list or a group, hydo explore --corrupt-several draws it, and L=<service>@...:strict is a power loss that also stops the
    disk's periodic writeback.
  • Function contracts (a prototype, Mac engine only). // hydo: requires and ensures
    comments next to a function are checked at every call without changing the run.
  • Reports. hydo report <run dir> prints the plain summary. A problem in an exploration's
    report has numbered steps, its own hydo ci accept line and the failing service's last log
    lines. hydo explore names its fault kinds in words.

Fixed

  • A messages check gave wrong results across clock steps and power cuts, and ended a run with
    ERROR when a duplicates claim had nothing acknowledged.
  • A service that did not start again was listed as two problems.
  • hydo build refused a whole OCI image when one file name in its layers had a backslash, a
    quote or a newline (Ubuntu's systemd units have such names). It now leaves out those files and
    names them in the image record.
  • hydo build --check run before sh hydo/fetch-images.sh now says to run that script, instead
    of sending you to docker save.
  • hydo onboard with a Compose file prints one list of next steps, starting from the two
    placeholders the import wrote.
  • A power cut in a report reads "after 20 steps"; before, a cut after the last step named a 21st
    step that does not exist.
  • A problem's hydo ci accept line now says which other problem takes the same key and why.
  • hydo module build --dry-run builds nothing, and hydo module --help lists every subcommand.
  • The README, docs/INSTALL.md, docs/ONBOARD.md and both quickstarts were checked by two fresh
    readers against release candidates (release step 6a), on a Mac and on Linux with hydo's kernel
    module, and corrected: the fingerprint epoch, which engine runs several virtual CPUs, the terms
    the reports use, and how to delete outputs that root wrote.

Known and deferred

  • From the docs review, deferred to a later release:
    • A hydo ci accept key names the failing check, not the cause, so a relaxed setting and a
      faulty disk that lose the same write share one key. Changing it would change the key format
      of hydo ci and of every hydo/known-findings.yaml. The report now says when two problems
      share a key.
    • A problem made of runs that failed in two ways can show one schedule in its summary and the
      other in its web page's details.
    • For a failed check, the run page's "Why it failed" still shows the process table and the
      kernel log, which matter only for a run that stopped with an error.
    • The web page's property table can list one check twice, once as an invariant and once as an
      assertion.
    • Without the udev rule, each run leaves root-owned agent logs in hydo-out/; the Linux
      quickstart says how to delete them.
  • On KVM, a fingerprint on Intel differs from the one on AMD; the verdicts are the same.
  • Function contracts and browser: are new and were proven on one engine each (contracts on
    the Mac, browser: on hvx).

Downloads

Every file below is built from the release commit dee7da6800ad9f48242fd8e65f135cede95aedbf, the commit of the tag v0.3.4;
hydo --version names it.

  • hydo-linux-0.3.4.tar.gz (x86_64 Linux: Intel VT-x with hydo's kernel module, or KVM) and
    hydo-mac-0.3.4.tar.gz (Apple Silicon Mac, signed and notarized).
  • hydo-linux-0.3.4-sources.tar.gz and hydo-mac-0.3.4-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.3.4-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).
  • SHA256SUMS lists all five files.