link2xt
5e597e1f09
Merge tag 'v1.112.5'
2023-04-02 09:50:16 +00:00
link2xt
c9879f863b
Prepare 1.112.5 release
2023-04-02 09:48:39 +00:00
link2xt
f6d27516cb
Run migrations before delete_and_reset_all_device_msgs()
...
Both when importing a backup from file or receiving it over the network.
2023-04-02 08:39:13 +00:00
link2xt
d6426dc1b6
imex: run migrations after receiving a transferred backup
...
Similarly to how `imex_inner()` runs migrations
after successful call to `import_backup()`,
migrations should be run after receiving a backup
using `transfer_from_provider()`.
2023-04-01 23:56:36 +00:00
link2xt
fdf46054e2
ci: limit artifact retention time for libdeltachat.a to 1 day
...
These artifacts are only needed to be downloaded
by the python test job immediately after building.
2023-04-01 17:37:52 +00:00
link2xt
47a3ee1ff1
ci: run mypy and doc with installed library
...
These require that package can be installed.
2023-04-01 13:29:55 +00:00
link2xt
a0b7b4b5c4
ci: use ' instead of " for condition quote
2023-04-01 12:58:29 +00:00
link2xt
b9bc0a4047
ci: fixup "if" expression
2023-04-01 12:56:36 +00:00
link2xt
e57abf92f3
ci: split library build and python tests into separate jobs
...
This way if flaky python tests fail,
it is possible to rerun them without having to rerun library compilation.
Python test jobs will redownload already built library artifact
and compile the bindings against it.
2023-04-01 12:53:49 +00:00
link2xt
fd7cc83537
Merge tag 'v1.112.4'
...
Release 1.112.4
2023-03-31 01:13:56 +00:00
link2xt
f24843fbb1
Release 1.112.4
2023-03-31 01:12:26 +00:00
link2xt
6c57bc9438
Fix call to auditwheel in scripts/run_all.sh
...
This bugs prevents CI from building wheels.
2023-03-31 01:02:41 +00:00
link2xt
ae5f72cf4f
Remove install_python_bindings.py script and update docs
...
`install_python_bindings.py` was not used by CI
and scripts, except for `scripts/run-python-test.sh`
which only used it to invoke `cargo`.
Instead of using an additional script,
run cargo directly.
The documentation is updated to remove
references to `install_python_bindings.py`.
The section "Installing bindings from source"
was in fact incorrect as it suggested
running `tox --devenv` first and only then
compiling the library with `install_python_bindings.py`.
Now it explicitly says to run cargo first
and then install the package without using `tox`.
`tox` is still used for running the tests
and setting up development environment.
2023-03-31 00:27:35 +00:00
link2xt
3e65b6f3a6
Update to rPGP 0.10.1
2023-03-30 21:09:29 +00:00
link2xt
a4a53d5299
Increase MSRV to 1.65.0
2023-03-30 21:09:29 +00:00
link2xt
4223cac7a5
set_core_version.py: add newline to the end of package.json
2023-03-30 20:38:47 +00:00
link2xt
0073a09da6
Merge v1.112.3
2023-03-30 20:37:43 +00:00
link2xt
e612927c5d
Fix links in the changelog
2023-03-30 20:36:30 +00:00
link2xt
aff951440c
Release 1.112.3
2023-03-30 20:32:49 +00:00
link2xt
c4cf0f12c9
Prettier lint fix
2023-03-30 16:08:02 +00:00
link2xt
68635be8a2
Merge v1.112.2 into master
2023-03-30 15:42:27 +00:00
link2xt
776df7505e
Remove upper limit on the attachment size
...
Recommended file size is used for recoding media.
For the upper size, we rely on the provider to tell us back
if the message cannot be delivered to some recipients.
This allows to send large files, such as APKs,
when using providers that don't have such strict limits.
2023-03-30 15:01:02 +00:00
link2xt
d6fdc7cb67
Release 1.112.2
2023-03-30 14:57:32 +00:00
link2xt
ea87c78d34
Do not return media from trashed messages in the "All media" view.
2023-03-30 08:10:06 +00:00
link2xt
585b8ece58
Remove outdated comment.
2023-03-30 08:07:21 +00:00
link2xt
3400f5641e
Build zig-rpc-server for i686
...
cargo-zigbuild is replaced with a simple zig-cc wrapper.
cargo-zigbuild still tries to use i386-linux-musl triple,
while in zig 0.11 x86-linux-musl should be used [1].
This also gives us more control over compilation flags used
and prevents changes due to cargo-zigbuild upgrades,
as its version was not pinned.
[1] Merged PR "all: rename i386 to x86 "
<https://github.com/ziglang/zig/pull/13101 >
2023-03-29 10:56:22 +00:00
link2xt
5068648960
Update yanked spin 0.9.6
...
Otherwise cargo-deny complains.
2023-03-29 10:56:02 +00:00
link2xt
fc25bba514
Add changelog for unreleased 1.112.2
2023-03-28 10:44:07 +00:00
link2xt
1bf5064039
Add unreleased section to changelog
2023-03-27 16:13:11 +00:00
link2xt
edf0c02bc8
Release 1.112.1
2023-03-27 15:22:31 +00:00
link2xt
1d42907114
deltachat-ffi: document thread safety guarantees
2023-03-27 14:47:40 +00:00
link2xt
0dfec83b0f
deltachat-rpc-client: configure setuptools_scm
...
This makes `python -m build` produce wheels with a version
other than 0.0.0.
2023-03-26 10:00:01 +00:00
link2xt
c84155cbd4
Add scripts/deny.sh
...
This can be used to manually run `cargo deny`
without specifying all the parameters manually.
Similar to existing scripts/clippy.sh
2023-03-25 19:54:24 +00:00
link2xt
fb093253c6
Update generated nodejs constants files
2023-03-25 10:20:17 +00:00
link2xt
20319b5426
Add --version option to deltachat-rpc-server
2023-03-24 23:11:11 +00:00
link2xt
9cca34bba5
Remove .wait_for_seen() calls in flaky tests
...
This is a merge commit for <https://github.com/deltachat/deltachat-core-rust/pull/4226 >
2023-03-24 23:09:44 +00:00
link2xt
530981119e
Update Cargo.lock
2023-03-24 23:08:46 +00:00
link2xt
6f327c950d
Cargo.toml: replace branch with rev in default-net patch entry
...
This makes `cargo install --path deltachat-rpc-server` work again.
2023-03-24 21:16:04 +00:00
link2xt
92ad843ff2
Reduce test code duplication
2023-03-24 20:59:31 +00:00
link2xt
a8059c6bff
python: remove flaky .wait_for_seen() from test_fetch_existing()
2023-03-24 18:09:40 +00:00
link2xt
4b468a25fe
Remove pytest-rerunfailures
...
It is not compatible with pytest-timeout anyway:
<https://github.com/pytest-dev/pytest-rerunfailures/issues/99 >
2023-03-24 16:13:33 +00:00
link2xt
1e135b649c
Do not use IDLE in test_send_and_receive_message_markseen
...
Fix flakyness in case Dovecot sends only EXISTS
but not FETCH unsolicited response.
2023-03-24 16:09:40 +00:00
link2xt
40d32f2d0c
Do not use IDLE in test_fetch_existing_msgs_group_and_single
...
Makes the test less flaky,
as Dovecot sometimes sends only the EXISTS response,
but not the FETCH response for flags.
2023-03-24 16:09:28 +00:00
link2xt
c9ec087cd8
python: do not use IDLE in test_markseen_message_and_mdn test
...
Make the test less flaky in case Dovecot notifies only about EXISTS
but not flag updates.
2023-03-24 16:09:15 +00:00
link2xt
84d79e1479
Do not use IDLE in test_mdn_asymmetric
...
Fixes test flakyness.
2023-03-24 16:08:58 +00:00
link2xt
83af248068
Turn more log messages into proper sentences.
2023-03-24 12:15:42 +00:00
link2xt
4f25edb1a1
Update OpenSSL to fix RUSTSEC-2023-0022
...
<https://rustsec.org/advisories/RUSTSEC-2023-0022 >
2023-03-24 09:56:00 +00:00
link2xt
ded1634b7d
python: look for "Marked messages ... as seen." by regexp
...
Tests reuse accounts, so UIDs may start from the number other than 1.
2023-03-24 09:43:59 +00:00
link2xt
635c73ffc6
python: use locally installed auditwheel
...
`auditwheel` is a part of manylinux images,
there is no need to create a virtual environment
and install it again.
2023-03-23 23:00:46 +00:00
link2xt
fcc1fe73be
Do not use .wait_for_seen() in test_one_account_send_bcc_setting
...
.wait_for_seen() is unreliable, because sometimes Dovecot
sends only EXISTS to the IDLE connection, but not the FETCH.
Dovecot sends updates like FETCH only if some
connection has already observed the message in previous state
without the \Seen flag.
To avoid this race condition, wait until the core sets the flag,
then FETCH the message manually and check that the flag is set.
2023-03-23 22:57:35 +00:00
link2xt
fa278d50f7
Simplify layout of the deltachat-rpc-server crate
2023-03-23 22:10:28 +00:00
link2xt
2f02be4c64
ci: test the core on macOS
2023-03-23 20:46:58 +00:00
link2xt
7add1c116c
Attempt to fix deltachat-rpc-server binary release uploads
2023-03-23 17:19:28 +00:00
link2xt
124a0e90e1
Release 1.112.0
2023-03-23 13:34:24 +00:00
link2xt
3fdcffb314
Increase reference count before spawning background tasks in dc_receive_backup()
...
Merged PR <https://github.com/deltachat/deltachat-core-rust/pull/4206 >
2023-03-23 08:54:33 +00:00
link2xt
f033aae25c
Move most of the dc_receive_backup() into a safe function
2023-03-23 08:47:58 +00:00
link2xt
53eec521dc
Make get_all_addresses_from_header non-generic
...
This saves 1287 lines according to `cargo llvm-lines --release`.
2023-03-22 23:51:41 +00:00
link2xt
238570a7b9
deltachat-ffi: update rand to 0.8.5
2023-03-22 23:37:01 +00:00
link2xt
043ae48806
Set pytest-timeout on async python tests
2023-03-22 20:41:17 +00:00
link2xt
fb88f2e6ab
Reintroduce pytest-rerunfailures
...
Tests on GitHub Actions are very flaky recently.
2023-03-22 20:39:35 +00:00
link2xt
5db867cd1b
Add IMAP_INBOX_IDLE event
2023-03-22 20:20:37 +00:00
link2xt
7ec3a1a9a2
ci: fixup for artifact uploading in deltachat-rpc-server.yml
2023-03-21 23:17:15 +00:00
link2xt
19fa86b276
ci: remove android dependency from deltachat-rpc-server workflow
2023-03-21 22:21:05 +00:00
link2xt
c4657991c8
ci: build all deltachat-rpc-server binaries without NDK
2023-03-21 22:17:14 +00:00
link2xt
484aebdb16
smtp: disable buffering while running STARTTLS
...
Otherwise TLS setup fails on macOS and iOS with `errSSLClosedAbort`.
(<https://developer.apple.com/documentation/security/errsslclosedabort >)
2023-03-21 17:57:52 +00:00
link2xt
02455d8485
ci: upload deltachat-rpc-server binaries on release
2023-03-20 18:59:14 +00:00
link2xt
e04efdbd94
tox: quiet noisy message from black
2023-03-20 17:57:38 +00:00
link2xt
a501f10756
Get rid of duplicate uuid dependency
2023-03-20 10:07:59 +00:00
link2xt
5d80d4788c
Pause I/O in get_backup()
2023-03-20 10:24:59 +01:00
link2xt
0c02886005
Update human-panic, but disable color
...
Avoid pulling in new `anstream` dependency
2023-03-19 19:10:25 +00:00
link2xt
24856f3050
Merge branch 'flub/send-backup'
...
PR: <https://github.com/deltachat/deltachat-core-rust/pull/4007 >
2023-03-19 15:21:59 +00:00
link2xt
8e6434068e
Fix remaining cargo-deny warnings
2023-03-19 14:40:46 +00:00
link2xt
800d2b14a5
Add cargo-deny exceptions for old crates
2023-03-19 14:37:23 +00:00
link2xt
40fc61da4f
changelog: add link and date to the latest release
2023-03-19 12:07:55 +00:00
link2xt
eb0f896d57
Use scheduler.is_running()
2023-03-19 11:23:09 +00:00
link2xt
71bb89fac1
Merge remote-tracking branch 'origin/master' into flub/send-backup
2023-03-19 11:10:07 +00:00
link2xt
b89199db54
Merge branch 'flub/pause-io'
...
PR: <https://github.com/deltachat/deltachat-core-rust/pull/4138 >
2023-03-19 11:06:01 +00:00
link2xt
e39429c2e3
rustfmt
2023-03-19 10:18:49 +00:00
link2xt
17de3d3236
Remove TODOs
2023-03-19 10:17:18 +00:00
link2xt
3177f9967d
Add a comment aronud IMAP loop task handle
2023-03-19 10:16:43 +00:00
link2xt
81418d8ee5
Log error on pause guard drop without resuming instead of working around
...
I checked that tests still pass even if error! is replaced with panic!
2023-03-19 10:13:59 +00:00
link2xt
a2e7d914a0
Changelog fixup
2023-03-19 09:37:09 +00:00
link2xt
5eb7206b2d
Format documentation comment for sync_qr_code_token_deletion
2023-03-19 00:10:45 +00:00
link2xt
a566fd6301
Upgrade async-smtp to 0.9.0
...
async-smtp does not implement read buffering anymore
and expects library user to implement it.
To implement read buffer, we wrap streams into BufStream
instead of BufWriter.
2023-03-18 21:26:39 +00:00
link2xt
3eadc86217
Update Rust in coredeps docker image to 1.68.0
2023-03-18 21:08:40 +00:00
link2xt
dd57854ee3
Increase Minimum Supported Rust Version to 1.64
...
It is required for clap_lex v0.3.2
and async_zip 0.0.11.
2023-03-18 19:30:11 +00:00
link2xt
b83b9db712
repl: print errors with causes
2023-03-18 14:37:50 +00:00
link2xt
b26a351786
Switch quinn to the main branch
...
It has Android fixes merged
2023-03-17 22:26:42 +00:00
link2xt
a32a3b8cca
Construct HashMaps in provider database from array
...
This saves 450 lines according to `cargo llvm-lines --release`.
2023-03-17 18:30:37 +00:00
link2xt
0a5542a698
Log transfer rate on success
2023-03-17 10:45:43 +00:00
link2xt
edcc199461
Fix clippy::redundant-async-block warnings
2023-03-17 09:20:34 +00:00
link2xt
961e3ad7e2
Update spin 0.9.5->0.9.6
2023-03-17 00:00:37 +00:00
link2xt
9a7ff9d2b1
Switch quinn to ecn-einval-fallback branch.
2023-03-16 16:25:46 +00:00
link2xt
f024909611
sql: replace empty paramsv![] with empty tuples
2023-03-15 22:20:40 +00:00
link2xt
8db64726ea
sql: expect zero-column results from PRAGMA incremental_vacuum
...
The fact that `PRAGMA incremental_vacuum` may return a zero-column
SQLITE_ROW result is documented in `sqlite3_data_count()` documentation:
<https://www.sqlite.org/c3ref/data_count.html >
Previously successful auto_vacuum worked,
but resulted in a "Failed to run incremental vacuum" log.
2023-03-15 21:15:46 +00:00
link2xt
56f6d6849e
Patch quinn to work on android
2023-03-15 12:45:58 +00:00
link2xt
cdd696db95
Delete expired messages using multiple SQL requests
...
With existing approach of constructing
the SQL query dynamically I get errors like this:
ephemeral.rs:575: update failed: too many SQL variables: Error code 1: SQL error or missing database
In my case it is trying to delete 143658 messages.
This is the result of importing a Desktop backup
and enabling device auto-deletion on the phone.
Current SQLite limit is 32766 variables
as stated in <https://www.sqlite.org/limits.html >.
2023-03-15 12:22:27 +00:00
link2xt
cbc18ee5a4
Log connection errors
2023-03-14 18:49:14 +00:00
link2xt
6fbcf67190
python: revert ruff C4 -> C40 change
...
It is an error in ruff 0.0.255, will be fixed in the next version:
https://github.com/charliermarsh/ruff/commit/a8c1915e2efbcd0a4bd798ed3e81cdc18f8e1890
2023-03-14 09:37:03 +00:00
link2xt
73e7ee5c13
Build armv7 deltachat-rpc-server binaries without NDK
2023-03-13 23:09:25 +00:00