Support HS upgrade tests
Maintainer antworten meist innerhalb von 14 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginne mit der Lektüre von cmd/dendrite-upgrade-tests und der /tests-Infrastruktur von Complement. Untersuche anschließend dockerfiles/Synapse.Dockerfile, in dem SYNAPSE_VERSION verarbeitet wird. Kläre den vorgeschlagenen HS_VERSION- und Persistence-Vertrag vor der Implementierung; der Abschluss sollte einen dokumentierten, wiederholbaren Upgrade-Testpfad für unterstützte Homeserver umfassen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Dendrite has https://github.com/matrix-org/dendrite/tree/master/cmd/dendrite-upgrade-tests which will automatically pull and run different versions of dendrite with the same database and ensure db migrations work correctly. It can be run for example by doing ./dendrite-upgrade-tests --from 0.1.0 --to 0.3.1. This will:
- Fetch semver looking tags from github (or
HEAD). - Sort them.
- Pull archives for each release.
- Execute a Dockerfile with the build context set to the root directory of the release.
- Run the lowest semver, make some users and rooms, send a few messages, tear down the server.
- Keep the database as a docker volume.
- Repeat with the next lowest semver up until
--to. - Test that the last HS run has the original users/rooms/messages from all previous runs.
It looks like Synapse has some bisectability baked into the Complement Synapse image: https://github.com/matrix-org/complement/blob/76db9e5ae6c45d889000feb19f024f184c8bd6e3/dockerfiles/Synapse.Dockerfile#L14
If Complement standardised the format of this (e.g thou shalt accept the build arg HS_VERSION=$semver) then we could, in theory, make https://github.com/matrix-org/dendrite/tree/master/cmd/dendrite-upgrade-tests work for any HS (modulo working out how to do persistence, as currently Dendrite uses postgres and that assumption is baked into the upgrade testing infra: this could just be stating that the directory /data is persisted across runs and you need to just dump your DB there).
This arguably is and isn't feature creep. It is feature creep because it has nothing to do with the integration tests in /tests. It isn't feature creep because it is still ultimately testing HSes, just the upgrade paths.
Thoughts @richvdh (on the basis that you added SYNAPSE_VERSION?
- Vorherrschende Sprache
- Go
- Sterne
- 101
- Forks
- 72
- Ø Merge
- 11 T. 5 Std.
- Gemergte PRs (30 T.)
- 7
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus matrix-org/complement
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
matrix-org/complement#900 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 14 Tagen
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 45/100
matrix-org/complement#938 ·
Maintainer antworten meist innerhalb von 14 Tagen
-
New tests for MSC4354 Sticky EventsEvtl. wieder frei @reivilibre hat das vor 29 Tagen übernommen, und es ist kein Pull Request offen. Offen
matrix-org/complement#925 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 14 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
matrix-org/complement#901 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 14 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
matrix-org/complement#899 ·
Maintainer antworten meist innerhalb von 14 Tagen
Alle Issues in matrix-org/complement
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
FiloSottile/age#758 ·
-
nginx configOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
Maintainer antworten meist innerhalb von 1 Tag