Read first
docs/development/adding-tests: writing, ordering and running tests; CI lanesdocs/getting-started/build-test-recipes: what eachjustrecipe doesdocs/abi/ktap-test-output: KTAP wire format, runner flags, log gatesdocs/abi/boot-options: every kernel command-line optiondocs/getting-started/qemu-options: variables, disks and devices QEMU getsdocs/development/diagnostics: hangs, oopses, panics, the diagnostic consoledocs/getting-started/troubleshooting: setup, build, boot or test failures
Rules a change must keep
- A test name never carries an order (no
aaa/zz). Useorder = first|last
or rank = N; shared setup is a fixture!, which runs whatever the filter.
- A test that ends the machine or needs the host is
FLAG_EXPLICIT
(utest!(…, explicit)); it runs only when tests.run is its full name.
- A utest of an unprivileged path declares
caps = none, uid = 1000; the
default, uid 0 with every capability, hides the refusal.
- The
just testfilter is positional, and names begin with the crate:
just test 'slopos_mm::*', never mm::*.
- Adding, renaming or removing a test changes
scripts/gates/tests/tests.txt:
re-emit it in the same commit.
- A ratchet failure (
tests,lockdep,quota,fsperf) is a measurement to
re-take: builddir/run_tests gate <name> --emit-allowlist --log <capture>,
and name the lock, test or account in the message. Never hand-edit
scripts/gates/.
- The
schedgate is not a ratchet: a failure is a CPU no longer eligible
for placement. Fix the kernel, not the file.
- No gate reads a cached compiler answer:
CI_RUSTC_WRAPPERwraps build
steps only.
- A new CI check joins the lane that has its inputs.
kcommand!goes in a kernel-only crate. Triggers only queue; commands run
at the bottom half, never in NMI; no program reaches a destructive one.
- Before a commit:
cargo fmt --all,just ci(or the lanes touched; on
SlopOS just precommit), then the caveman-commit skill writes the message.
Checks
just test 'slopos_testing::*': the harness's own self-testsjust check-tests-host: the Go runner's and log gates' unit testsjust ci-suite: the suite booted once, its capture graded as CI grades itjust check-capture: every log gate,quotaandfsperftoo, over that capturejust ci: every CI lane, in CI's order
Not yet in the docs
Read pending.md beside this file when it exists. A change that adds or alters an invariant the docs do not state appends it there in the same commit.