Support HS upgrade tests
メンテナーはふだん 14 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
まず cmd/dendrite-upgrade-tests と Complement の /tests インフラストラクチャを読み、次に SYNAPSE_VERSION が扱われている dockerfiles/Synapse.Dockerfile を調べます。実装前に、提案されている HS_VERSION と永続化の契約を明確にします。完了時には、サポート対象のホームサーバー向けに、文書化され再現可能なアップグレードテスト手順を含める必要があります。
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Go
- スター
- 101
- フォーク
- 72
- 平均マージ
- 11日 5時間
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
matrix-org/complement のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
matrix-org/complement#900 · コメント 1 件 ·
メンテナーはふだん 14 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
matrix-org/complement#938 ·
メンテナーはふだん 14 日以内に返信
-
New tests for MSC4354 Sticky Events再び着手できるかも @reivilibre が 32 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
matrix-org/complement#925 · 担当者 1 名 ·
メンテナーはふだん 14 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
matrix-org/complement#901 · コメント 1 件 ·
メンテナーはふだん 14 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
matrix-org/complement#899 ·
メンテナーはふだん 14 日以内に返信
matrix-org/complement の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area/frontend/library-panels automated-triage type/bug type/ux
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
microsoft/azure-linux-image-tools#954 ·
メンテナーはふだん 1 日以内に返信
-
panic "time: missing Location in call to Time.In" on MySQL via aws_rds since v0.8.0対応中かも @tylertechgraves が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
open-policy-agent/opa-control-plane#452 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[bug bash] Actor logs are controlled by Kubernetes RBAC on the pool namespace, not atespace rolesオープンarea/cli area/security bug-bash kind/docs
難易度 1/5 1〜3時間 初心者へのやさしさ 80/100
agent-substrate/substrate#3242 ·
メンテナーはふだん 1 日以内に返信