Commit graph

3198 commits

Author SHA1 Message Date
strawberry
3f7c4852e8 sort the complement results by test name for consistent output
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-02 10:32:30 -04:00
strawberry
13bf1ed55d chore: update checked-in complement test results
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-02 04:47:55 -04:00
strawberry
6a450e8e94 fix: get the presence of the requested user instead of ourselves
after getting the shared rooms with the target user, we actually only
get the presence of ourselves instead of the requested user

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-02 04:19:17 -04:00
strawberry
d64cfcdc7a set -vet=off to (hopefully) run all complement tests
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-02 02:38:06 -04:00
strawberry
3828a04007 add destination to X-Matrix Authorization outbound requests
we were already validating this for inbound requests

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-02 02:26:11 -04:00
strawberry
b26f46f6cb remove future deleted nix binary cache
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-02 02:06:44 -04:00
strawberry
42ba2584ab chore: update checked in list of complement test results
also remove the separated passed/failed list, it's already ordered
neatly for folks to read.

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-02 01:05:05 -04:00
strawberry
580004c065 nix: specify explicit branches/refs for flake inputs
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 23:38:47 -04:00
strawberry
c3f6a7a272 ci, nix: build and cache all packages and CI dependencies
from f5bd9bc45e
with changes for GitHub CI and misc

Co-authored-by: Charles Hall <charles@computer.surgery>
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 23:38:43 -04:00
strawberry
36d92f1cd5 ci: run complement with direnv
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 23:07:33 -04:00
strawberry
03ea854a08 ci: compare complement results with checked-in results
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 22:53:16 -04:00
strawberry
b265f87abf use nix-output-monitor if available
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 22:48:30 -04:00
strawberry
31a912a730 run complement in CI (does not compare results yet)
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 22:38:22 -04:00
strawberry
97ce09f4f8 dont return "Allocator" header for server memory-usage if empty
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 21:50:46 -04:00
strawberry
581798916a return more user-friendly message for debug memory-stats
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 21:45:30 -04:00
strawberry
ee95881545 refactor and simplify room creation route a bit
removes a couple unnecessary checks, uses our room_id ruma request field

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 16:53:34 -04:00
strawberry
c6bf7234bb chore: bump deps
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 15:35:16 -04:00
strawberry
7d486c3a00 remove this unnecessary log, use debug_warn
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 14:30:20 -04:00
strawberry
bf03e16c40 dedupe version getting code, rename to CONDUWUIT_VERSION_EXTRA
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 13:35:16 -04:00
strawberry
fc28bc9b7a lint
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 13:07:45 -04:00
Charles Hall
8a1b8b3d20 improve "Leave event has no state" log
To include the user, room, and event ID.

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 12:39:59 -04:00
strawberry
36fec6b2f2 nix: only set CONDUIT_VERSION_EXTRA for final build + slight cleanup
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 12:37:03 -04:00
strawberry
7bd0bff55b move hierarchy via servers higher up, add some debug logging to it
this entire thing needs to be cleaned up later, but i need spaces
to work

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 03:26:49 -04:00
strawberry
dafd300675 add workaround for room creation initial_state event content as {}, slight refactor
this will simply skip over the events

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 01:37:33 -04:00
Jason Volk
9ad552a8b6 rename / simplify tester stub for now
Signed-off-by: Jason Volk <jason@zemos.net>
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 00:25:16 -04:00
Jason Volk
d844d2ac1a daily logging improvements
Signed-off-by: Jason Volk <jason@zemos.net>
2024-05-01 00:24:51 -04:00
Jason Volk
5eed383211 split http serving from main.
Signed-off-by: Jason Volk <jason@zemos.net>
2024-05-01 00:24:42 -04:00
Jason Volk
6c75a9c059 add configuration for rocksdb direct-io enablement
Signed-off-by: Jason Volk <jason@zemos.net>
2024-05-01 00:12:18 -04:00
strawberry
08311caf49 split up alias.rs a bit (alias checks and room alias server name stuff)
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 00:01:49 -04:00
strawberry
3891c1fc7b use ok_or_else instead of ok_or for backup.rs
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 00:00:56 -04:00
strawberry
ed09740ddb initialise capabilities with default constructor
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-05-01 00:00:22 -04:00
strawberry
7f0a4d861b dedupe half of account/room data config.rs code
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-30 21:33:02 -04:00
strawberry
b5674b2764 dedupe some code in state.rs
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-30 20:16:43 -04:00
strawberry
0200b0e068 rm complement test logs, rm docker healthcheck.sh, rm .vscode/ dir, move test results to tests/ dir
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-30 19:02:46 -04:00
strawberry
c98fbea8b1 partially revert this
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-29 17:53:19 -04:00
strawberry
4ee72326f9 add query_over_tcp_only config option for hickory
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-29 14:47:31 -04:00
strawberry
df7e8ff3d7 set AD bit to false in hickory
this is purely DNSSEC related which we don't use, and DNSSEC on matrix
is unbearable for federation (no one sets it up properly, it's extremely taxing, etc)

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-29 14:31:10 -04:00
strawberry
1611614ebe add ip_lookup_strategy config option for hickory resolver
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-29 14:25:11 -04:00
strawberry
fa367cb1f5 add hot_lib to default.nix src include
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 22:50:33 -04:00
strawberry
eed7278d47 bump ruma
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 22:37:06 -04:00
strawberry
1f4db11cec tiny refactoring, split out report_event_route a bit
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 22:36:39 -04:00
strawberry
c8037abcb0 cargo doc lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 20:57:32 -04:00
strawberry
8fd562c6cb hot lib things again
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 19:55:53 -04:00
strawberry
3c4d09f4f2 document hot_lib for developers a bit
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 18:55:28 -04:00
strawberry
e3a2f9aae9 slight misc adjustments
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 18:30:19 -04:00
strawberry
5320a8f6eb add (probably messy) support for hot lib reload via admin command
`!admin test test1`

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 18:29:48 -04:00
strawberry
70f5336620 use user_is_local and server_is_ours more, remove few double filters
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 13:18:09 -04:00
strawberry
036c1195c4 resolve ptr_as_ptr lint
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 11:48:06 -04:00
strawberry
b802818c2d bump MSRV to 1.76.0
there's really no point in trying to stay as low as possible for us,
and this makes development easier. Debian users should just use rustup,
Nix users already get the proper toolchains.

Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 11:45:42 -04:00
strawberry
2f0c2a36dd use single global function for server name local and user local checking
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-04-28 11:35:25 -04:00