refactor(tradein/scraper-kit): yandex providers on shared _base.py (#2363) #2384
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#2384
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-scraper-kit-f4c-yandex-v2"
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
Group F4c (эпик #2277, Group F #2352). Миграция
yandex/serp.pyconstruction-сайтовBrowserFetcherна sharedbuild_browser_fetcher()из_base.py(F4-Foundation #2358).Замена PR #2373 — тот упёрся в rebase-конфликт (докстринг в
test_kit_serp_proxy_pool.py, куда avito/cian/yandex каждый добавлял свою migration-заметку). Конфликт разрешён 3-way merge'ем (main-сессия), содержательно код-конфликта не было — только проза докстринга. Ветка пересоздана (не force-push).yandex/serp.py::__aenter__—BrowserFetcher(...)→build_browser_fetcher(self._config, source="yandex", proxy_provider=self._proxy_provider, fetch_timeout_s=_YANDEX_BROWSER_FETCH_TIMEOUT_S)— кастомныйfetch_timeout_s=30проброшен, не потерян.test_kit_serp_proxy_pool.py— yandex-тесты перепатчены сyandex_serp.BrowserFetcherнаscraper_kit.providers._base.BrowserFetcher(реальная зависимость после миграции); assertions без изменений. Докстринг обновлён на пост-merge реальность (и yandex, и cian мигрированы → оба патчат_base).Осознанно НЕ мигрированы (deviation, задокументировано):
yandex/detail.py— нет конструкции сессии (0 diff).yandex/newbuilding.py— егоconfiggenuinely Optional (callers зовут без config: admin.py, sweep, тесты), аbuild_browser_fetcher()требует mandatory config → миграция сломала бы regression-тест + потребовала бы трогать out-of-scope callers. Нужен отдельный мини-рефактор (сделать config mandatory) — follow-up._rotate_ip's curl_cffi-сессия к changeip-API провайдера — намеренно исключена (как и зеркальная в avito), не в Foundation.fetch_around— НЕ обобщается (решение F4-Foundation).Review
code-reviewer— ✅ APPROVE (проверил kwarg-by-kwarg сохранение поведения, fetch_timeout_s threading, scope; re-ran тесты).Test plan
test_kit_serp_proxy_pool.py(yandex+cian) + pipeline_parity2 + newbuilding_endpoint: 19/19 passed после rebaseruff check/ruff format— cleanCloses #2363