Skip to content

hydo 0.5.0

Latest

Choose a tag to compare

@kakoc kakoc released this 22 Nov 17:26
4d43a6b

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 update twice. hydo update of 0.4.1 updates hydo only. Run
    hydo update once 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 old skill-v releases only. From 0.4.0 or older, upgrade by hand as
    docs/INSTALL.md, section "Upgrading", says, then run hydo update with 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 repro then 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 /dev a second time over the service's /dev/shm tmpfs.
    • Each image service has a /tmp of its own, as a container has, and /sys is bound
      recursively, so it finds the cgroup2 files. A program that shared files in /tmp with
      another service or with the workload no longer sees them; use a folder of mounts:.
    • 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 ended TIMEOUT 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.
  • Drawn schedules have new texts. The explorer writes dseed=0 where 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-repeats runs them
      all).
    • stats.json and hydo stats: the curve of new behaviour with a judgement, the cost by
      role and by worker, the faults drawn against faults:, and how many runs fit in a budget.
      hydo report and its web page show it.
    • hydo explore --shard I/N and hydo explore --merge DIR... --out DIR split one exploration
      over many machines and merge the parts without a VM. The workflow
      .github/workflows/explore.yml runs 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 report names the hydo run command that makes its run directory, and
      hydo inspect diagnose <explore dir> --problem N reads it.
  • 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=, and G=<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.
  • Checks and evidence.
    • Which error paths ran (error_paths: true, the Mac engine): hydo report --paths lists 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_back checks that
      the pages show every object the server acknowledged.
    • The shell assertion SDK hydo/sdk/hydo_assert.sh is in both releases (hydo guide hydo_assert.sh).
  • Onboarding.
    • hydo compose, hydo k8s and hydo-fetch-image read the credential that docker login
      saved, for images in private registries, and hydo compose --from-docker saves an image
      from the local Docker.
    • hydo build estimates whether an image's roots fit into the Mac's guest RAM and hvx's disk,
      and warns before the build.
    • hydo compose writes root.share_images: true for 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 update and hydo doctor work under GitHub's rate limit: they
      send GH_TOKEN, GITHUB_TOKEN or gh auth token to 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-Length and whole bodies, so uploads
    through it no longer vanish. rclone answers conditional writes with 412 as S3 does.
  • hydo explore and hydo run exit 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 failures hydo explore shrinks 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.gz and hydo-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 as hydo/. hydo skill update and hydo update install it after they check its line in SHA256SUMS.
  • SHA256SUMS lists all six files.