mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-09-14 14:01:28 +08:00
7dd4b52529
The agentdb / @ruvector/rvf native bindings write `ruvector.db` (and friends) to the package cwd as a side-effect. There is no source reference to `ruvector.db` in `src/**`, so this is test pollution, not a runtime dependency. ADR-125 Phase 7 closes the boundary: Additions: - `v3/@claude-flow/memory/.gitignore` — package-local gitignore so the package is self-contained. Lists `ruvector.db`, `*.rvf`, `*.redb`, test artifacts, and build output. (The repo root already ignores `*.db`; this file makes the policy explicit at the package level.) - `v3/@claude-flow/memory/vitest.setup.ts` — wipes known leak files (`ruvector.db`, `test-database-provider.rvf`, `agentdb.rvf.lock`) and any stray `*.db`/`*.rvf`/`*.redb` from the package root before AND after every test run. - Wired into `vitest.config.ts` via `setupFiles: ['./vitest.setup.ts']`. - `scripts/smoke-memory-no-stray-db.mjs` — CI guard that runs `npm test` in the package and fails if any *.db / *.rvf / *.redb file appears in `git status --porcelain` afterwards. The smoke is intentionally diff-based (compares before / after status) so it doesn't fail on pre-existing untracked files unrelated to the test run. Verified locally: smoke exits 0, `git status` clean after test run, 378 tests passing. Refs: ADR-125 Phase 7 Closes: part of #2061 Co-Authored-By: RuFlo <ruv@ruv.net>
31 lines
748 B
Plaintext
31 lines
748 B
Plaintext
# ADR-125 Phase 7 — package-local gitignore.
|
|
#
|
|
# `*.db` / `*.rvf` / `*.redb` are already ignored at the repo root, but
|
|
# we re-state them here so the package is self-contained and contributors
|
|
# editing inside the package directory get the same behaviour.
|
|
|
|
# Test pollution from agentdb / @ruvector/rvf — these files are written
|
|
# to the package root at runtime and must not be committed.
|
|
ruvector.db
|
|
*.db
|
|
*.db-journal
|
|
*.db-wal
|
|
*.rvf
|
|
*.rvf.lock
|
|
*.redb
|
|
|
|
# Build output (mirrors root .gitignore)
|
|
dist/
|
|
tsconfig.tsbuildinfo
|
|
|
|
# Test artifacts
|
|
test-*.db
|
|
test-*.rvf
|
|
test-*.json
|
|
tests/.tmp/
|
|
benchmarks/longmemeval/results/*.json
|
|
benchmarks/longmemeval/results/*.md
|
|
|
|
# Node modules (defensive — should never appear here in a workspace)
|
|
node_modules/
|