mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-13 06:04:30 +08:00
- 修复架构配置、启动流程与序列化测试中的异步等待和 invariant 解析告警 - 补充 AllOf 与 persistence 测试的残余状态校验与 ConfigureAwait 修正,继续压低 Game.Tests warning - 更新 analyzer-warning-reduction 跟踪与 trace,纠正 RP-054 的 stop-condition 口径并记录 RP-055 指标
5.1 KiB
5.1 KiB
Analyzer Warning Reduction 跟踪
目标
继续以“直接看构建输出、直接修构建 warning”为原则推进当前分支,并保持 active recovery 文档只保留当前真值。
当前恢复点
- 恢复点编号:
ANALYZER-WARNING-REDUCTION-RP-055 - 当前阶段:
Phase 55 - 当前焦点:
2026-04-24本轮先纠正了 batch stop-condition 的计算口径:应使用origin/main与HEAD的 merge-base 分支 diff,而不是工作树 diff- 在该正确口径下,
RP-054提交后的真实 branch 体积是23个文件、603行;当前这批提交后的投影体积是26个文件、691行,仍低于$gframework-batch-boot 75 - 本轮已完成
ArchitectureConfigIntegrationTests、GameConfigBootstrapTests、JsonSerializerTests的小热点清理,并顺手补齐YamlConfigLoaderAllOfTests/PersistenceTests的残余 warning - 当前仍在
GFramework.Game.Tests内推进,但剩余热点已经越来越集中到YamlConfigLoaderTests.cs与GeneratedConfigConsumerIntegrationTests.cs这类高上下文文件
当前活跃事实
- 之前记录的 plain
dotnet build0 Warning(s)属于增量构建假阴性,不能再作为 warning 检查真值 - 仓库根目录
dotnet clean GFramework.sln -c Release仍在ValidateSolutionConfiguration阶段失败,项目级dotnet clean GFramework.Game.Tests/GFramework.Game.Tests.csproj -c Release也未能稳定提供 clean 基线 - 当前整仓最近一次直接观测值仍是
dotnet build GFramework.sln -c Release的116 warning(s) dotnet build GFramework.Game.Tests/GFramework.Game.Tests.csproj -c Release已从上一批入口的116 warning(s)继续收敛到本轮收尾的63 warning(s)- 本轮已验证
dotnet test GFramework.Game.Tests/GFramework.Game.Tests.csproj -c Release --filter "FullyQualifiedName~ArchitectureConfigIntegrationTests|FullyQualifiedName~GameConfigBootstrapTests|FullyQualifiedName~JsonSerializerTests",结果为Passed: 19 GFramework.Game.Tests当前剩余 warning 主要集中在未触碰的YamlConfigLoaderTests.cs、GeneratedConfigConsumerIntegrationTests.cs,以及少量未处理的GameConfigBootstrapTests之外热点
当前风险
- 如果后续继续依赖增量
dotnet build,容易再次把 warning 数量误判为 0- 缓解措施:每轮 warning 检查前先执行
dotnet clean,再执行目标dotnet build
- 缓解措施:每轮 warning 检查前先执行
- 仓库根目录与
GFramework.Game.Tests的dotnet clean目前都无法给出新的 clean 基线- 缓解措施:后续若继续整仓 warning reduction,需要单独定位 clean 失败原因,或明确继续沿用 direct build 观测值作为临时真值
- 当前 worktree 仍存在未跟踪的
.codex目录- 缓解措施:提交当前批次时只暂存 analyzer-warning-reduction 相关源码与
ai-plan文件,避免把工作目录辅助文件混入提交
- 缓解措施:提交当前批次时只暂存 analyzer-warning-reduction 相关源码与
- 下一轮若继续深入
GFramework.Game.Tests,很可能需要进入YamlConfigLoaderTests.cs这种高上下文大文件- 缓解措施:把它单独作为一个明确的新批次处理,不与其它 warning family 混批
活跃文档
- 当前轮次归档:
- 历史跟踪归档:
- 历史 trace 归档:
验证说明
dotnet clean GFramework.sln -c Release- 结果:失败;停在 solution
ValidateSolutionConfiguration,0 Warning(s)、0 Error(s),未输出更具体的 error 文本
- 结果:失败;停在 solution
dotnet build GFramework.sln -c Release- 结果:成功;
116 Warning(s)、0 Error(s)
- 结果:成功;
dotnet clean GFramework.Game.Tests/GFramework.Game.Tests.csproj -c Release- 结果:失败;clean 阶段在 MSBuild 清理路径结束前返回
0 Warning(s)、0 Error(s),未输出额外错误文本
- 结果:失败;clean 阶段在 MSBuild 清理路径结束前返回
dotnet build GFramework.Game.Tests/GFramework.Game.Tests.csproj -c Release- 结果:成功;
63 Warning(s)、0 Error(s)
- 结果:成功;
dotnet test GFramework.Game.Tests/GFramework.Game.Tests.csproj -c Release --filter "FullyQualifiedName~ArchitectureConfigIntegrationTests|FullyQualifiedName~GameConfigBootstrapTests|FullyQualifiedName~JsonSerializerTests"- 结果:成功;
Passed: 19、Failed: 0
- 结果:成功;
下一步建议
- 提交当前
GFramework.Game.Tests小热点批次与RP-055tracking 更新,继续保持只纳入本 topic 相关文件 - 下一轮若继续 warning reduction,应优先决定是否接受进入
YamlConfigLoaderTests.cs的高上下文批次