mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-11-22 19:58:39 +00:00
* agent: skip work items deleted by a concurrent transaction * agent: retry a work item batch whose items were all deleted, test skipping * tests: skip work items deleted after their IDs were read * agent: revert skipping of work items deleted after their ID query * agent: lock work items and their connections in ID queries on PostgreSQL * xftp: report a file deleted during transfer as NO_FILE, not INTERNAL * tests: delete work items during worker reads and file transfers * agent: retry worker reads aborted by PostgreSQL deadlock detection * xftp: report NO_FILE when a file is deleted before its chunks are saved * tests: lock tests on readers without item locks, deterministic NO_FILE tests * agent: keep the SQLite text of work item ID queries unchanged * tests: resume the upload in a new agent with the server down * agent: retry transactions and batches aborted by PostgreSQL deadlocks * tests: lock tests for six ID queries, NO_FILE when adding recipients * agent: read work items in one snapshot, retry serialization failures * xftp: report NO_FILE after a failed write when the file is deleted * tests: work item reads with concurrent deletions on PostgreSQL * tests: start the prepared file read by the prepare worker test * agent: export transaction retry for chat work item reads * agent: avoid shadowing STM retry in the transaction retry loop * tests: wait for the lock held by the test's own transaction * agent: retry read conflicts on the same database connection * tests: retry bound of work item reads on PostgreSQL * tests: qualify the agent INTERNAL error in retry bound tests * tests: check retried reads use one connection and report the state * tests: match the SQLSTATE field in retry bound tests * tests: failed work item read is marked failed on PostgreSQL * xftp: apply the deleted-file handler in infix form * xftp: apply the deleted-file handler before multi-line writes * agent: remove the unused read committed isolation level
Running tests with coverage
- Uncomment coverage sections in cabal.project file.
- Add
-fhpcto ghc-options of simplexmq-test in simplexmq.cabal file. - Disable (
xit) test "should subscribe to multiple (200) subscriptions with batching", enable (commentskip) the next test instead. - Run
cabal test. - Open generated coverage report in the browser.