feat(proxy-pool): P3 — kit curl-paths acquire/release from pool behind USE_PROXY_POOL_CURL, ship-dark (#2163) #2197
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#2197
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/proxy-pool-p3-curl"
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?
Закрывает #2163 (Epic #2160, P3). Ship-dark + fallback — флаг off, orchestration ещё не прокидывает provider → пул не активируется. Прод не меняется.
Что
scraper_kit/contracts.py—ProxyProviderProtocol +ProxyLeasedataclass (acquire(provider)→lease|None,release,mark_health); +полеuse_proxy_pool_curlвScraperConfigapp/services/scraper_adapters.py—RealProxyProviderнадproxy_pool(короткая SessionLocal на операцию, прячет Session от kit);RealScraperConfig.use_proxy_pool_curl. Guard синхронизирован (test_proxy_provider_satisfies_protocol)scraper_kit/providers/_proxy.py(new) —curl_proxy_url(...)CM: инвариант off/None→env, on+пуст→env, on+lease→lease.url + mark_health + release в finally (best-effort, проблема пула не роняет сбор)cian/valuation,cian/detail(own-session),avito/imv(ExitStack держит lease весь warm-up→XHR — anti-bot не тронут),yandex/valuationИнвариант (тесты)
Verify
app/services/scrapers/*не тронутыОсталось (P4)
orchestration/pipeline+SchedulerContext ещё НЕ прокидывает
RealProxyProvider→ truly-dark (пул не активен даже при флаге on). Wiring provider в ctx/pipeline = P4 (#2164). Health-нюанс: провайдеры, глотающие бан вreturn None(cian 403), метят ok=True; исключения (avito IMVAuthError, yandex) → ok=False; healthcheck-джоба корректирует.