Add test/ directory: setup and run scripts for trim_excess_metadata testing
Captures the full Lab 0 -> trim-ready setup procedure as runnable scripts,
making it easy for a future agent or human to reproduce the test environment
from scratch.
Files added:
- test/README.md — full documentation: Battle School dependency, lab topology,
what the test simulates (filtered-replication divestiture),
lazy-copy leakage explanation, expected outcomes, gotchas
- test/setup_lab.sh — orchestration script (runs on bos-01); adds gf site tag,
runs mkrep.sh, adds RevisionDataFilter/ArchiveDataFilter,
fixes service user password, rotates journal, creates
filtered seed checkpoint, initialises nyc-03 as FFR
replica, pulls archives via p4verify, promotes to
standalone commit server, creates .p4config.gf /
keep_users / keep_groups files
- test/run_trim_test.sh — runs trim in 3 passes (dry, live, snap); prints
journal patch apply commands and cleanup instructions