test(eventbus-redis): Redis 不支持 Streams 时跳过;chore: 升级依赖 - #119
Merged
zhaifanhua merged 2 commits intoSep 19, 2026
Merged
Conversation
原跳过守卫只判断「连得上」。本机 6379 若跑着 Redis 5.0 以下的实例 (如 Windows 移植版 3.0.x),连接成功但 XGROUP 报 unknown command, 5 个用例全红,而实际上是环境不满足前提。 连接后改为再检查 server.Features.Streams,不支持则关闭连接并整类跳过, 跳过原因带上服务端版本号。CI 不起 Redis,仍走「不可达」分支,行为不变。
- Microsoft.Agents.AI / Microsoft.Agents.AI.Abstractions 1.21.0 → 1.22.0 - MailKit 4.17.0 → 4.18.0 - SqlSugarCore 5.1.4.220 → 5.1.4.221 - OpenTelemetry.* 1.18.0 → 1.19.0 - Scalar.AspNetCore 2.17.3 → 2.17.6 - Microsoft.NET.Test.Sdk 18.10.0 → 18.10.1、xunit.v3 4.0.0 → 4.0.1 测试包统一在 props/test.props 升级;Web.Core / Web.Gateway / Web.Grpc 三个测试项目原有的 Microsoft.NET.Test.Sdk 覆写同步到 18.10.1, 否则会把 test.props 的版本压回旧值。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动范围
两个互相独立的提交,只涉及 测试守卫 与 依赖版本,不改任何框架运行时代码。共 11 个文件。
1.
test(eventbus-redis):Redis 不支持 Streams 时跳过而非失败问题:
RedisPendingBehaviorTests的跳过守卫只判断「连得上」。开发机 6379 上若是 Redis 5.0 以下的实例(例如 Windows 移植版 3.0.x),连接成功但XGROUP报ERR unknown command,5 个用例全红——实际是环境不满足前提,而不是被测行为有问题。改动:连接后再检查
server.Features.Streams,不支持则关闭连接、整类跳过,跳过原因带服务端版本号:影响:仅
framework/test/XiHan.Framework.EventBus.Redis.Tests/RedisPendingBehaviorTests.cs。CI 不起 Redis,仍走原来「不可达」的跳过分支,行为不变;Redis 5.0+ 环境下照常执行。2.
chore:升级依赖props/test.propsprops/test.props测试包只在
props/test.props统一升级,没有在各测试项目里逐个覆写。Web.Core.Tests/Web.Gateway.Tests/Web.Grpc.Tests三个项目原本就有<PackageReference Update="Microsoft.NET.Test.Sdk" Version="18.10.0" />覆写,若不同步会把test.props的新版本压回旧值,因此只把这三处的版本号改为 18.10.1,结构不动。验证
基于
main(62e6cd05 build: v4.3.0),SDK 10.0.112:dotnet build framework/XiHan.Framework.slnx -c Release -p:GeneratePackageOnBuild=false:0 警告,0 错误dotnet test --solution framework/XiHan.Framework.slnx -c Release:总计 11366,失败 0,跳过 38