test(tradein): cover avito/cian + mark_failed total_seen persistence (#1926) #1937
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#1937
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/1926-scrape-runs-total-seen"
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?
Что
Тест-хардинг для уже смерженного фикса observability
scrape_runs.total_seen/new_count(#1928,_column_counts).#1928 починил персист
total_seen/new_countиз counters во ВСЕ sweep-пути (через единый_column_countsвscrape_runs.py:update_heartbeat/mark_done/mark_failed/mark_banned), но regression-тест добавил только на yandexmark_done. Аудит #1926 явно просил «проверить avito/cian».Добавлено (+49 строк, только тесты)
test_mark_done_avito_cian_counters_populate_columns—CitySweepCounters.to_dict()(avito/cian) →mark_doneставитtotal_seen=1234,new_count=56(не 0).test_mark_failed_persists_total_seen_new_count_columns— sweep упавший mid-run всё равно пишетtotal_seen/new_countиз частичных counters (не 0).Проверки
ruff check✅ · full suite 2446 passed, 2 skipped (CI-deselects).Refs #1926