fix(test): test_849 expects 3 begin_nested/lot after #1921 upsert-reconcile SAVEPOINT — unblock red main gate #1925
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#1925
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/test-849-savepoint-count-1921"
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?
Red main gate — все tradein-деплои застряли
После моего деплоя
2fe34ac(green) в main влились #1919/#1921/#1922. Коммит197068c(#1921, "save_listings UPDATE by (source,source_id)") добавил per-lot SAVEPOINT вокруг listings-upsert: ловитIntegrityErrorнаUNIQUE(source,source_id)(migration 133) при dedup_hash-дрейфе → rollback SAVEPOINT'а + прямой UPDATE. Это легитимный 3-йbegin_nested/лот (upsert + snapshot + hook).test_849_matching_savepoint::test_no_begin_nested_inside_link_listing_to_houseассертил== 2*len(lots)(snapshot + hook) — прокси устарел → детерминированный fail (got 9, expected 6). Это завалило deploy-test-gate, а он serialized-блокирует build+deploy → #1921, #1922 и мой #1924 (geom GIST индекс) не доехали до прода (стоят на2fe34ac).Фикс
Обновил ожидание до
3 * len(lots)+ комментарий про 3 SAVEPOINT'а. Интент теста сохранён: хук (_link_listing_to_house) по-прежнему НЕ открывает внутренний SAVEPOINT (base.py:715) — это и проверяется. Код #1921 корректен (это companion-фикс к моей migration 133), правится только тест.Локально полный CI-прогон: 2413 passed, 1 skipped, 2 deselected, 0 failed (та же команда, что в deploy-
test).После merge зелёный гейт выпустит на прод застрявшие #1921 (avito reconcile) + #1922 (UI pack) + #1924 (geom GIST, #1189) одним деплоем.
Refs #1921, #849, #1189