`TestInboundFederationKeys` fails if empty `old_verify_keys` is omitted
维护者通常 2 天内回复
还没有人认领这个 Issue。
评估
调研方向
失败的检查位于 tests/federation_keys_test.go 的第 74-101 行附近,其中 MatchResponse 配合 JSONMapEach 要求存在 old_verify_keys 键。阅读该代码块,看看其他可选字段是如何处理的,然后将 old_verify_keys 设为可选,使缺失的键可以通过,而存在且格式正确的键仍然会被检查。运行 TestInboundFederationKeys;当测试在省略空字段的服务器上通过时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
This field in /_matrix/key/v2/server is optional, and in Mautrix omitted when empty, but Complement returns an error if it is not present at all:
❌ TestInboundFederationKeys (FAIL; 4.75s)
2026/11/03 01:08:53 WARNING: complement_fed_3_fed.1_servers.hs1_1 has a named VOLUME /var/lib/postgresql/data - volumes can lead to unpredictable behaviour due to test pollution. Remove the VOLUME in the Dockerfile to suppress this message.
federation_keys_test.go:30: Deploy times: 9.103914ms blueprints, 3.450035018s containers
federation_keys_test.go:45: MatchResponse JSONMapEach: missing key 'old_verify_keys' - https://127.0.0.1:32789/_matrix/key/v2/server => {"server_name":"hs1","signatures":{"hs1":{"ed25519:307d59fc32ee2771e7292fa1c4519e77ce6d6069d0bb78400d1208e48c278abd":"EBzKuwvrcSo2RzONAKAeN76zwdf4OTJxrLFQDeFmOKLq5MFQXFXKwU3cwFH2h19uANQu5wDbxpvy0YNfUUBlCg"}},"valid_until_ts":1793754536056,"verify_keys":{"ed25519:307d59fc32ee2771e7292fa1c4519e77ce6d6069d0bb78400d1208e48c278abd":{"key":"eN5abljPWdwVk+w5MIrl7Ld/KqWVH5+Ms6vnKWxcKBM"}}}
- 主要语言
- Go
- 星标
- 101
- 派生
- 73
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
matrix-org/complement 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
matrix-org/complement#953 ·
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 78/100
matrix-org/complement#952 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
matrix-org/complement#949 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
matrix-org/complement#947 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
matrix-org/complement#900 · 2 条评论 ·
维护者通常 2 天内回复
查看 matrix-org/complement 的全部 Issue
相似的 Issue
-
component:obi contribfest go test
难度 2/5 1 小时以内 新手友好度 83/100
open-telemetry/opentelemetry-ebpf-instrumentation#4143 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area/ambient
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
kind/cleanup
难度 2/5 1-3 小时 新手友好度 68/100
kubernetes-sigs/kueue#18324 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 84/100