diff --git a/AGENTS.md b/AGENTS.md index 41b8dfb..c6a57e6 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,7 +18,7 @@ Canonical guidance for AI coding agents in this repo (no CLAUDE.md; this file is Enter the toolchain with `devenv shell` (Rust, pkg-config, libsystemd, nushell, otelcol). Without it you need a Rust toolchain, `pkg-config` and the libsystemd dev files. -All checks go through one runner, `dev/dev-test.nu`. `devenv shell -- dev-test …` runs the devenv script on PATH, and the same command works in an interactive shell. zsh users add `source <(nu dev/dev-test.nu completions zsh)` to `.zshrc` after `compinit`. An interactive `devenv shell` installs bash completion. `nu dev/dev-test.nu --help` lists the underlying cargo and nix commands. +All checks go through one runner, `dev/dev-test.nu`. `devenv shell -- dev-test …` runs the devenv script on PATH, and the same command works inside an interactive `devenv shell`. zsh users add `source <(nu dev/dev-test.nu completions zsh)` to `.zshrc` after `compinit`. An interactive `devenv shell` installs bash completion. `nu dev/dev-test.nu --help` lists the underlying cargo and nix commands. ```sh devenv shell -- dev-test lint # cargo fmt --check, clippy -D warnings, cargo tree -i openssl (empty) diff --git a/docs/consolidator.md b/docs/consolidator.md index 3a161af..65fb7c0 100644 --- a/docs/consolidator.md +++ b/docs/consolidator.md @@ -8,7 +8,7 @@ devenv shell -- dev-test vm peers # nix build .#tests.x86_64-linux.peers -L Against a tree without the consolidator the test stops at the first peers assertion; that is expected, the test is written ahead of the feature. `dev/dev-test.nu` is the repository's test runner. `devenv shell -- dev-test --help` lists its subcommands and the command behind each. In an interactive `devenv shell`, `dev-test …` is that same script. -In Nushell the runner is a module. Load it once, for example in `config.nu`, and `dev-test unit`, `dev-test vm peers`, ... complete natively. Integration-test name completion is cached in `target/skyg-test-filters.cache`, keyed on the newest mtime of the Rust sources and the Cargo manifests. +In Nushell the runner is a module. Load it once, for example in `config.nu`, and `dev-test unit`, `dev-test vm peers`, ... complete natively. Integration-test name completion is cached in `target/skyg-test-filters.cache` at the repo root (not relative to the current directory, so completion works from any subdirectory), keyed on the newest mtime of the Rust sources and the Cargo manifests. A failing check raises a catchable error instead of exiting, so a red `dev-test unit` does not close the Nushell session that loaded the module; script mode still exits non-zero. ```nu use /home/you/src/skyg-linux-tracker/dev/dev-test.nu * # absolute path to dev/dev-test.nu