fix(tests): убрать реальные паузы из tradein-тестов (wave2) #3503
No reviewers
Labels
No labels
Fable 5 ревью
GG-форсайт
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
feedback/max
generative
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#3503
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "perf/3471-tradein-tests-wave2"
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?
Что сделано
Убраны реальные ожидания времени/таймаута из трёх тестовых файлов Trade-In. Ассерты не ослаблены, ничего не удалено.
test_alerts_become_events.py(10 тестов)sentry_sdkdefaultshutdown_timeout=2.0вclient.close()(finallyконтекст-менеджераglitchtip_events())test_3398_estimator_valuations_proxy_pool.py::test_yandex_lease_released_once_on_successsleep_between_requests()(jitter вокругrequest_delay_sec=5.0) на успешномfetch_house_historytest_backfill_wave2.py::test_backfill_yandex_addresses_error_on_non_200request_delay_sec=3.0вbackfill_yandex_addressesФиксы:
client.close(timeout=0)вместоclient.close().scraper_kit.base.asyncio.sleepв helper'е_yandex_with_pool— lease-ассерты (acquired/released/health) не тронуты.request_delay_sec=0в вызовbackfill_yandex_addresses.Что не потребовалось
Цели #2 (4 теста по ~5.01с с общим таймаутом в
test_2698_imv_sidecar_wiring.py/test_house_imv_backfill_browser_flag.py/test_scraper_kit_group_c_backfill_kit_parity.py) и #3 (test_3033_avito_native_secondary_filter.py, 7.82с/5.72с) уже были устранены наmainдо этой ветки — там уже стоитrequest_delay_sec=0с комментариями. Замер подтвердил: все эти тесты сейчас <1с, регрессий нет.Не тронуто
test_auth_api.py— bcrypt cost=12 + намеренный throttle (security-параметр).test_estimator_event_loop_2207.py— реальныйsleep(0.3)— сам предмет теста.test_glitchtip_webhook.py,test_2924_yandex_resolve_tried_at.py— уже починены в PR #3500.Verify
Все затронутые + смежные файлы прогнаны локально (
../.venv/Scripts/python.exe -m pytest ... --durations=20 -p no:randomly): 74 теста, все зелёные, максимальная длительность 1.05с (несвязанный сетевой retry-таймаут).🤖 Generated with Claude Code
https://claude.ai/code/session_01JY6iWDnGDthdvsMWgK1BMG