Repository navigation
refactor(perf): make wt-perf setup persist-only and trim the CLI/lib surface - #3433
Merged
Merged
Conversation
…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]>
worktrunk-bot
approved these changes
Jul 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #3403, applying the deferred
--persistdecision and two sibling subtractions found sweeping the perf tooling for the same shape (a vestigial option or dual path guarding nothing).wt-perf setupis persist-only. The--persistflag 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 nextsetup <config>run already wipes and rebuilds.prune-realnever offered cleanup, so setup's exit behavior is now uniform.timeline --repodeleted. It only restated the traced repo:run_timelineresolves the repo from-C/cwd,--repodefaulted to exactly that, and the only documented use passed the identical path to both flags.--coldnow invalidates the repo being traced — the only coherent target.wt_perflib surface tightened. Seven helpers plusPruneFixtureStatehad no callers outsidelib.rsand 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'sprivate-intra-doc-linkslint rejects public docs linking private items even under--document-private-items.Checked and deliberately kept:
wt-perf traceandwt-perf invalidate(distinct documented workflows), theTraceResult/CacheReportre-exports (public field types ofTraceEntry/Profile), and thecreate_repo/create_repo_attwo-layer fixture API (both layers used).Gate green: 4387 tests, clippy/fmt/doctests/rustdoc (
-Dwarnings) clean.