Commit Graph
2567 Commits
Author SHA1 Message Date
Antonio Scandurra 6d307e42c2 collab 0.3.13 2022-12-15 10:53:17 +01:00
Antonio Scandurra 62c95778b1 Avoid logging an error when user who hasn't joined any room disconnects 2022-12-15 10:45:03 +01:00
Antonio Scandurra b4a4b40623 Use "id" nomenclature more consistently 2022-12-15 10:15:59 +01:00
Antonio Scandurra 21a1f1881d Re-add server_id indices for room_participants/project_collaborators 2022-12-15 09:58:25 +01:00
Julia c0c47139aa Get tests building again 2022-12-15 00:17:28 -05:00
Max Brunsfeld c50083fff9 Fix stale server queries, use foreign keys from connectionsn to servers 2022-12-14 17:34:24 -08:00
Max Brunsfeld a02df9136d Merge pull request #1921 from zed-industries/multibuffer-following
Allow following collaborators into editors with multi-excerpt buffers (refactors + find-all-refs)
2022-12-14 15:33:11 -08:00
Max Brunsfeld 7ae981d252 Add integration test coverage for following into multibuffers 2022-12-14 15:28:58 -08:00
Max Brunsfeld fefe89ace0 Use run_until_parked instead of 'condition' in all integration tests 2022-12-14 15:05:35 -08:00
Antonio Scandurra b04de1ceca WIP 2022-12-14 19:25:07 +01:00
Antonio Scandurra d661abda72 WIP 2022-12-14 18:02:39 +01:00
Antonio Scandurra f7070792a9 Introduce an epoch to ConnectionId and PeerId 2022-12-14 15:55:56 +01:00
Antonio Scandurra 0f76cdc93c collab 0.3.12 2022-12-14 11:43:33 +01:00
Antonio Scandurra 8ae2b7e343 Instrument rpc::Server::start and reduce cleanup timeout again 2022-12-14 11:42:12 +01:00
Antonio Scandurra 5191772ece collab 0.3.11 2022-12-14 11:25:04 +01:00
Antonio Scandurra be5c610880 Try using a longer timeout for cleaning up stale rooms 2022-12-14 11:24:36 +01:00
Antonio Scandurra e320b220f9 collab 0.3.10 2022-12-14 09:35:52 +01:00
Antonio Scandurra 9dbeed41e7 Reduce readiness probe delay and period 2022-12-14 09:35:36 +01:00
Antonio Scandurra 02b42e5eb9 collab 0.3.9 2022-12-14 09:05:19 +01:00
Antonio Scandurra 2dedc81514 Fix kubernetes configuration for readiness probe 2022-12-14 08:58:19 +01:00
Antonio Scandurra 5ef6a113e7 collab 0.3.8 2022-12-14 08:56:02 +01:00
Antonio Scandurra 989c93dac6 Define readiness probe to know when the new server can accept traffic 2022-12-14 08:54:46 +01:00
Antonio Scandurra 6db8f7797d collab 0.3.7 2022-12-14 08:43:18 +01:00
Antonio Scandurra e7afe6e578 Don't wait for stale project deletion before listening for connections 2022-12-14 08:42:34 +01:00
Antonio Scandurra 73ddd70c90 collab 0.3.6 2022-12-13 23:09:02 +01:00
Antonio Scandurra 28dc4f0d5b Listen to SIGTERM in addition to ctrl-c for graceful shutdown 2022-12-13 23:08:43 +01:00
Antonio Scandurra efc2ffabcb collab 0.3.5 2022-12-13 22:40:55 +01:00
Antonio ScandurraandMax Brunsfeld ab0f01e9d5 Set log level to debug for preview deployment
Also, add a log statement when we receive the interrupt signal.

Co-Authored-By: Max Brunsfeld <max@zed.dev>
2022-12-13 22:38:55 +01:00
Max Brunsfeld be3aebc378 collab 0.3.4 2022-12-13 11:17:37 -08:00
Max BrunsfeldandAntonio Scandurra f515b0d419 Fix excessive delay before clearing stale room data
Co-authored-by: Antonio Scandurra <antonio@zed.dev>
2022-12-13 11:17:20 -08:00
Max Brunsfeld 14f0eca81b collab 0.3.3 2022-12-13 10:17:01 -08:00
Max Brunsfeld 5078b6779f Merge remote-tracking branch 'origin/collab-0.3.x' 2022-12-13 10:16:25 -08:00
Max BrunsfeldandAntonio Scandurra e86b25393f Wait longer before deleting outdated rooms from the database
Co-authored-by: Antonio Scandurra <antonio@zed.dev>
2022-12-13 10:14:43 -08:00
Antonio Scandurra 25d67d7356 collab 0.3.2 2022-12-13 15:16:41 +01:00
Antonio Scandurra 929faa1772 Move creation of room_id index into its own migration 2022-12-13 13:57:41 +01:00
Antonio Scandurra b7a0330fe0 Run until parked before asserting about participants in restart test 2022-12-13 13:53:51 +01:00
Antonio Scandurra 5ee6f231a1 Reset connection pool when tearing down the server in tests 2022-12-13 13:51:25 +01:00
Antonio Scandurra 335120c8d2 Use a synchronous mutex for ConnectionPool 2022-12-13 13:50:51 +01:00
Antonio Scandurra bd7fd58be1 Simulate server restarts in randomized test 2022-12-13 12:18:38 +01:00
Antonio Scandurra de7e1cca78 Fix typo in index name 2022-12-13 11:44:48 +01:00
Antonio Scandurra eb27691bc1 Include room_id in CallCanceled message
This ensures we don't accidentally cancel old calls.
2022-12-13 11:43:09 +01:00
Antonio Scandurra c78ee63d14 💄 2022-12-13 11:37:39 +01:00
Antonio Scandurra a8cf47ea2a Delete stray debug statement 2022-12-13 11:36:40 +01:00
Antonio Scandurra d96ef3d256 Delete stale rooms/participants after RECONNECT_TIMEOUT 2022-12-13 11:32:37 +01:00
Antonio Scandurra 21aacbb216 Allow re-joining room after server restarts 2022-12-12 16:03:21 +01:00
Antonio Scandurra ed8737d08d Always cast connection ids to i32
Postgres doesn't support unsigned types. This also adds indices to
support querying `project_collaborators` and `room_participants`
by connection id.
2022-12-12 11:43:08 +01:00
Antonio Scandurra 8071e4abab Rename connection_lost to answering_connection_lost 2022-12-12 11:43:08 +01:00
Antonio Scandurra 0d3bcec64b Delete hosted projects from database when connection is lost 2022-12-12 11:43:08 +01:00
Antonio Scandurra bfec91b3ba Introduce random reconnections in the randomized test 2022-12-12 11:43:08 +01:00
Antonio Scandurra 504f4fa2e8 Fix test_calls_on_multiple_connections after adding room reconnection 2022-12-12 11:43:08 +01:00