dymattic
97f92db8d7
Merge branch 'master' into dymattic-install
2020-10-21 16:55:35 +02:00
Neil Alexander
534f9a9eb6
Refactor forward extremities ( #1556 )
...
* Add resolve-state helper
* Tweaks
* Refactor forward extremities, again
* Tweaks
* Minor optimisation
* Make path a bit clearer
* Only process state/membership if forward extremities have changed
* Usage comments in resolve-state
2020-10-21 15:37:07 +01:00
dymattic
b096e02560
- small fix INSTALL.md
2020-10-21 10:55:44 +02:00
dymattic
0d5a885a89
Merge branch 'master' into dymattic-install
2020-10-21 10:49:09 +02:00
dymattic
b25380f39d
- added polylith-example@.service to docs
...
- added SYSTEMD.md to docs/systemd and moved systemd Part from INSTALL.md
- small fixes in script
2020-10-21 10:47:21 +02:00
Vladislav Povalyaev
e4f3f38f35
Update development percentages ( #1553 )
2020-10-20 20:49:03 +01:00
Kegsay
6b8791b868
Always call overridden form of GetLatestEventsForUpdate ( #1554 )
...
This ensures we don't make txns on sqlite still, which can cause
'database is locked' errors.
2020-10-20 19:32:33 +01:00
Dmitrij Pastian
832e0f04c8
Merge remote-tracking branch 'origin/dymattic-install' into dymattic-install
2020-10-20 19:10:04 +02:00
Dmitrij Pastian
acffbe6cd2
-updated INSTALL.md
...
-fixes in install-polylith-systemd-units.sh
2020-10-20 19:09:47 +02:00
dymattic
9a45295109
Merge branch 'master' into dymattic-install
2020-10-20 18:59:54 +02:00
Dmitrij Pastian
4394930ce8
-changed to dendrite-polylith-multi (v.0.2.0)
...
-creating templated systemd unit files dendrite@.service
2020-10-20 18:58:16 +02:00
Neil Alexander
7612f64e3c
Update gomatrixserverlib to matrix-org/gomatrixserverlib#220
2020-10-20 17:23:04 +01:00
Neil Alexander
24e38c4135
Internal HTTP APIs over H2C ( #1541 )
...
* H2C on internal HTTP because SCIENCE
* Update comments
2020-10-20 17:13:12 +01:00
Neil Alexander
7ca89ef511
Update gomatrixserverlib
2020-10-20 17:10:37 +01:00
Dmitrij Pastian
cca4fdb86f
Merge remote-tracking branch 'origin/dymattic-install' into dymattic-install
2020-10-20 17:59:44 +02:00
dymattic
8d3ad7fec7
- Fixed database names in INSTALL.md
...
- added comments for postgresql config in dendrite-config.yaml
2020-10-20 17:57:33 +02:00
dymattic
34d741f8e9
- added install-polylith-systemd-units.sh: script to isntall systemd units for polylith deployments
...
- fixed some errors in INSTALL.md and added description for polylith service setup
2020-10-20 17:57:17 +02:00
Neil Alexander
6a16d46fba
Version 0.2.0 ( #1551 )
...
* v0.2.0-rc2
* Update CHANGES.md (also with some markdown lint suggestions)
* Update version number
* Update CHANGES.md
* Update CHANGES.md
* Update CHANGES.md
* Add known issue
* Update CHANGES.md
2020-10-20 16:46:53 +01:00
Neil Alexander
39c7a8915c
Multi-personality polylith binary ( #1552 )
...
* Initial work oon multipersonality binary
* Remove old binaries
* Monolith and polylith binaries
* Better logging
* dendrite-poly-multi
* Fix path
* Copyright notices etc
* Tweaks
* Update Docker, INSTALL.md
* Take first argument if flags package doesn't find any args
* Postgres 9.6 or later, fix some more Docker stuff
* Don't create unnecessary e2ekey DB
* Run go mod tidy
2020-10-20 16:11:24 +01:00
Neil Alexander
6c3c621de0
Remove invalid state delta check ( #1550 )
2020-10-20 12:36:16 +01:00
Kegan Dougal
837c295c26
Linting
2020-10-20 12:29:53 +01:00
dymattic
829263bfb9
Merge branch 'master' into dymattic-install
2020-10-20 13:06:04 +02:00
Dmitrij Pastian
aa7d1a55ae
Merge remote-tracking branch 'origin/master' into dymattic-install
...
# Conflicts:
# docs/INSTALL.md
2020-10-20 13:04:35 +02:00
Pika
53a745f333
fix create-account ( #1546 )
2020-10-20 11:47:37 +01:00
Dmitrij Pastian
d6937cb31e
Merge remote-tracking branch 'origin/dymattic-install' into dymattic-install
2020-10-20 12:44:10 +02:00
S7evinK
65044b9d98
Fix internal http api ( #1535 )
...
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
2020-10-20 12:43:26 +02:00
Kegsay
eb86e2b336
Fix sqlite locking bugs present on sytest ( #1543 )
...
* Fix sqite locking bugs present on sytest
Comments do the explaining.
* Fix deadlock in sqlite mode
Caused by starting a writer whilst within a writer
* Only complain about invalid state deltas for non-overwrite events
* Do not re-process outlier unnecessarily
2020-10-20 11:42:54 +01:00
Neil Alexander
92982a402f
Update Docker ( #1542 )
...
* Separate Docker images, rather than tags
* Allow specifying tag to build/push/pull
* Include goose in Docker builds
2020-10-20 11:34:22 +01:00
Neil Alexander
a71360d099
Update INSTALL.md ( #1549 )
2020-10-20 11:22:46 +01:00
Neil Alexander
c7bf122a26
Update sytest lists
2020-10-19 15:38:42 +01:00
Neil Alexander
5d80ff11a0
Update sytest-whitelist
2020-10-19 15:17:28 +01:00
Devon Johnson
45abdcaeb9
Send state after event, not current
...
Signed-off-by: Devon Johnson <djohnson1865@gmail.com>
2020-10-19 15:12:37 +01:00
Neil Alexander
6e63df1d9a
KindOld ( #1531 )
...
* Add KindOld
* Don't process latest events/memberships for old events
* Allow federationsender to ignore duplicate key entries when LatestEventIDs is duplicated by RS output events
* Signal to downstream components if an event has become a forward extremity
* Don't exclude from sync
* Soft-fail checks on KindNew
* Don't run the latest events updater at all for KindOld
* Don't make federation sender change after all
* Kind in federation sender join
* Don't send isForwardExtremity
* Fix syncapi
* Update comments
* Fix SendEventWithState
* Update sytest-whitelist
* Generate old output events
* Sync API consumes old room events
* Update comments
2020-10-19 14:59:13 +01:00
dymattic
21800666f9
Merge branch 'master' into dymattic-install
2020-10-19 12:41:59 +02:00
S7evinK
0974f6e2c0
Fix internal http api ( #1535 )
...
Signed-off-by: Till Faelligen <tfaelligen@gmail.com>
2020-10-19 09:38:10 +01:00
dymattic
2e7d18c6cd
- Fixed database names in INSTALL.md
...
- added comments for postgresql config in dendrite-config.yaml
2020-10-18 20:50:41 +02:00
dymattic
ae5db5fdc7
- added install-polylith-systemd-units.sh: script to isntall systemd units for polylith deployments
...
- fixed some errors in INSTALL.md and added description for polylith service setup
2020-10-18 03:54:00 +02:00
Neil Alexander
640e8c50ec
Take write lock for rate limit map ( #1532 )
...
* Take write lock for rate limit map
* Fix potential race condition
2020-10-16 15:44:39 +01:00
Kegsay
4a7fb9c045
Automatically upgrade databases on startup ( #1529 )
...
* Support auto-upgrading accounts DB
* Auto-upgrade device DB deltas
* Support up/downgrading from cmd/goose
* Linting
* Create tables then do migrations then prepare statements
To avoid failing due to some things not existing
* Linting
2020-10-15 18:09:41 +01:00
Neil Alexander
3e5d38e284
Improve state resolution v2 performance ( matrix-org/gomatrixserverlib#237 )
2020-10-15 16:20:19 +01:00
Neil Alexander
e154c45b51
Better logging around db.StoreEvent
2020-10-15 14:14:17 +01:00
Neil Alexander
49abe359e6
Start Kafka connections for each component that needs them ( #1527 )
...
* Start Kafka connection for each component that needs one
* Fix roomserver unit tests
* Rename to naffkaInstance (@Kegsay review comment)
* Fix import cycle
2020-10-15 13:27:13 +01:00
Neil Alexander
10f1beb0de
Don't re-run state resolution on a single trusted state snapshot ( #1526 )
...
* Don't re-run state resolution on a single trusted state snapshot
* Lint
* Check if backward extremity is create event before checking missing state
2020-10-15 12:08:49 +01:00
Kegsay
e3c2b081c7
txn nil guard when rolling back LatestEventsUpdater ( #1524 )
...
* txn nil guard when rolling back LatestEventsUpdater
* Spell lint correctly
2020-10-14 17:05:09 +01:00
Neil Alexander
6f12b8f85c
Ignore typing events where sender doesn't match origin ( #1523 )
...
* Ignore typing notifications where the sender doesn't match the origin
* Update sytest-whitelist
* Fix formatting directives
2020-10-14 16:49:25 +01:00
Neil Alexander
e3a3908654
Update sytest-whitelist ( closes #1315 )
2020-10-14 16:07:15 +01:00
Neil Alexander
8d9ecb3996
Ignore duplicate redaction entries ( #1522 )
2020-10-14 15:24:43 +01:00
Neil Alexander
286dd408ae
Better semver compliance for version reporting
2020-10-14 12:51:06 +01:00
Neil Alexander
7a1fd123de
Improved state handling in /send ( #1521 )
...
* Capture errors
* Don't request only state key tuples needed for auth (we end up discarding room state this way)
* QueryStateAfterEvent returns all state when no tuples supplied
* Resolve state
* Comments
2020-10-14 12:39:37 +01:00
Neil Alexander
20aec70ead
Send cumulative state when creating room ( #1519 )
...
* Send state with new room events
* lookupEvent sends outliers
* Revert "lookupEvent sends outliers"
This reverts commit 3e16556441 .
2020-10-14 09:57:27 +01:00