test(suite): re-align drifted tests → green (CI-rehab 2/3) #1031

Merged
bot-backend merged 1 commit from test/ci-rehab-2-suite-fixes into main 2026-06-03 14:06:33 +00:00
Collaborator

CI-rehab 2/3: ремонт дрейфа сьюта → GREEN. 42 failed/5 errors → 1687 passed / 0 failed / 0 errors. TEST-ONLY (0 app-изменений), реальных багов нет, code-reviewed (ни один тест не ослаблен ради зелёного — signature-dispatch даже вернее прежних positional-моков).

  • best_layouts: sum_deals→deals_window; velocity-direction под SF-01 divisors
  • quarter_dump_lookup: 7→10-tuple моки; call-counts под cad_zouit fallback (#232)
  • cadastre_bulk: xmin/ymin/xmax/ymax в harvest-мок
  • nspd_client: required QuarterDump.opportunity; TopLayoutRow.is_oversold
  • analyze_{market_price,recent_permits,inline_weights}: SQL-signature dispatch вместо хрупких positional-индексов (SF-B5 reorder + фикс double-POST geom-starvation)
  • custom_pois: centroid >15km → center_bonus=0 изолирует custom-POI delta
  • PDF: runtime WeasyPrint-проба (skip macOS, RUN на CI); mv_layout: DSN-нормализация + connectivity-skipif
  • admin-token тесты: skip (X-Admin-Token gate удалён #437; защита Caddy+RBAC, покрыта test_rbac)

Фундамент готов под CI-гейт (3/3). Refs #944.

**CI-rehab 2/3: ремонт дрейфа сьюта → GREEN.** 42 failed/5 errors → **1687 passed / 0 failed / 0 errors**. TEST-ONLY (0 app-изменений), реальных багов нет, code-reviewed ✅ (ни один тест не ослаблен ради зелёного — signature-dispatch даже вернее прежних positional-моков). - best_layouts: sum_deals→deals_window; velocity-direction под SF-01 divisors - quarter_dump_lookup: 7→10-tuple моки; call-counts под cad_zouit fallback (#232) - cadastre_bulk: xmin/ymin/xmax/ymax в harvest-мок - nspd_client: required QuarterDump.opportunity; TopLayoutRow.is_oversold - analyze_{market_price,recent_permits,inline_weights}: SQL-signature dispatch вместо хрупких positional-индексов (SF-B5 reorder + фикс double-POST geom-starvation) - custom_pois: centroid >15km → center_bonus=0 изолирует custom-POI delta - PDF: runtime WeasyPrint-проба (skip macOS, RUN на CI); mv_layout: DSN-нормализация + connectivity-skipif - admin-token тесты: skip (X-Admin-Token gate удалён #437; защита Caddy+RBAC, покрыта test_rbac) Фундамент готов под CI-гейт (3/3). Refs #944.
bot-backend added 1 commit 2026-06-03 14:05:47 +00:00
test(suite): re-align drifted tests with current code (CI-rehab 2/3)
All checks were successful
Deploy / changes (push) Successful in 5s
Deploy / build-frontend (push) Has been skipped
Deploy / build-worker (push) Successful in 1m8s
Deploy / build-backend (push) Successful in 36s
Deploy / deploy (push) Successful in 1m13s
e9585bcd3b
Suite was uncollectable for a while → code evolved, mocks didn't (42 failed /
5 errors → 1687 passed / 0 failed / 0 errors). TEST-ONLY, no app code changed,
no real bugs found (code-reviewed  — no test weakened to fake-green).

- best_layouts: sum_deals→deals_window rename; velocity-scaling direction for
  new SF-01 divisors (last_month=1.0/last_year=12.0)
- quarter_dump_lookup: 7→10-tuple mock rows (risks/opportunity/red_lines cols);
  fix early-exit call-counts for the cad_zouit fallback (#232)
- cadastre_bulk: add xmin/ymin/xmax/ymax to harvest-quarter db mock
- nspd_client: add required QuarterDump.opportunity
- TopLayoutRow: add required is_oversold
- analyze_{market_price,recent_permits,inline_weights}: SQL-signature dispatch
  instead of fragile positional db.execute indices (SF-B5 query reorder; also
  fixes a double-POST geom-starvation false-negative)
- custom_pois: move centroid >15km so center_bonus=0 isolates custom-POI delta
- layout/report PDF: runtime WeasyPrint probe (skip macOS dev, RUN on CI)
- mv_layout SQL: normalize +psycopg DSN + connectivity-probe skipif
- admin token tests: skip (X-Admin-Token gate removed #437/#426; protection is
  Caddy basic_auth + RBAC, covered by test_rbac)

Refs #944.
bot-backend merged commit e9585bcd3b into main 2026-06-03 14:06:33 +00:00
bot-backend deleted branch test/ci-rehab-2-suite-fixes 2026-06-03 14:06:33 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lekss361/gendesign#1031
No description provided.