Repository navigation
dedup(analytics): one home for the code tool probe (#18557) - #20463
Merged
Merged
Conversation
Three sites asked the same two paths whether they exist. They now call AnalyticsController.code_tools_available, and a guard stops the copies returning. The other status routes stay separate: their payloads differ.
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
1 of 4 tasks
Owner
Author
Contributor
Auto-sync: merging
|
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 517e836e7 |
fix(train): reach floors return to mid-window on the merged tree (#20435) | #20435 |
| this branch | 85cd76faa |
chore(guards): re-pin the reach floors the pre-push gate reported stale (#18557) | #18557 |
repo_tests/slm_agent_single_definition_19040_test.py
| side | commit | subject | issue refs |
|---|---|---|---|
| main | 517e836e7 |
fix(train): reach floors return to mid-window on the merged tree (#20435) | #20435 |
| this branch | 85cd76faa |
chore(guards): re-pin the reach floors the pre-push gate reported stale (#18557) | #18557 |
This was referenced Nov 1, 2026
This was referenced Nov 1, 2026
Merged
This was referenced Nov 1, 2026
Owner
Author
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.
Thinking Path
#18557 lists
api/analytics* get_*_status x5as a clone row. Read closely, those routes mostly aren't clones. What they really duplicate is one check: three sites ask the same two tool paths whether they exist. That check gets one home, and the routes stay separate./status,/code/status, dashboard overview helperknown_task_status_or_404What Changed
analytics_controller.py: newAnalyticsController.code_tools_available(), checked off the event loop as before.analytics.py,analytics_code.py: the three sites call it.analytics.pydrops from 1277 to 1269 lines, and its ceiling turns down with it.shared_helper_cores_18557_slice5_test.pyfails if either file checks a tool path directly or builds the result dict itself.Verification
With
analytics.pyput back to main's version, the guard fails:That run predates the guard's dict check, which has its own test in the file.
A
code-reviewerpass read all three responses and found the same shape and values as before. Its report on the guard and on this table's reasoning led to the follow-up commit.Not checked: the three routes on a running backend. The new test calls the probe directly.
The floor repin was killed by its own timeout under load, and it had written these two floors before that. The pre-push gate then passed with them.
Risks
/code/statusnow needs an asynccode_tools_available. No test does that today.analytics_controller.pystill checks each path on its own inperform_code_analysis. Each check there gates a different step, at a different moment, so the helper doesn't fit.Model Used
Claude Opus 5.5
Issue Link
Refs #18557
🤖 Generated with Claude Code