Commit graph

81 commits

Author SHA1 Message Date
febux
08cba6716d Fix for Nomad TLS gen.
Some checks are pending
ci / test (push) Waiting to run
2026-09-13 22:39:44 +03:00
febux
c64f8ac3b7 Forgejo workflows were added. Nomad config was created.
Some checks are pending
ci / test (push) Waiting to run
2026-09-13 22:09:10 +03:00
febux
0c354492ef Git check
Some checks failed
CI / Lint & typecheck (push) Successful in 26s
CI / Unit tests (push) Successful in 57s
CI / Integration tests (push) Failing after 21s
2026-09-13 04:31:10 +03:00
febux
c4b22be773 Architecture diagram was created.
Some checks failed
CI / Lint & typecheck (push) Successful in 1m44s
CI / Unit tests (push) Successful in 1m1s
CI / Integration tests (push) Failing after 23s
2026-09-12 13:00:57 +03:00
febux
07b1994c32 Fix CI integration tests. 2026-09-06 21:23:42 +03:00
febux
5aff6e569e Fix CI integration tests. 2026-09-06 20:51:16 +03:00
febux
206e55d925 Update ci.yml 2026-09-06 20:42:43 +03:00
febux
1c08e7362c Fix stream not read error for files whose recieved from bot. 2026-09-06 20:41:35 +03:00
febux
85db70887d Fix Vector config and OpenObserve auth for live E2E verification
Ticket 10 verification surfaced runtime issues that static validation
missed; all verified against running Docker stack (Vector 0.43 + OO 0.92.2):

- Rewrite VRL for Vector 0.43: no coalesce/default funcs, merge!/replace!
  for guarded fallible calls, no two-value parse_json destructuring
- Quote env-interpolated sink credentials (empty env left a bare YAML null)
- Fix logs sink URI: OO needs /api/{org}/{stream}/_json (stream segment
  was missing, causing 404); logs now land in contract_check stream
- Replace OPENOBSERVE_AUTH_TOKEN with root email/password Basic auth:
  prometheus_remote_write ignores request.headers, so remote-write got 401
- Update .env.example, DEPLOY.md, ARCHITECTURE.md, ticket 05 accordingly

Verified live: logs with service + correlation_id searchable in
OpenObserve; contract_check_* metrics queryable via its Prometheus API;
no outbound port 4318 connections from app containers.
2026-09-06 19:41:04 +03:00
febux
b279d6c61a Switch observability to passive collection: remove OTLP push, Vector replaces otel-collector
- core/telemetry.py is now a no-op (no opentelemetry imports); entrypoints
  no longer call setup/shutdown telemetry
- Remove all opentelemetry-* deps from pyproject groups; regenerate uv.lock
- Drop otel_exporter_otlp_endpoint/otel_service_name settings; sentry and
  auth use "contract-check" instead
- Stop publishing worker metrics ports; bind API metrics to 127.0.0.1 by
  default via API_METRICS_BIND_HOST
- Replace otel-collector with Vector in observer profile (docker_logs +
  prometheus_scrape -> OpenObserve); add deploy/observability/vector-config.yaml
- Update .env.example, docs (ARCHITECTURE, DEPLOY), README, Makefile
- Rewrite tests/unit/test_telemetry.py for the no-op implementation
2026-09-06 19:17:08 +03:00
febux
dc653737e0 Redis maint notif was disabled. ONLY FOR REDIS CLOUD 2026-09-06 17:56:36 +03:00
febux
ec2bcc9402 Bot reports list statuses were fixed. 2026-09-06 17:52:31 +03:00
febux
3cfb238adb Merge branch 'python-3.14-trixie' into master 2026-09-06 17:42:41 +03:00
febux
654fe64453 Integration tests were fixed. 2026-09-06 17:37:58 +03:00
febux
f24117c2d1 build: upgrade to Python 3.14 on Debian Trixie
- Bump requires-python to >=3.14 and ruff target-version to py314
- Switch all service images to uv:python3.14-trixie-slim builder
  and python:3.14-slim-trixie runtime
- Rename libmagic1 -> libmagic1t64 in worker-extract for Trixie
- Regenerate uv.lock under Python 3.14
- Update ARCHITECTURE.md to reflect py3.14 + Trixie
2026-09-06 15:29:49 +03:00
febux
2d5c2b50c0 Sync docs and clean up unused. 2026-09-06 15:03:51 +03:00
febux
a1e119ce6e M1: bot webhook delivery - secret-token aiohttp server, /healthz, mode switch, TLS-edge routing (#001, #002) 2026-09-06 14:53:22 +03:00
febux
e73430a078 Fix CI unit tests and typecheckers. 2026-09-06 13:13:55 +03:00
febux
0b2e7665f4 fixup(pipeline-hardening M4/M5): purge count, shared toast helper, clean imports
- Fix RabbitMQ purge_queue to report the pre-purge message count instead of
  the post-purge depth (which was always 0).
- Add shared attach_toast helper in admin templating; remove duplicated inline
  _attach_toast implementations in review.py and mq.py.
- Keep purge confirmation case-sensitive so the typed safeguard works as intended.
- Fix test imports to use known-first-party 'contract_check' per isort config.
2026-09-06 01:18:33 +03:00
febux
c00f3cf9f9 M5: DLQ tooling - RabbitMQ management client, admin list/peek, requeue and purge (019-021) 2026-09-06 00:55:11 +03:00
febux
befa5c897f M4: admin manual-review queue and operator actions (#017, #018)
- ReviewQueueRepository: filtered/paginated queue query + item loader.
- Admin panel: /admin/review list/detail with extracted-text preview.
- Operator actions: send-to-analysis, complete, reject with Document Slot
  compensation and row-level status guard.
- /code-review cleanups applied; actions lock via DocumentRepository.

Closes issues 017, 018.
2026-09-05 23:47:45 +03:00
febux
e5fd285328 Fix issues hardening by plan. M1: .scratch/pipeline-hardening/issues/001
- 011
2026-09-05 23:18:19 +03:00
febux
17054c1e99 Some refactoring. Image extractor was wired end-to-end. 2026-09-05 21:24:04 +03:00
febux
8da39ebae1 Bot setup was fixed with service profile and update docs. 2026-09-05 00:25:25 +03:00
febux
b45274e01b TG bot was separated as service with envs. 2026-09-05 00:08:26 +03:00
febux
4b71fe4291 Respect log level env for OTLP. 2026-09-04 01:56:44 +03:00
febux
8b0a233816 Logs collection was configurate for OTEL. 2026-09-04 01:31:29 +03:00
febux
086863ef9c Update collector config. 2026-09-04 00:59:52 +03:00
febux
d84fa3f227 Update collector config. 2026-09-04 00:55:19 +03:00
febux
1dee1ef0c4 OTEL collector service was configured. 2026-09-04 00:45:31 +03:00
febux
18916fd017 Connect structlog to OTLP processer. 2026-09-04 00:26:18 +03:00
febux
721bc99b7a OTLP was added. 2026-09-03 02:36:56 +03:00
febux
70f793e432 Update front.conf 2026-09-03 02:09:51 +03:00
febux
cddc9a2f7e Lightweight OpenObserve was added. 2026-09-03 02:04:00 +03:00
febux
4046a1165d Update ci.yml 2026-09-03 01:24:55 +03:00
febux
748695319b Update Grafana dashboard config. 2026-09-03 01:14:56 +03:00
febux
97189c97b6 Prometheus was added. Dashboard Grafana was updated. 2026-09-03 00:39:49 +03:00
febux
1add4353db Unit tests fix. 2026-09-02 23:54:54 +03:00
febux
1e051f3730 Grafana stack was added. Update docs. 2026-09-02 23:32:47 +03:00
febux
ef39c2793c Update ci.yml 2026-09-02 22:58:22 +03:00
febux
3c80d21f0a Fix SSE with query auth token param. 2026-09-02 22:23:16 +03:00
febux
6ae7edc8f5 Change password route was added. 2026-09-02 21:58:45 +03:00
febux
73187742f2 SSE status streaming for doc analysis was added. 2026-09-02 21:11:54 +03:00
febux
89e0db7baa Update delete route response. 2026-08-26 21:12:16 +03:00
febux
da96206deb Import error for billing service was fixed. 2026-08-26 20:37:34 +03:00
febux
622745487e Fix absolute path. 2026-08-26 20:24:22 +03:00
febux
afe1aebf9d Logs were enriched with data. 2026-08-26 20:00:41 +03:00
febux
962e06e1e2 Plan for ADR and payments. 2026-08-25 21:57:05 +03:00
febux
f25bedad7c User profile with billing base was added. 2026-08-25 20:52:50 +03:00
febux
604b917fbc New make command was added. 2026-08-24 01:27:39 +03:00