refactor(tradein/avito): avito_detail_backfill off scrape_pipeline helpers (#2397 slice B) #2399
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#2399
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "refactor/tradein-extract-avito-scrape-helpers"
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 B (эпик #2277 decommission legacy orchestration). Отвязывает
app/tasks/avito_detail_backfill.pyот legacyscrape_pipeline.py, чтобы последний можно было удалить в Part E без поломки этого таска.from app.services.scrape_pipeline import _CHROME_HEADERS, _avito_proxiesfrom scraper_kit.providers._base import DOCUMENT_HEADERS, http_proxies(kit Foundation #2358 — byte-identical эквиваленты)headers=DOCUMENT_HEADERS,proxies=http_proxies(settings.scraper_proxy_url)AsyncSession(...)СОХРАНЁН (не переключён на kitbuild_document_session()) — намеренно, чтобы не сломать mock-seamapp.tasks.avito_detail_backfill.AsyncSessionв тестах. Поведение идентично.scrape_pipeline.pyНЕ тронут.Review
code-reviewer— ✅ APPROVE. Byte-equivalence подтверждена key-for-key (_CHROME_HEADERS≡DOCUMENT_HEADERS,_avito_proxies≡http_proxies, тот же settings-singleton, та же proxy-резолюция). Mock-seam-обоснование признано верным.Test plan
tests/tasks/test_avito_detail_backfill.py: 14 passedruff check/formatclean; grep — 0 импортов scrape_pipeline в файлеRefs #2397, #2277