Commit Graph

1849 Commits

Author SHA1 Message Date
Evgeny Poberezkin
09348c46f7 sync between tests 2025-05-23 11:30:02 +01:00
Evgeny Poberezkin
5a7e4e0da3 increase test timeout 2025-05-23 11:09:18 +01:00
Evgeny Poberezkin
dba10c9b37 retry failed tests with debug logging 2025-05-23 09:06:05 +01:00
Evgeny Poberezkin
a83e65891d remove test logs 2025-05-23 07:35:40 +01:00
Evgeny Poberezkin
ae4f890e4b enable all tests 2025-05-22 21:48:13 +01:00
Evgeny Poberezkin
ac7ad150af debug test 2025-05-22 21:34:37 +01:00
Evgeny Poberezkin
758eefc547 version 2025-05-22 20:01:12 +01:00
Evgeny Poberezkin
bace6a99c5 optimze, refactor 2025-05-22 19:54:19 +01:00
Evgeny Poberezkin
a010e1e836 version 2025-05-22 18:31:44 +01:00
Evgeny Poberezkin
9c157a943c remove subscribed clients from map 2025-05-22 18:31:13 +01:00
Evgeny Poberezkin
32da2f7482 comment 2025-05-22 16:00:24 +01:00
Evgeny Poberezkin
beb204cc2b version 2025-05-22 15:57:58 +01:00
Evgeny Poberezkin
18337be331 correct stats for subscriptions 2025-05-22 15:57:01 +01:00
Evgeny Poberezkin
9861df3e3d version 2025-05-22 13:16:46 +01:00
Evgeny Poberezkin
0c962f2df6 comment 2025-05-22 13:16:23 +01:00
Evgeny Poberezkin
01374d5a66 reduce STM contention 2025-05-22 12:51:50 +01:00
Evgeny Poberezkin
67f5f2ea8f hide clients IntMap 2025-05-22 10:51:40 +01:00
Evgeny Poberezkin
43ef908309 smp server: optimize concurrency and memory usage, refactor 2025-05-22 10:02:08 +01:00
Evgeny Poberezkin
d352d518c2 6.4.0.4 v6.4.0-beta.4 2025-05-21 08:56:01 +01:00
Evgeny
f0dc600016 ntf server: remove shared queue for all notification subscriptions (#1543)
* ntf server: remove shared queue for all notification subscriptions

* wait for subscriber with timeout

* safer

* refactor

* log
2025-05-21 08:55:32 +01:00
Evgeny Poberezkin
f44ea0a6d8 6.4.0.3 v6.4.0-beta.3 2025-05-15 21:01:49 +01:00
Evgeny
f7d31d4c02 Merge pull request #1524 from simplex-chat/ntf-storage
ntf server: PostgreSQL database storage (feature branch)
2025-05-15 21:00:58 +01:00
Evgeny
b90e25a3a5 ntf server: fix repeat token registration when it became invalid (regression) (#1539) 2025-05-15 19:56:48 +01:00
Evgeny Poberezkin
cf4b9f669d agent: always enable periodic notifications 2025-05-15 15:16:44 +01:00
Evgeny Poberezkin
e417d35cce Merge branch 'master' into ntf-storage 2025-05-14 22:20:55 +01:00
Evgeny Poberezkin
deaec3cce2 6.4.0.2 2025-05-07 07:24:06 +01:00
Evgeny
7bbd99644a agent: fix query that updates last message timestamps for notification processing (#1536) 2025-05-06 23:19:58 +01:00
Evgeny
cb59a449dd agent: return error and message absence differently when getting notification messages (#1535)
* agent: return error and message absence differently when getting notification messages

* fix test

* mapM

* inline nse functions, release lock on error or no message
2025-05-06 16:20:01 +01:00
Evgeny
a632eea75b protocol: parsing for UTCTime to stop on "," and ";" (#1532) 2025-05-04 21:11:06 +01:00
Evgeny
3d10c9bf9e agent: handle cases when last message ts is not set for notifications; set last ts for "stale" notifications when messages expired and queue is empty, to prevent repeated processing (#1531)
* agent: handle cases when last message ts is not set for notifications; set last ts for "stale" notifications when messages expired and queue is empty, to prevent repeated processing

* only log errors if they exist

* only set last ts for queue that delivered notification
2025-05-02 11:21:39 +01:00
Evgeny
2f0cdc40af ntf server: fix returned last notifications (#1530) 2025-04-30 14:57:04 +01:00
Evgeny
0a3d014f5d ntf server: priority db pool for notifications and client commands, concurrent resubscriptions, CLI options (#1529)
* ntf server: option to skip specific tokens when importing store log

* logs

* batch later

* subscribe in parallel, bigger queues

* ntf server: test schema and migrations

* optimize subscriptions

* log level

* resubscribe before starting

* better subscribing

* pooled concurrent resubscriptions

* 5

* async resubscribe

* typo

* priority pool

* db batch size
2025-04-30 11:40:32 +01:00
Evgeny
7d0115daec ntf server, agent: send all periodic notifications from one thread, only to old active clients or new clients with periodic notification mode (#1528)
* ntf server, agent: send all periodic notifications from one thread, only to old active clients or new clients with periodic notification mode

* send different type via subscription queues

* option to compact store log on start
2025-04-28 12:18:55 +01:00
Evgeny
f024ab1c3f ntf server: prometheus metrics (#1527)
* ntf server: save prometheus stats

* info metrics

* fix test
2025-04-27 13:25:44 +01:00
Evgeny
f4bc1f0926 ntf server: skip duplicates when importing tokens and subscriptions (#1526)
* ntf server: skip duplicates when importing tokens and subscriptions

* skip imported last notifications when no token or subscription present

* fix skipped imported notifications count

* all tests

* fix test
2025-04-26 23:37:55 +01:00
Evgeny
42dbb887f7 ntf server: allow retries when creating subscriptions, prohibit subscriptions with the same queue but another notifier key or token (#1525)
* ntf server: allow retries when creating subscriptions, prohibit subscriptions with the same queue but another notifier key or token

* sync files in the test

* refactor
2025-04-25 19:41:18 +01:00
Evgeny
850d2fa423 ntf server: PostgreSQL database storage (#1519)
* ntf server: PostgreSQL database storage

* ntf server: import/export stubs

* ntf server postgres db functions

* some notifications tests pass

* notifications tests pass

* import/export notification store logs

* fix ntf server CLI

* log in parralel

* update subscription statuses using executeMany

* fix import/export

* refactor

* fix queries

* prohibit token_id and subscription_id updates, dont update tokens and subscriptions on conflict, improve server insertion, remove duplicate tokens for import, remove subscriptions without tokens for import

* comment

* remame

* increase test delay
2025-04-25 16:47:39 +01:00
Evgeny
08b84deba4 agent: option to use web port by default for preset servers only (#1523)
* agent: option to use web port by default for preset servers only

* shorten/restore short links in agent, add encodings for SMP web port setting

* decouple preset domains from preset servers for short links

* refactor, rename
2025-04-24 17:11:52 +01:00
Evgeny Poberezkin
ec5a60430d 6.4.0.1 v6.4.0-beta.1 2025-04-22 22:01:16 +01:00
Evgeny
e4d4b51c59 smp server: fix/test database import (#1521) 2025-04-22 21:59:27 +01:00
Evgeny Poberezkin
6b60f8bab6 Revert "ntf server: optimize in-memory storage (#1516)"
This reverts commit afb338a41a.
2025-04-21 21:01:24 +01:00
shum
aa9b93eee5 ci: retry only in stable or release 2025-04-21 19:06:04 +01:00
Evgeny
afb338a41a ntf server: optimize in-memory storage (#1516)
* ntf server: optimize in-memory storage

* test

* ntf server: fix store log parser for token status
2025-04-21 17:12:16 +01:00
Evgeny
1e29f7c811 ci: adjust output, retry tests on failure, include hashes in release notes (#1520)
* scripts/reproduce-builds: rename with prefix and adjust output

* ci: rerun tests and include hashes in release

* ci: fix variables and really skip 8.10.7

* ci: fix prepare step

* ci: setup swap for 8.10.7

* ci: fix upload and formatting

* ci: properly format hashes

* ci: simplify

---------

Co-authored-by: shum <shum@liber.li>
2025-04-21 17:05:31 +01:00
Evgeny Poberezkin
d11be15295 ntf server: fix store log parser for token status 2025-04-16 13:01:14 +01:00
Evgeny Poberezkin
305f79d2a6 6.4.0.0 v6.4.0-beta.0 2025-04-14 10:52:05 +01:00
Evgeny Poberezkin
af988f774e Merge branch 'stable' 2025-04-14 10:51:34 +01:00
Evgeny Poberezkin
82e389298a docs: CHANGELOG 2025-04-14 10:51:23 +01:00
Evgeny
c784d5ce0c Merge pull request #1495 from simplex-chat/short-links
smp protocol: short 1-time invitations and contact address links
2025-04-14 09:58:09 +01:00
Evgeny
c2c4730953 smp server: serve .well-known folder via server pages (#1514) 2025-04-13 22:02:48 +01:00