fix(validation): 让校验模式执行完整数据验证 - #60
Draft
0x5143 wants to merge 1 commit into
Draft
Conversation
- 统一表类型描述符中的解析、物化、验证、序列化与代码渲染入口 - 复用不可变数据快照,确保类型转换仅执行一次并记录内存估算指标 - 迁移 tree 与 graph 数据规则并补充模式对等测试和文档
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.
变更内容
TableTypeDescriptorRegistry统一表类型的解析、物化、校验、序列化和代码渲染入口。ValidateOnly走同一数据校验路径,并补充失败时不落盘的集成测试。原因与影响
此前 tree/graph 的部分语义校验仅在 serializer 中执行,
ValidateOnly不会进入该阶段,导致校验命令漏报问题。现在无效数据会在代码和.bytes产物写出前被一致地发现,避免生成半成品。验证
dotnet test tests/DataTables.Tests/DataTables.Tests.csproj --no-restore --filter "DataTableProcessorArchitectureTests|GenerationTransactionTests"(26 passed)dotnet test tests/DataTables.Tests/DataTables.Tests.csproj --no-restore --filter "Generator|Schema|Binary|DataTableProcessor|DataType"(25 passed)dotnet build DataTables.sln --no-restore(0 warnings, 0 errors)