B. Petersen
39d3a594af
let dc_marknoticed_chat() also handle the virtual deaddrop chat
2021-04-26 23:15:26 +02:00
link2xt
949e671d9c
ci: fail on cargo check warnings
2021-04-26 01:11:32 +03:00
link2xt
eef51f064a
sql: set PRAGMA synchronous=normal
...
It was set in `sqlx` code, but not in `rusqlite` mode.
synchronous=FULL makes benchmark that write to the database a lot slower.
2021-04-25 23:44:16 +03:00
B. Petersen
143c5e6249
re-add test_db_reopen() for rusqlite
...
so that we do not forget about that test
and the issues we had with that :)
2021-04-25 22:33:14 +03:00
link2xt
8610b0c945
sql: switch from sqlx to rusqlite
2021-04-25 22:33:14 +03:00
link2xt
d179dced4e
Get rid of mod.rs files.
...
Since Rust 2018 [1] it is no longer required to move module code to
`mod.rs` when submodules are added. This eliminates common problem of
having multiple buffers named `mod.rs` in editor.
[1] https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html#no-more-modrs
2021-04-23 22:45:45 +03:00
link2xt
1dc055fb66
cargo update -p sqlx
2021-04-23 00:00:00 +00:00
Hocuri
819775ac39
Revert "More logging for "core spams imap events""
...
This reverts commit 5394327bf6 .
2021-04-23 09:15:15 +02:00
Hocuri
a1ef32170d
Make logging less verbose
2021-04-22 18:03:37 +02:00
Hocuri
a4486d8c30
Fix #2335 (delete job flooding) ( #2372 )
...
* Fix #2335 (delete job flooding)
The problem was:
- You are offline, and an ephemeral message is due to delete.
- load_imap_deletion_job() is called and returns a deletion job for it.
- The job fails because, well, we are offline.
- The job is saved into the database.
- load_imap_deletion_job() is called again, and so on.
* Add test
2021-04-22 16:37:22 +02:00
link2xt
7bdae8b2c5
README.md: replace shields.io with official CircleCI badge
...
Also remove appveyor, it is not used anymore.
2021-04-21 07:23:48 +03:00
link2xt
75999c5d5a
test_account.py: fix syntax error on python 3.5
...
It was introduced in 553d3936a9
2021-04-21 02:49:20 +03:00
B. Petersen
34ffa4e7ea
add a test to check LIMIT on global searches
2021-04-20 13:51:49 +02:00
B. Petersen
3f1623eab1
LIMIT global search
2021-04-20 13:51:49 +02:00
link2xt
99373774aa
search_msgs: do not match contact names
...
ct.name was insufficient, as authname, overridden name and email address
fallback were not taken into account.
Dropping this condition increases performance by 25% according to the
benchmark.
Also add a test for search_msgs.
2021-04-20 12:21:04 +02:00
link2xt
acd51a7058
Sort global message search result only by ID
...
It reduces the time by ~20% according to `search_msgs` benchmark.
Sorting by IDs is sufficient for global search as IDs increase in the
order of message reception.
2021-04-20 00:35:21 +03:00
B. Petersen
61bf0b208c
add some tests for constants
2021-04-19 23:09:27 +03:00
link2xt
efd0314872
dc_receive_imf: remove unnecessary check for empty folder name
...
This check dates back to C core, where it checked for NULL, not empty string.
2021-04-19 23:09:17 +03:00
link2xt
ef89bc64c9
Add search_msgs benchmark
2021-04-19 23:09:00 +03:00
link2xt
6d4ec75a7b
Benchmark reading contact list
2021-04-19 23:09:00 +03:00
link2xt
8af47de5a4
Benchmark adding 500 contacts from address book
2021-04-19 23:09:00 +03:00
link2xt
c7345c16f8
README: update CI status badges
2021-04-19 01:23:59 +03:00
link2xt
a4b14c6b98
ci: update configs to use scripts from scripts/ directory
2021-04-18 21:57:04 +03:00
link2xt
321354531d
Move set_core_version.py into scripts/
...
Also make it executable.
2021-04-18 21:57:04 +03:00
link2xt
5b0f07f9a7
Move run-integration-tests.sh into scripts/
2021-04-18 21:57:04 +03:00
link2xt
87cb5de8b1
Rename ci_scripts/ into scripts/
2021-04-18 21:57:04 +03:00
link2xt
baae31117f
server_params.rs: increase test coverage
2021-04-18 21:56:10 +03:00
Hocuri
553d3936a9
Some general Python test improvements ( #2316 )
...
This PR originally contained a fix for sqlx which turned out not not to be necessary. But on the way, I made some general improvements:
- Under some circumstances, a "normal" test failure led to a timeout, without printing a decent error message. See e.g. https://app.circleci.com/pipelines/github/deltachat/deltachat-core-rust/8069/workflows/ba2a9949-b4ad-4ceb-a930-073bba05e2db/jobs/30965 .
(The problem was: if there is an exception in dc_account_extra_configure(), when trying to handle the exception the line account.log("===================", e, "===================") was called, which can't work as log() only expects one parameter)
- When a test fails: Call `dump_account_info()` even if there is no direct_imap
- In test_import_export_online_all(), add another 100KB file to the backup. This adds resilience against future size changes of the sql db file: The test tests the smoothness of the progress bar. And if there are there are not enough about-equally-sized files, the progress bar can't be smooth.
2021-04-18 19:20:31 +02:00
link2xt
004fb76864
Remove println! calls from test_group_with_removed_message_id()
...
They were accidentally added in 6bb5721f29
Given that they are full of typos, they were probably not meant to be commited.
2021-04-18 18:37:49 +03:00
link2xt
09bc8fc603
dc_tools: remove dead code from the test
...
Since temporary directory is used, files from previous tests can't exist in blobdir.
2021-04-18 02:57:17 +03:00
link2xt
8f1bb38a3b
Fix a comment typo
2021-04-18 02:56:34 +03:00
B. Petersen
2688f233b8
add timeinfo for 'listmsgs' repl command
2021-04-18 00:51:51 +02:00
B. Petersen
7be8fb7245
bumb version to 1.53.0
1.53.0
2021-04-18 00:51:51 +02:00
B. Petersen
a9b8776342
update changelog for 1.53.0
2021-04-18 00:51:51 +02:00
link2xt
9a34fe5c70
sql: enable shared cache
2021-04-17 23:47:21 +03:00
link2xt
e35a8d4415
sql: use sqlite3_last_insert_rowid instead of SELECT
2021-04-17 22:59:34 +03:00
Asiel Díaz Benítez
59dea29e88
Merge pull request #2333 from deltachat/adb-issue-2328
...
Add html API
2021-04-17 13:55:48 -04:00
Asiel Díaz Benítez
cfdc841c7e
Update python/tests/test_account.py
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2021-04-17 12:45:50 -04:00
Asiel Díaz Benítez
2974affaeb
Merge pull request #2334 from deltachat/adb-issue-2329
...
Add "override_sender_name" API
2021-04-16 15:23:31 -04:00
link2xt
69dae4c006
Switch to release version of sqlx
2021-04-16 22:05:21 +03:00
link2xt
a795ae98ee
Test saving and loading of LoginParam
2021-04-16 21:47:39 +03:00
link2xt
ac54301923
mimefactory: resultify is_file_size_okay
2021-04-16 21:47:29 +03:00
B. Petersen
9ecb6d9b15
test dehtml for pre-tag (wrote that little test to test the new coverage script :)[D
2021-04-15 01:49:12 +03:00
link2xt
ac9394cb16
dehtml.rs: test </i> tag
2021-04-15 00:30:50 +03:00
link2xt
edb9ea0e83
format_flowed.rs: increase line coverage to 100%
2021-04-15 00:30:50 +03:00
link2xt
4c1315446e
Add coverage script
2021-04-15 00:30:50 +03:00
B. Petersen
cc6b02f037
remove additional tags: check from ci, it is 'master branch || has tags' so that does not make much sense, generation should be done on master only
1.52.0
2021-04-14 16:55:45 +02:00
B. Petersen
e13bb8fbd4
bump version to 1.52.0
2021-04-14 16:55:45 +02:00
B. Petersen
eaca4446aa
update changelog to 1.52
2021-04-14 16:55:45 +02:00
B. Petersen
f3fb26c066
add a test to search for one-to-one-chats coming without authnames
2021-04-14 14:09:35 +02:00