Release 4.1.0: baseline schema 1 и покрытие 80% #3

Merged
indi/soliton-panel
indi merged 97 commits into develop from chore/4-baseline 2026-11-28 19:51:05 +03:00
Owner

Что меняется

  • Текущее дерево объявлено единственным baseline: schema 1, миграции 1.x–4.1 сжаты. Базы, архивы и агенты предыдущих версий, включая v4.0.x, отклоняются.
  • migrate-status проверяет полный набор таблиц baseline и различает empty, pending, incomplete и incompatible.
  • Restore/verify требуют manifest, .sha256, .sig, текущую схему и обязательные таблицы до promotion.
  • Rollout: панель и ноды одного релиза; старые агенты не обновляют последнюю версию в панели; откат только в пределах 4.1.x.
  • Покрытие: Go total 81.2%, product 85.0%; web 85.99/81.15/81.34/88.33 (statements/branches/functions/lines). Гейт закреплён на 80%.

Проверка

  • go vet, go test -race, go build — зелёные; coverage gate RC 0.
  • Web: 534 passed, 1 skipped; typecheck, lint, build — зелёные.
  • E2E: ok.
  • Playwright: 132 passed, 9 skipped.
  • govulncheck / Trivy: 0 находок.
  • checkdocs / checkworkflows / syncinstall / bash -n — зелёные.

Диапазон

chore/4-baseline → develop, 97 коммитов, fast-forward-совместимый диапазон.

## Что меняется - Текущее дерево объявлено единственным baseline: schema 1, миграции 1.x–4.1 сжаты. Базы, архивы и агенты предыдущих версий, включая v4.0.x, отклоняются. - `migrate-status` проверяет полный набор таблиц baseline и различает `empty`, `pending`, `incomplete` и `incompatible`. - Restore/verify требуют manifest, `.sha256`, `.sig`, текущую схему и обязательные таблицы до promotion. - Rollout: панель и ноды одного релиза; старые агенты не обновляют последнюю версию в панели; откат только в пределах 4.1.x. - Покрытие: Go total 81.2%, product 85.0%; web 85.99/81.15/81.34/88.33 (statements/branches/functions/lines). Гейт закреплён на 80%. ## Проверка - `go vet`, `go test -race`, `go build` — зелёные; coverage gate RC 0. - Web: 534 passed, 1 skipped; typecheck, lint, build — зелёные. - E2E: ok. - Playwright: 132 passed, 9 skipped. - govulncheck / Trivy: 0 находок. - checkdocs / checkworkflows / syncinstall / bash -n — зелёные. ## Диапазон `chore/4-baseline` → `develop`, 97 коммитов, fast-forward-совместимый диапазон.
indi added 97 commits 2026-11-28 19:41:45 +03:00
Release 4.0.0 (#2)
All checks were successful
ci / security (push) Successful in 7s
ci / e2e (push) Successful in 21s
ci / go (push) Successful in 1m41s
ci / go-static (push) Successful in 40s
ci / web (push) Successful in 1m43s
ci / playwright (push) Successful in 3m44s
docker / build (node) (push) Successful in 2m1s
docker / build (panel) (push) Successful in 2m47s
ci / docker-build (push) Successful in 2m40s
docker / release (push) Successful in 5s
ac9270cc35
Manage the Playwright image pin with Renovate, keep the restored database when a promotion rollback fails, wait for release CI, and cover repeated backup verification in the UI.
Remove pre-4 restore, agent, database and installer compatibility; squash migrations into the 4.0 baseline; require DATABASE_MIGRATE_URL; update tests and bilingual docs.
Keep 4.0.x agent compatibility, move the baseline to schema 37 with a lower-bound check, validate restored dumps before migration, reject v4.0.0 data/archives explicitly, and refresh the archive README and tests.
Reset the schema baseline to version 1, require the current agent heartbeat, reject all earlier databases, archives and agents, and align the bilingual documentation and tests.
Align rollout docs on one release, make old-archive diagnostics neutral, validate baseline tables in migrate-status, add the missing regression tests, and share the baseline table list.
Reject partially populated schemas in migrate-status, use non-misleading schema messages, cover the full baseline table set, and add status/negative-path tests.
Neutralize old-archive diagnostics, report migrate-status pending only for pending schemas, validate the full baseline table set in tests, and align rollback and architecture docs.
Drop removed Telegram entities from the archive README, warn that v4.0.x may partially migrate the current schema, name both schema bounds, and cover pending output and absent-table regressions.
Cover templates, hostmetrics, warp, auth, panelmetrics, webui and the xrayhandler client. Exclude generated protobuf from coverage, add a product metric and repeatable package thresholds.
Add PostgreSQL integration tests for access groups, credentials, heartbeat, addresses, backups, audit, self-steal, WARP, admin sessions, devices, settings, inbound names and traffic limits.
Add scheduler alert/tick/prune/quota tests with an injectable tick interval, Telegram Bot API delivery/card tests, and self-steal pack/render/bundle tests. Coverage: scheduler 95.4%, telegram 95.5%, selfsteal 90.9%.
Add backup service/verify/seal/archive integration tests with a fake pg_restore helper, and node agent/nginx/live-users/acme/stats/supervisor tests. Coverage: backup 84.1%, node 90.3%.
Define the product metric over internal/*, exclude generated protobuf, and state the 80% Go and web targets.
Add auth guard, live sortable, page and share-link tests. Coverage: statements 85.98%, branches 81.14%, functions 81.34%, lines 88.32%.
Statements, branches, functions and lines now must stay at or above 80%.
Add handler tests for self-steal, WARP, auth/TOTP, users, groups, settings, metrics, heartbeat, backups, SPA and request logging.
Default the Go gate to total 80, product 80 and every internal package 80, record final Go and web coverage, and close INFRA-13.
Make the coverage command reproducible with PostgreSQL, prevent -package from lowering the internal floor, reject non-finite thresholds, remove the timing-dependent backup conflict test, and clean up API/backup test helpers.
Make scheduler/coverage tests assert behavior, seed traffic assertions, serialize the WARP transport, move the self-steal interval onto the agent, cover checkcoverage exit codes, and remove brittle CSS/timer assumptions from web tests.
Only reset the page when the debounced search actually changes, and assert the reset after paging in the test. Removes the timer race behind the deleted sleep.
Isolate users page request assertions
All checks were successful
ci / security (pull_request) Successful in 21s
ci / e2e (pull_request) Successful in 1m30s
ci / go (pull_request) Successful in 3m13s
ci / go-static (pull_request) Successful in 54s
ci / playwright (pull_request) Successful in 4m2s
ci / web (pull_request) Successful in 1m52s
ci / docker-build (pull_request) Successful in 1m45s
fa89a2256c
Clear the request history after paging so search-reset and delete-step-back tests prove the new request, not the initial offset=0.
indi merged commit 9f2c759c4e into develop 2026-11-28 19:51:05 +03:00
indi deleted branch chore/4-baseline 2026-11-28 19:51:06 +03:00
Sign in to join this conversation.
No reviewers
No assignees
No labels
No project
No milestone
Dependencies

No dependencies set

Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
indi/soliton-panel!3
No description provided.