Commit Graph
5 Commits
Author SHA1 Message Date
AndreyandClaude Opus 5 2976856760 ✅ fix(scripts): check.ps1 действительно проверяет, а не делает вид
Скрипт был зелёным всегда. `$ErrorActionPreference = "Stop"` не влияет на код
возврата нативных команд, поэтому упавший pytest проходил как успех: проверено
на живом примере — прежняя схема при команде с кодом 3 доходила до конца и
возвращала 0. Теперь каждый шаг сверяется с $LASTEXITCODE, провалившиеся
перечисляются в конце, скрипт выходит с 1.

Кроме этого:

- явные `-f compose.yaml -f compose.dev.yaml`: сервисы frontend и web-chat
  (node) существуют только в dev-оверлее, в базовом compose frontend —
  production-образ nginx, где нет npm. Голый `docker compose` три шага из
  четырёх выполнить не мог в принципе;
- добавлены CLI-тесты и e2e — раньше их не было ни в одном скрипте;
- порядок от быстрых проверок к длинным: typecheck, vitest, CLI, e2e, backend
  (~20 минут). Дешёвые ошибки всплывают за секунды;
- скрипт не останавливается на первом падении: прогоняет всё и показывает
  список провалов, иначе каждая ошибка стоила бы отдельного круга.

playwright.config.ts: `webServer` поднимал только internal-ui на :5173, а
проект web-chat-mobile ходит на :5175 — без заранее поднятого dev-стека прогон
падал. Описаны оба сервера, e2e стали самодостаточными; без этого включать их
в check.ps1 не имело смысла.

Проверка: полный прогон скрипта — 6 шагов, все зелёные, exit code 0
(typecheck ×2, vitest 76, CLI 9, e2e 8, backend 624).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 20:10:00 +03:00
Andrey dd849fa2d4 ✨ feat(platform): isolate runtime surfaces 2026-07-14 22:23:15 +03:00
AndreyandClaude Opus 4.8 e6d8923ae9 chore: remove Hub checkout app
Public checkout belongs to product backends, not Hub (ADR-HUB-0014,
ADR-HUB-0018). Delete apps/checkout and its wiring: compose service, nginx
pay.localhost route, npm workspace and dev script, playwright project,
HubApplication type, check.ps1 typecheck and README mentions.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 15:10:36 +03:00
AndreyandClaude Opus 4.8 9679cb8cfc ✅ test(infra): make pytest discover the suite and unify the test command (#3)
- add apps/backend/pytest.ini (next to manage.py so it works inside the
  backend container); include tests.py in python_files so pytest collects the
  existing Django TestCase suites (was silently collecting nothing)
- drop the duplicate pytest config from the root pyproject.toml
- scripts/check.ps1 runs pytest + frontend unit tests + typechecks
- document the canonical test commands (backend/frontend/e2e) in README

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 23:02:51 +03:00
Andrey aacdd422b3 Initialize Edevs Hub repository 2026-06-17 18:14:16 +03:00