agentleFS
kernelkernel/hypeman/skills/hypeman-remote-linux-tests/SKILL.md

hypeman-remote-linux-tests

Skill373 starsChanged 22 days agoMITView on GitHub

Run Hypeman tests on a remote Linux host that supports the Linux hypervisors. Use when validating cloud-hypervisor, Firecracker, QEMU, embedded guest artifacts, or Linux-only integration behavior on a server over SSH.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill to run Hypeman tests on a remote Linux server in a way that is repeatable and low-friction for any developer.

    line 8
  2. Very specific:

    Ensure the remote test shell includes /usr/sbin and /sbin on PATH.

    line 13
  3. Distinctive:

    Run the smallest relevant test target first.

    line 15
  4. Distinctive:

    Treat host-environment failures separately from product failures.

    line 16
  5. Very specific:

    Prefer a short path such as ~/hm, ~/hypeman-test, or another short directory name.

    line 20
  6. Distinctive:

    If a new test creates temporary directories for guest data, prefer a short root like:

    line 24
  7. Distinctive:

    Before running Linux hypervisor tests, make sure the remote clone has the generated guest binaries and embedded VMM assets:

    line 32
  8. Distinctive:

    If the main development is happening locally and the Linux host is only for execution, sync only the files you changed rather than …

    line 50
  9. Very specific:

    After syncing, re-run the bootstrap command if the changes affect embedded binaries, generated assets, or files referenced by go:embed.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hypeman Remote Linux Tests

Use this skill to run Hypeman tests on a remote Linux server in a way that is repeatable and low-friction for any developer.

Quick Start

  1. Pick a short remote working directory under the remote user's home directory.
  2. Ensure the remote test shell includes /usr/sbin and /sbin on PATH.
  3. Bootstrap embedded artifacts and bundled binaries before running go test.
  4. Run the smallest relevant test target first.
  5. Treat host-environment failures separately from product failures.

Remote Workspace

Prefer a short path such as ~/hm, ~/hypeman-test, or another short directory name.

Cloud Hypervisor uses UNIX sockets with strict path-length limits. Long paths from default test temp directories or deeply nested clones can make the VMM fail before the actual test starts.

If a new test creates temporary directories for guest data, prefer a short root like:

mktemp -d /tmp/hmcmp-XXXXXX

Remote Bootstrap

Before running Linux hypervisor tests, make sure the remote clone has the generated guest binaries and embedded VMM assets:

export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH
make ensure-ch-binaries ensure-firecracker-binaries ensure-caddy-binaries build-embedded

Why:

  • go:embed patterns in the repo require the bundled binaries to exist at build time.
  • mkfs.ext4 is commonly installed in /usr/sbin or /sbin, not always on the default non-login shell PATH.
  • Running go test before this bootstrap often fails during package setup, not during test execution.

QEMU is usually provided by the host OS, so there is no matching bundled ensure-qemu-binaries target. If QEMU tests fail before boot, verify the system qemu-system-* binary separately.

Syncing Local Changes

If the main development is happening locally and the Linux host is only for execution, sync only the files you changed rather than recloning every time.

Typical pattern:

rsync -az lib/instances/... remote-host:~/hypeman-test/lib/instances/

After syncing, re-run the bootstrap command if the changes affect embedded binaries, generated assets, or files referenced by go:embed.

Common Host Failures

Classify failures quickly:

  • Missing embedded assets:
    • symptom: package setup fails with pattern ... no matching files found
    • fix: run make ensure-ch-binaries ensure-firecracker-binaries ensure-caddy-binaries build-embedded
  • mkfs.ext4 not found:
    • symptom: overlay or disk creation fails with exec: "mkfs.ext4": executable file not found
    • fix: add /usr/sbin:/sbin to PATH, then retry
  • Cloud Hypervisor socket path too long:
    • symptom: path must be shorter than SUN_LEN
    • fix: shorten the remote repo path and any temp/data directories used by the test
  • /tmp or shared test-lock issues:
    • symptom: test-specific lock or temp-file permission failures
    • fix: prefer no-network test setup when the test does not require networking; avoid unnecessary shared lock files

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.