refactor(tradein/admin): debug sweep endpoints на kit orchestration (#2397 slice A) #2400
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#2400
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "refactor/tradein-admin-debug-sweeps-to-kit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Umbrella #2397 slice A (эпик #2277 decommission legacy orchestration). Мигрирует 5 admin debug «запустить sweep вручную» эндпоинтов с legacy
app.services.scrape_pipelinerun_*на kitscraper_kit.orchestration.pipelinerun_*. Отвязывает admin.py от legacy-оркестрации.config=RealScraperConfig(),matcher=RealMatcherAdapter()(все 5),enrichment=RealEnrichmentJobs()(avito-city/yandex-full/yandex-city — kit-сигнатура требует; cian НЕ принимает),proxy_provider=_kit_proxy_provider()(существующий helper). Паттерн зеркалитscheduler_main._run_kit_scheduler+ Group A #2305.scrape_pipeline.pyНЕ тронут (остальные импортёры — Part C/E).app.services.scrape_pipeline.run_*наapp.api.v1.admin.run_*+ добавлены DI-guard assertions (config/matcher/proxy_provider/enrichment) — иначе мок не перехватывал и BackgroundTask гнал реальный sweep в сеть.Review
deep-code-reviewer— прод-код ✅ верифицирован kwarg-by-kwarg + runtime-харнесс (DI на всех 5 корректна, config-footgun не материализовался, full param parity, proxy/shutdown семантика сохранена). Единственный блокер (4 теста с мёртвым mock-таргетом → hang/red CI) исправлен по его точной спецификации + закрыт coverage-gap (тесты теперь реально проверяют вызов kit с DI).Test plan
ruff check/formatclean (pinned 0.7.4); admin.py — 0 импортов scrape_pipelineRefs #2397, #2277