agentleFS
bkraad47bkraad47/ramen/skills/test/SKILL.md

test

Skill4 starsChanged 27 days agoBSD-3-ClauseView on GitHub

Run Ramen's test suite (Rust node, Python runtime, Python console, cross-component harness) with the 90% coverage gate, and read the state snapshot first. Use when asked to test, verify, check coverage, or confirm a change didn't break anything.

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-context-isolation, agentica-infrastructure and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 154 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Read facts/STATE.md, then docs/CONTRACTS.md for the area you're touching — the binding spec for what correct behavior looks like.

    line 18
  2. Very specific:

    Run make test (equivalently make test-runtime test-node test-console one at a time).

    line 20
  3. Very specific:

    Run make lint — ruff (Python, shared ruff.toml), cargo fmt --check + cargo clippy -- -D warnings (Rust), helm lint (both charts, both …

    line 22
  4. Very specific:

    If your change touches tests/ (cross-component conformance/e2e), run cd tests && uv sync -q && uv run pytest -q.

    line 25
  5. Very specific:

    If your change touches multi-zone behavior (autoscale, rebalance, worker routing), bring up a local kind cluster (deploy/kind/up.sh) and …

    line 28
  6. Distinctive:

    Write the report as a short paragraph, not a new file: what ran, pass/fail counts, coverage per component, anything skipped and why.

    line 31
  7. Distinctive:

    Never lower the 90% coverage gate or add a blanket coverage exclusion to make a run pass — fix the gap or justify a narrow, commented …

    line 46
  8. Very specific:

    Never skip a test by commenting it out or deleting it to unblock a run.

    line 49

“Common” is measured: kept by at least 6 in 10 of the 154 edited versions of this file we could read. “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

Test Ramen

Any coding agent — Claude Code, Cursor, Copilot, Gemini CLI, or a human — can run this. No agent-specific tooling required: a shell and the languages' own toolchains (uv, cargo) are enough.

Inputs

  • A working tree of this repo, checked out (submodule or standalone clone).
  • uv and cargo installed (rust-toolchain.toml pins the Rust version; uv resolves Python 3.14 itself).
  • Optional: docker (for make demo / the compose stack), kubectl + kind (for tests/kind/), a real Postgres if testing storage/postgres.py's live-integration case.

Steps

  1. Read facts/STATE.md, then docs/CONTRACTS.md for the area you're touching — the binding spec for what correct behavior looks like.
  2. Run make test (equivalently make test-runtime test-node test-console one at a time). Each component enforces --cov-fail-under=90; a run below that threshold is a failure, not a warning.
  3. Run make lint — ruff (Python, shared ruff.toml), cargo fmt --check + cargo clippy -- -D warnings (Rust), helm lint (both charts, both providers), terraform fmt -check (both clouds), actionlint and shellcheck when installed.
  4. If your change touches tests/ (cross-component conformance/e2e), run cd tests && uv sync -q && uv run pytest -q. Suites that need infrastructure they can't find (a built node-rs binary, a live console URL, a kind cluster) skip with a stated reason — that's expected locally; CI provides what each suite needs.
  5. If your change touches multi-zone behavior (autoscale, rebalance, worker routing), bring up a local kind cluster (deploy/kind/up.sh) and run deploy/kind/test.sh — this is the only suite that exercises real Kubernetes HPA/Deployment scaling, not a mock.
  6. Write the report as a short paragraph, not a new file: what ran, pass/fail counts, coverage per component, anything skipped and why. If nothing changed since the last run, say so instead of re-running everything from scratch.

Validate

(hand this section, verbatim, to a second agent or a fresh review pass — it should not need the context above)

  • V1 make test exits 0; no component's coverage output falls below 90%.
  • V2 make lint exits 0.
  • V3 If tests/ was touched: cd tests && uv run pytest -q — no unexpected failures (skips with a reason are fine; a failure or an unexplained skip is not).
  • V4 If the change affects deploy config (deploy/helm/, deploy/terraform/): helm lint/helm template both providers, terraform validate on any .tf file touched.
  • V5 The commit/PR message states the coverage numbers and what, if anything, was skipped and why.

Boundaries

  • Never lower the 90% coverage gate or add a blanket coverage exclusion to make a run pass — fix the gap or justify a narrow, commented exclusion for genuinely untestable lines (e.g. a real-cloud-only code path already covered by a fake-backed unit test, matching the pattern in console/src/ramen_console/storage/).
  • Never skip a test by commenting it out or deleting it to unblock a run; mark it xfail/skip with a reason and open a note in facts/STATE.md or the PR description instead.
  • A kind-cluster test run changes real cluster state (scales deployments). Restore what you changed (kubectl scale) before finishing if a later suite in the same session depends on a clean baseline — a zone left scaled up raises the floor for every test that runs after it.

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.