Skip to content

refactor(tracedecay): keep bench and test runtimes off lib - #1176

Merged
ScriptedAlchemy merged 5 commits into
codex/tracedecay-total-redesign-plan-reopenedfrom
grok/w2-bench-surface
Sep 9, 2026
Merged

refactor(tracedecay): keep bench and test runtimes off lib#1176
ScriptedAlchemy merged 5 commits into
codex/tracedecay-total-redesign-plan-reopenedfrom
grok/w2-bench-surface

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Relocate benchmark and fixture sources, remove the host-admission compatibility alias, and update all callers. Query benchmarking is opt-in for library builds and selected by the production CLI; the other fixtures retain their existing feature gates.

Validated the corrected head against the integrated #707 floor with strict all-target Clippy for tracedecay and tracedecay-cli, including test-transport (cc-12921; zero errors or warnings).

Default library builds no longer compile benchmark harnesses or
HostAdmissionTestRuntimeV1. The shipped tracedecay bench command
stays on a bench feature selected by the CLI production build.
@changeset-bot

changeset-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0c19fdf

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T18:31:17.199891Z 189cf9f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 189cf9fb3e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/tracedecay/src/lib.rs Outdated
pub mod host_admission;
pub mod test_support;
#[cfg(any(test, feature = "test-helpers"))]
pub use test_support::host_admission;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Migrate fixture callers before retaining the old module path

When test-helpers is enabled, this re-export leaves both tracedecay::test_support::host_admission and the legacy tracedecay::host_admission path public, and the repository's fixture callers still use the latter, so the move creates a temporary compatibility façade rather than completing the cutover. Migrate those callers in this change and remove the alias; repository guidance requires caller migrations and compatibility-façade deletion in one delivery slice.

AGENTS.md reference: AGENTS.md:L130-L137

Useful? React with 👍 / 👎.

@ScriptedAlchemy
ScriptedAlchemy merged commit eb2c998 into codex/tracedecay-total-redesign-plan-reopened Sep 9, 2026
12 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Performance Comparison codex/tracedecay-total-redesign-plan-reopenedgrok/w2-bench-surface

Total Elapsed Time: 3.88s → 3.97s (+2.5%)
CPU Baseline: 62.15µs → 62.16µs (+0.0%)
Benchmark ID: index-bench-timing

timing - Execution duration of functions.

+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| Function                                 | Calls                      | Avg                               | P95                               | Total                             | % Total                      |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| tracedecay-index-bench                   | 1 → 1 (+0.0%)              | 3.88s → 3.97s (+2.3%)             | 3.88s → 3.97s (+2.3%)             | 3.88s → 3.97s (+2.3%)             | 100.00% → 100.00% (+0.0%)    |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| query.artifact.append_pages              | 13 → 13 (+0.0%)            | 131.40ms → 116.24ms (-11.5%)      | 281.28ms → 191.89ms (-31.8%) 🚀   | 1.71s → 1.51s (-11.7%)            | 44.07% → 38.03% (-13.7%)     |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| query.artifact.batch.sqlite              | 13 → 13 (+0.0%)            | 95.39ms → 79.35ms (-16.8%)        | 238.81ms → 157.16ms (-34.2%) 🚀   | 1.24s → 1.03s (-16.9%)            | 31.99% → 25.96% (-18.8%)     |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| query.artifact.finalization.advance_wake | 14 → 14 (+0.0%)            | 57.87ms → 64.65ms (+11.7%)        | 271.84ms → 273.68ms (+0.7%)       | 810.21ms → 905.08ms (+11.7%)      | 20.90% → 22.78% (+9.0%)      |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| code_index.workers.install               | 83 → 83 (+0.0%)            | 8.73ms → 8.89ms (+1.8%)           | 31.42ms → 31.80ms (+1.2%)         | 724.52ms → 737.98ms (+1.9%)       | 18.69% → 18.57% (-0.6%)      |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| query.artifact.create                    | 2 → 2 (+0.0%)              | 158.58ms → 337.22ms (+112.6%) ⚠️  | 158.60ms → 337.38ms (+112.7%) ⚠️  | 317.17ms → 674.44ms (+112.6%) ⚠️  | 8.18% → 16.97% (+107.5%) ⚠️  |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| domain.canonical.sha256                  | 110414 → 110414 (+0.0%)    | 5.74µs → 5.77µs (+0.5%)           | 7.42µs → 7.36µs (-0.8%)           | 634.31ms → 637.34ms (+0.5%)       | 16.37% → 16.04% (-2.0%)      |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| code_index.build.and_publish             | 2 → 2 (+0.0%)              | 303.69ms → 311.27ms (+2.5%)       | 339.21ms → 345.51ms (+1.9%)       | 607.37ms → 622.53ms (+2.5%)       | 15.67% → 15.67% (+0.0%)      |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| query.artifact.finalization.commit       | 14 → 14 (+0.0%)            | 32.48ms → 38.03ms (+17.1%)        | 228.98ms → 244.19ms (+6.6%)       | 454.76ms → 532.46ms (+17.1%)      | 11.73% → 13.40% (+14.2%)     |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| query.artifact.batch.commit              | 13 → 13 (+0.0%)            | 56.49ms → 40.41ms (-28.5%) 🚀     | 194.38ms → 122.09ms (-37.2%) 🚀   | 734.43ms → 525.27ms (-28.5%) 🚀   | 18.95% → 13.22% (-30.2%) 🚀  |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| query.artifact.batch.postings            | 13 → 13 (+0.0%)            | 36.76ms → 36.81ms (+0.1%)         | 49.32ms → 49.45ms (+0.3%)         | 477.93ms → 478.53ms (+0.1%)       | 12.33% → 12.04% (-2.4%)      |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| query.artifact.prepare_pages             | 13 → 13 (+0.0%)            | 29.84ms → 30.49ms (+2.2%)         | 41.35ms → 41.58ms (+0.6%)         | 387.87ms → 396.43ms (+2.2%)       | 10.01% → 9.98% (-0.3%)       |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| code_index.chunk.index_file              | 276 → 276 (+0.0%)          | 1.29ms → 1.27ms (-1.6%)           | 1.87ms → 1.89ms (+1.1%)           | 356.32ms → 349.96ms (-1.8%)       | 9.19% → 8.81% (-4.1%)        |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| code_index.extract.parser_artifact       | 276 → 276 (+0.0%)          | 1.22ms → 1.22ms (+0.0%)           | 1.88ms → 1.80ms (-4.3%)           | 336.58ms → 337.33ms (+0.2%)       | 8.68% → 8.49% (-2.2%)        |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+
| query.artifact.batch.parallel_prepare    | 13 → 13 (+0.0%)            | 23.50ms → 24.29ms (+3.4%)         | 32.44ms → 32.52ms (+0.2%)         | 305.50ms → 315.74ms (+3.4%)       | 7.88% → 7.95% (+0.9%)        |
+------------------------------------------+----------------------------+-----------------------------------+-----------------------------------+-----------------------------------+------------------------------+

Generated with hotpath-rs

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.

1 participant