Commit Graph
100 Commits
Author SHA1 Message Date
holger krekel d75a78d446 feat: introduce cross-core testing along with improvements to test frameworking 2025-12-04 14:29:16 +00:00
holger krekel b9ae74fab2 feat: deltachat_rpc_client.Rpc accepts rpc_server_path for using a particular deltachat-rpc-server (#7493)
also simplifies and make more readable popen-call to rpc-server 

addresses #7428
2025-11-25 11:02:42 +01:00
holger krekel 8eef79f95d refactor: strike events in rpc-client request handling, get result from queue 2025-11-23 21:23:53 +01:00
holger krekel 0e84cfd8ad docs: reference chatmail in the README 2025-03-21 10:42:15 +00:00
holger krekelandlink2xt f4dfc79808 test(deltachat-rpc-client): add realtime channel tests
Co-authored-by: link2xt <link2xt@testrun.org>
2024-05-25 05:46:55 +00:00
holger krekel 5d3d5d23a1 api(deltachat-rpc-client): add EventType.WEBXDC_REALTIME_DATA constant 2024-05-21 22:10:15 +00:00
holger krekel acff8205e2 test: fix pytest compat (#5317)
seems pytest_report_header has changed with pytest incompatible but we
don't need it anyway so we can just leave it out.
2024-03-04 21:07:09 +00:00
holger krekel 6345a4f5b3 fix link for securejoin 2024-01-13 12:50:16 +01:00
holger krekel 7c4c980409 for testrun.org subdomains we can allow 60 messages per minute (or lift the limit completely but maybe good to protect against wild-running bots or so) 2023-11-17 06:50:19 +00:00
holger krekel 9ca049051c fix and streamline a little 2023-11-10 16:46:40 +01:00
holger krekel 71b7b0b393 fix doc strings for qr-code joinings 2023-11-02 13:31:35 +01:00
holger krekel bd02eea66b refactor: remove unused or useless code paths in securejoin (#4897) 2023-11-02 12:29:48 +00:00
holger krekel 196a34684d simplify "broken bobstate" as the state still passes 2023-11-01 00:58:54 +01:00
holger krekel 402fd6850c do the actual fix (thanks alex for some help) 2023-11-01 00:58:54 +01:00
holger krekel 72515f440d write a failing test 2023-11-01 00:58:54 +01:00
holger krekel bfddd3fc69 fix typo 2022-12-07 09:44:54 +01:00
holger krekel cffa101419 remove usage of py in favor of pathlib 2022-05-09 21:22:19 +02:00
holger krekel 1d7d201b5b remove a log line and a return 2022-05-09 21:22:19 +02:00
holger krekel c0e4e12138 Introduce caching of configured live accounts in each test process 2022-05-09 21:22:19 +02:00
holger krekel c8bfa98b6b actually enable online account caching. previously it was creating (>100) online test accounts 2022-05-05 16:18:59 +02:00
holger krekel 32a9db6922 fix flaky test to not rely on timing 2022-05-04 13:29:08 +02:00
holger krekel 77498c17a5 reorder tests to provide a complex/offline/online distinction, also speeding up distributed test runs. 2022-05-04 13:17:08 +02:00
holger krekel 54c07f89f2 also guard the ac_process_ffi_event calling 2022-05-04 12:08:47 +02:00
holger krekel cd4d265055 safer handling of calling account hooks, refined shutdown comment 2022-05-04 12:08:47 +02:00
holger krekel 81ee69010d add a comment, fix a typo in debug message 2022-05-04 12:08:47 +02:00
holger krekel 138d5b7a02 fix segfaults with python runs -- i don't get them anymore, and can also control-c at will 2022-05-04 12:08:47 +02:00
holger krekel ca59cbc898 make direct_imap idle usage safe from tests, so we never miss finishing direct_imap idle 2022-05-03 22:56:23 +02:00
holger krekel 21f72ad845 new --debug-setup option to show events during account setup. 2022-05-03 22:50:16 +02:00
holger krekel 40fd98d580 show logs for pseudo configured accounts (for online ones they are instantiated later) 2022-05-03 22:50:16 +02:00
holger krekel 0422d751d8 avoid instatiating a full blown Account object just for showing some core info 2022-05-03 19:35:03 +02:00
holger krekel e44f68db83 prevent one strange traceback probably caused by ongoing shutdown 2022-05-03 19:35:03 +02:00
holger krekel 88cbf42c39 fix various tests 2022-05-03 19:35:03 +02:00
holger krekel 45157f79a3 fix examples 2022-05-03 19:35:03 +02:00
holger krekel f5157392b6 some renaming and some docstrings 2022-05-03 19:35:03 +02:00
holger krekel f631ec3a7c shift startio/init machinery into PendingConfigure class 2022-05-03 19:35:03 +02:00
holger krekel a9b2750ec9 slight renamings 2022-05-03 19:35:03 +02:00
holger krekel 7fbdb42695 remove _configtracker and write a tested "PendingConfigure" helper class for managing configure/started states for test accounts 2022-05-03 19:35:03 +02:00
holger krekel 026dd4480e add --extra-info CLI option (defaults to False for interactive runs) 2022-05-03 19:35:03 +02:00
holger krekel b373e7acba more renames 2022-05-03 19:35:03 +02:00
holger krekel d2ca54c167 provide for meaningful names for bringing accounts online for test functions 2022-05-03 19:35:03 +02:00
holger krekel e070284a09 strike setting "displayname" in test plugin and refine two tests which implicitely relied on this 2022-05-03 19:35:03 +02:00
holger krekel e4e02ea3c0 improve error messages during live creation of accounts 2022-05-03 19:35:03 +02:00
holger krekel a947980eb6 slight reorg for creating accounts from liveconfig 2022-05-03 19:35:03 +02:00
holger krekel f11c3dd3e3 fix bench test 2022-05-03 19:35:03 +02:00
holger krekel 394067be63 refactor session_liveconfig_producer to become a more geneal testprocess management object 2022-05-03 19:35:03 +02:00
holger krekel 2494613583 - perform direct_imap init in testplugin instead of global deltachat
plugin, probably also helping to avoid some segfeaults during teardown

- some API renaming on the side (too hard to split into separate commit, sorry)
2022-05-03 19:35:03 +02:00
holger krekel 77c60e7450 refine test support function name 2022-05-03 19:35:03 +02:00
holger krekel 04dd2d93d0 trim online account creation to a single get_online_accounts() function 2022-05-03 19:35:03 +02:00
holger krekel 5e5710ecce streamline configuration handling for test accounts, removing one layer of flags 2022-05-03 19:35:03 +02:00
holger krekel c1b33a66c4 refactor "quiet" parameter away and provide more precise logging-control 2022-05-03 19:35:03 +02:00
holger krekel 0e3165d724 unify get_unconfigured_account and make_account 2022-05-03 19:35:03 +02:00
holger krekel 3e12eab0b5 remove make_account from get_online_config and rename the latter to get_next_liveconfig to avoid one indirection 2022-05-03 19:35:03 +02:00
holger krekel 87365e4a43 - remove superflous early set_configs to separate config / account making better
- avoid low-level dc_* API access from testplugin
2022-05-03 19:35:03 +02:00
holger krekel 3e16a47ff2 remove unnccesary distinction between offline/online accounts in make_account, simplifying api/usage 2022-05-03 19:35:03 +02:00
holger krekel 874054148e streamline session_live_config implementation and usage 2022-05-03 19:35:03 +02:00
holger krekel 5e39a13bf6 refine waiting for initial startup waiting for "INBOX: Idle" ready
this slows down initialization for tests but provides more stability in my runs
2022-05-03 19:35:03 +02:00
holger krekel 720c1b5eca normalize make_account usage 2022-05-03 19:35:03 +02:00
holger krekel c7c1a04c6a move large inlined AccountMaker (renamed to ACFactory) to proper class instead of being defined in closure 2022-05-03 19:35:03 +02:00
holger krekel fd5b224ba0 simplify test setup api by removing pre_generated_keys arguments 2022-05-03 19:35:03 +02:00
holger krekel 0b80ade3ae fix "retry" wording, it isn't but a try :) 2022-05-03 09:31:38 +02:00
holger krekel f41df327a9 add a little bench file -- "pytest tests/bench_empty.py --durations=10" will tell you how much overhead there is 2022-04-30 13:27:02 +02:00
holger krekel 3f9e3038b7 strike last hard-coded ref to configured_addr 2022-04-30 13:26:50 +02:00
holger krekel b7ac81701a update depss before we have a few stable core releases 2022-04-29 11:20:25 +02:00
holger krekel 4c7c4e2a81 better document one sometimes failing test 2022-04-29 10:06:02 +02:00
holger krekel 521fa58b75 remove timeout 2022-04-29 10:00:43 +02:00
holger krekel a2e5c60683 - remove one unncessary usage of imap idle
- simplify SEEN bytes/unicode flag issue
- fix a lint issue and a docstring
2022-04-29 09:42:05 +02:00
holger krekel 684351c753 properly construct imap search command for multiple self addresses 2022-04-26 18:56:35 +02:00
holger krekel a8342e37b9 address latest review comments, move test to implementation file 2022-04-26 18:56:35 +02:00
holger krekel 3ffc985968 try fix a sometimes failing test: don't test python's imap idle as it's not needed. also add some more logging. 2022-04-26 15:28:24 +02:00
holger krekel 369609b26c streamline emitting MsgsChanged and IncomingMsg event to go through particular functions. 2022-04-26 10:09:21 +02:00
holger krekel 801d636eb5 enhance waiting for direct imap idle events to prevent randomness 2022-04-20 23:32:45 +02:00
holger krekel be1d87c3c3 do imap expiration/deletion after fetching messages, to avoid unneccessary delays. 2022-04-16 17:19:31 +02:00
holger krekel 9c04ed483e Streamline access/working with configured params and configured addr (#3219) 2022-04-16 09:50:26 +02:00
holger krekelandB. Petersen aba066b4d1 only do monthly dependabot updates (#3199)
* only do monthly dependabot updates

* increase dependabot pr limit from 10 to 50 (due to only monthly interval, 10 seems to be too low)

Co-authored-by: B. Petersen <r10s@b44t.com>
2022-04-10 12:38:27 +02:00
holger krekel bba721654b update deps for 1.30 release series 2022-04-08 13:08:19 +02:00
holger krekel 612132b7c8 move invariant out of loop, less LOC and 1.5% faster 2022-04-01 14:33:57 +02:00
holger krekel 26470c6047 apply hocuri's niceifcation 2022-04-01 14:33:57 +02:00
holger krekel 93d3522f67 stylistic changes 2022-04-01 14:33:57 +02:00
holger krekel c6d901d799 first iteration of faster sorting 2022-04-01 14:33:57 +02:00
holger krekel aaa42a3412 feedback if missing env var 2022-03-31 17:05:33 +02:00
holger krekel 3e5e852e20 1.30 is imminent so i think it makes sense to do a cargo-update now for all deps, to detect issues as early as possible before releases go to stores. 2022-03-31 16:53:38 +02:00
holger krekel 0a3f44bd73 housekeeping cleanup: factor out remove-unused-files logic 2022-03-31 16:45:58 +02:00
holger krekel d4fed5f5f7 add chatlist loading benchmark 2022-03-31 16:45:45 +02:00
holger krekelandB. Petersen 63688a2f95 remove getAllUpdates() and add a typical replicatio API for the update call (#3081)
* (r10s, adb, hpk) remove getAllUpdates() and add a typical replica-API that works with increasing serials.  Streamline docs a bit.

* adapt ffi to new api

* documentation: updates serials may have gaps

* get_webxdc_status_updates() return updates larger than a given serial

* remove status_update_id from status-update-event; it is not needed (ui should update from the last known serial) and easily gets confused with last_serial

* unify wording to 'StatusUpdateSerial'

* remove legacy payload format, all known webxdc should be adapted

* add serial and max_serial to status updates

* avoid races when getting max_serial by avoiding two SQL calls

* update changelog

Co-authored-by: B. Petersen <r10s@b44t.com>
2022-03-04 20:22:48 +01:00
holger krekel d4ff47b6ac allow timeout for internal configure tracker API 2022-01-13 14:57:43 +01:00
holger krekel 0b983906da refinements 2022-01-13 11:11:50 +01:00
holger krekel cd1f164d18 update the webxdc language, fix some typos 2022-01-13 11:11:50 +01:00
holger krekel 7ff25f282e another update 2022-01-13 11:11:50 +01:00
holger krekel b8dc608032 some updates/refinements 2022-01-13 11:11:50 +01:00
holger krekel d7e699320b shift to webxdc naming (#2933) 2022-01-13 11:11:50 +01:00
holger krekel 41f9314e2a provide a higher level view of web30 based on the conversations i started about it around November 14th 2021 2022-01-13 11:11:50 +01:00
holger krekelandbjoern fc441d4a44 hide URL for test account creation (#2560)
* hide URL for test account creation

* Update python/README.rst

Co-authored-by: bjoern <r10s@b44t.com>
2021-07-28 15:13:20 +02:00
holger krekel 11823d3b45 use master for tag-buids of upload wheels job 2021-03-23 22:20:14 +01:00
holger krekel 7017a050cb prepare 1.51.0 release 2021-03-23 18:55:34 +01:00
holger krekel e1fec6a460 try fixing upload docs step (#2249)
run the upload wheels activity on our build machine -- it requires python 3.6 or greater and CI's "machine" only provides python3.5
2021-02-17 23:08:40 +01:00
holger krekel 374ee7c1fe this test sometimes fails maybe due to the timeout and not enough randomness for RSA2048 2021-02-16 12:07:03 +01:00
holger krekel c620d3e215 another try 2021-02-13 20:51:07 +01:00
holger krekel ce09988ee5 try running the upload script on python3.6 2021-02-13 16:57:09 +01:00
holger krekel a83293102e another round of python3.5 fixes and retagging 2021-02-13 15:45:31 +01:00
holger krekel c3232e6d8f fix python3.5 2021-02-13 14:29:40 +01:00