dftracer_view writes split/ copies of single-member gzip inputs next to the inputs, even with --index-dir
Symptom#
After dftracer_view -d <shared trace dir> --index-dir <scratch>, new split/ folders with .pfw.gz copies appear inside the input tree. The run prints "WARNING: N single-member trace(s) were auto-split into a sibling split/ directory".
Cause#
normalize_members_for_ingest (src/dftracer/utils/index/build/resolve_and_build.cpp) writes each rewritten single-member file to <input parent>/split/. --index-dir does not move it. View, index, run and the Python plugin host call it.
Fix#
Run tools on a folder of symlinks in scratch (one link per trace file, name = relative path with / replaced by __). The function keeps the given path, so split/ lands in the link folder. scripts/bench/scale_ladder.py does this per run and stops with exit 2 when any file of this user in the set changed. To clean up: remove only split/ dirs owned by you and newer than the run start, after checking that each holds only your .pfw.gz files.
Evidence#
2026-10-21 Corona ladder: view on a shared minife trace tree made 214 split/ dirs with 414 files; removed with per-dir owner and content checks, 39,911 other files unchanged. Link-folder ladder smoke on a nested set passed for all 10 tools with no write into the set.