mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-10-22 18:57:14 +00:00
The harness compared these tools against the code they replaced — Python imported from book-pipeline, podcast-pipeline and knowledge-mcp, and JavaScript copied out of the podcast media server and indexer, each pinned to a commit. All of it has since been deleted, so the live half cannot run and the golden half pins answers against a source nobody can consult. What was worth keeping was never the comparison. `KNOWN.md` argued, at length, why a dozen of these tools deliberately do something a reader would not expect: why pdfgutter measures the crop box throughout, why avplan finds the encoder rather than reading one out of the environment, why mdscrub will not manufacture a page boundary. Those arguments are about this code and stand on their own, so they are now `docs/decisions.md`, rewritten to say what each tool does and why rather than what it does differently. Binding coverage is unaffected: the bindings carry 24 tests of their own, a node smoke test against the built package, and a typecheck.
41 lines
1.0 KiB
Bash
Executable File
41 lines
1.0 KiB
Bash
Executable File
#!/bin/sh
|
|
# Everything that has to pass before a commit leaves the machine.
|
|
#
|
|
# The same script runs locally and in CI, so there is one gate and not two
|
|
# that drift apart.
|
|
set -eu
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
say() { printf '\n== %s\n' "$1"; }
|
|
|
|
say "formatting"
|
|
cargo fmt --check
|
|
|
|
say "lints"
|
|
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
|
|
|
say "tests"
|
|
cargo test --workspace
|
|
|
|
# The WebAssembly build is only ever compiled for wasm32, so `--all-features`
|
|
# above does not reach it: on any other target the module compiles to nothing.
|
|
say "webassembly"
|
|
if rustup target list --installed 2>/dev/null | grep -q wasm32-unknown-unknown; then
|
|
cargo clippy -p catena --features wasm --lib --target wasm32-unknown-unknown -- -D warnings
|
|
else
|
|
echo "skipped: rustup target add wasm32-unknown-unknown"
|
|
fi
|
|
|
|
say "docs"
|
|
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --quiet
|
|
|
|
say "documentation links"
|
|
if command -v python3 >/dev/null 2>&1; then
|
|
python3 tools/check-links.py
|
|
else
|
|
echo "skipped: no python3"
|
|
fi
|
|
|
|
printf '\nall clear\n'
|