Commit Graph

2 Commits

Author SHA1 Message Date
Christian Gick
6d79b184b9 fix(MAT-273): add dummy env vars to CI so bot.py can be imported in tests
Some checks failed
Build & Deploy / test (push) Failing after 10s
Build & Deploy / build-and-deploy (push) Has been skipped
Tests / test (push) Failing after 8s
test_needs_query_rewrite imports Bot from bot.py which reads
MATRIX_HOMESERVER etc. at module level — KeyError in CI where those
vars are not set. This has blocked all deploys since c2985488.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 13:19:56 +03:00
Christian Gick
7b5c157b12 fix(MAT-258): blacklist unverified E2EE devices + add CI tests
Some checks failed
Build & Deploy / test (push) Failing after 1m9s
Build & Deploy / build-and-deploy (push) Has been skipped
Tests / test (push) Failing after 8s
Unverified devices (lacking cross-signing) caused OlmUnverifiedDeviceError
in _send_text(), silently breaking all message delivery. Now on_sync()
blacklists non-cross-signed devices instead of skipping them, and
_send_text() catches E2EE errors gracefully.

Adds 12 unit tests for device trust policy and send error handling.
CI test job now gates deployment in deploy.yml.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 08:32:48 +03:00