Skip to content

refactor(code-index): drop the activation prewarm CPU knob - #4086

Merged
ScriptedAlchemy merged 2 commits into
masterfrom
refactor/subtract-cpu-knobs
Oct 16, 2026
Merged

ScriptedAlchemy merged 2 commits into
masterfrom
refactor/subtract-cpu-knobs

Conversation

@ScriptedAlchemy

@ScriptedAlchemy ScriptedAlchemy commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Why

Two test-only CPU-injection knobs on production types go away. They existed so a test could spin a poll past the debug long-poll guard and show the guard no longer failed the task. #4076 counts long polls instead of failing them, so those tests pass whether or not the work stays on a worker and assert nothing.

Scope

Blast Radius

Test-helper surface only. Production code paths are unchanged apart from the removed cfg(test) and test-helpers branches.

Verification

//crates/tracedecay-code-index-runtime:unit_test, //crates/tracedecay-store-runtime:unit_test, and //crates/tracedecay:unit_test pass. --config=clippy and rustfmt are clean for the three crates.


Devin Review

set_injected_activation_prewarm_cpu spun CPU beside the prewarm so a test could show the debug long-poll guard no longer failed the worker (#4022). With long polls counted instead of failed, the test passes whether or not the prewarm runs on a worker, so the knob and its test go. The prewarm stays on the blocking pool.
inject_registered_schema_convergence_trim_cpu_for_test spun CPU beside malloc_trim for the same guard-only test (#4027). It goes with that test. The trim stays on the blocking pool.
@changeset-bot

changeset-bot Bot commented Oct 16, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 83dc99b

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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@ScriptedAlchemy
ScriptedAlchemy merged commit 340d310 into master Oct 16, 2026
11 of 20 checks passed
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