Skip to content

refactor(perf): make wt-perf setup persist-only and trim the CLI/lib surface - #3433

Merged
max-sixty merged 1 commit into
mainfrom
simplify-wt-perf
Jul 12, 2026
Merged

max-sixty merged 1 commit into
mainfrom
simplify-wt-perf

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Follow-up to #3403, applying the deferred --persist decision and two sibling subtractions found sweeping the perf tooling for the same shape (a vestigial option or dual path guarding nothing).

  • wt-perf setup is persist-only. The --persist flag and the interactive "Press Enter to clean up (or Ctrl+C to keep)" path are gone — it was the one blocking, stdin-reading path in an otherwise scriptable tool, and it guarded little: default-path fixtures land in /tmp/wt-perf-<config>, which the next setup <config> run already wipes and rebuilds. prune-real never offered cleanup, so setup's exit behavior is now uniform.
  • timeline --repo deleted. It only restated the traced repo: run_timeline resolves the repo from -C/cwd, --repo defaulted to exactly that, and the only documented use passed the identical path to both flags. --cold now invalidates the repo being traced — the only coherent target.
  • wt_perf lib surface tightened. Seven helpers plus PruneFixtureState had no callers outside lib.rs and are now private (ensure_rust_repo, clone_rust_repo_at, history_spread_shas, add_diverged_backdrop, create_mixed_repo_at, create_prune_real_repo_at, prune_fixture_state); the public surface now matches what the benches and CLI actually use. Doc references to them are plain code spans rather than intra-doc links — rustdoc's private-intra-doc-links lint rejects public docs linking private items even under --document-private-items.

Checked and deliberately kept: wt-perf trace and wt-perf invalidate (distinct documented workflows), the TraceResult/CacheReport re-exports (public field types of TraceEntry/Profile), and the create_repo/create_repo_at two-layer fixture API (both layers used).

Gate green: 4387 tests, clippy/fmt/doctests/rustdoc (-Dwarnings) clean.

This was written by Claude Code on behalf of max

…surface

Three subtractions in the perf tooling:

- wt-perf setup no longer takes --persist or blocks on stdin for
  Enter-to-cleanup: fixtures always persist at the printed path, and the
  default temp dir already self-wipes on the next setup run. This was the
  one interactive path in an otherwise scriptable tool.
- timeline --repo deleted: it only restated the traced repo (resolved
  from -C/cwd), and every documented use passed the same path twice.
  --cold now invalidates the repo being traced.
- Seven internal-only lib helpers (and PruneFixtureState) demoted from
  pub; doc references unbracketed since rustdoc's private-intra-doc-links
  lint rejects public docs linking private items under -Dwarnings.

Co-Authored-By: Claude Fable 5 <[email protected]>
@max-sixty
max-sixty merged commit 350ea1f into main Jul 12, 2026
38 checks passed
@max-sixty
max-sixty deleted the simplify-wt-perf branch July 12, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants