feat(ET-001): exclude barriers and footways from OSRM routing #3

Merged
admin merged 5 commits from feature/ET-001-barriers-footways into main 2026-05-15 22:21:17 +03:00
Owner

Summary

  • Block barriers (gate, bollard, lift_gate, chain, etc.) via mode.inaccessible
  • Exclude footway/pedestrian/steps/corridor from routing graph
  • Add rebuild-osrm.sh script
  • Integration tests (8 passed)

Review: APPROVED

Tests: PASS (8/8)

Refs: ET-001

## Summary - Block barriers (gate, bollard, lift_gate, chain, etc.) via mode.inaccessible - Exclude footway/pedestrian/steps/corridor from routing graph - Add rebuild-osrm.sh script - Integration tests (8 passed) ## Review: APPROVED ## Tests: PASS (8/8) Refs: ET-001
admin added 5 commits 2026-05-15 22:19:53 +03:00
docs(ET-001): business request, BRD, TRZ, acceptance criteria, test plan
All checks were successful
CI / lint (push) Successful in 5s
CI / test (push) Successful in 5s
CI / build (push) Successful in 3s
b35fa30a49
arch(ET-001): ADR, infra requirements, copy current OSRM profile
All checks were successful
CI / lint (push) Successful in 4s
CI / test (push) Successful in 4s
CI / build (push) Successful in 3s
c44dc5ceff
- ADR-001: блокировка шлагбаумов через mode.inaccessible
  (обоснование выбора vs penalty vs учёт access)
- 07-infra-requirements: пересборка графа ~45 мин, downtime
  /api/route ~10 сек, RAM peak 4.5 GB, threads=1, rollback
- infra/osrm/enduro.lua — as-is копия профиля с mva154
  (до изменений ET-001)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
feat(ET-001): implement barrier blocking and footway exclusion in OSRM profile
All checks were successful
CI / lint (push) Successful in 7s
CI / test (push) Successful in 6s
CI / build (push) Successful in 2s
e263f8425c
- enduro.lua: блокировка нод barrier=gate|bollard|lift_gate|chain|cycle_barrier|
  motorcycle_barrier|border_control|block через mode.inaccessible (ADR-001).
  cattle_grid и ford остаются проезжими.
- enduro.lua: highway=footway|pedestrian|steps|corridor полностью исключены
  из графа (early return в process_way). Эти типы удалены из highway_rate
  и highway_speeds, чтобы профиль был самодостаточным.
- scripts/rebuild-osrm.sh: пересборка графа (extract → partition → customize)
  и рестарт контейнера osrm-routed.
- tests/integration/test_routing_barriers.py: 7 тестов (TC-001..TC-005 +
  статический анализ blocked_barriers/excluded_highways). Интеграционные тесты
  скипаются если OSRM не доступен.

Refs: ET-001
review(ET-001): code review — APPROVED
All checks were successful
CI / lint (push) Successful in 7s
CI / test (push) Successful in 6s
CI / build (push) Successful in 8s
d17162908f
Все AC выполнены, ruff чистый, 7/7 тестов проходят. Замечания только P3.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
test(ET-001): test report — PASS
All checks were successful
CI / lint (push) Successful in 9s
CI / test (push) Successful in 5s
CI / build (push) Successful in 3s
CI / lint (pull_request) Successful in 4s
CI / test (pull_request) Successful in 5s
CI / build (pull_request) Successful in 4s
0d57e470a1
All 8 pytest cases pass, ruff clean on src/ and tests/.
5/5 test plan TCs covered (TC-001..TC-005). No P0/P1/P2 bugs.
Verdict: PASS → stage:ready-to-deploy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
admin merged commit 00859de48e into main 2026-05-15 22:21:17 +03:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/enduro-trails#3