Files
hm 326c405fe4 test(cov): add core-plus-v3 profile (112 targets, gate 55%) + W74/75/76 default-branch tests + nightly v3 wiring (W84)
- tools/coverage/target_profiles.json: 新增 core-plus-v3 profile = core-plus-v2 的 100
  目标 + 12 个目标(W74 test_b1_seam、W75 test_curved_boolean_assemble/_domain、
  W76 test_assembly_fuse、assembly 辅助 test_assembly/_constraints/_instance/_patterns、
  geometry 辅助 test_measure/_measure_planar_spanned/test_region_analysis、W84 语义补测
  test_cov_wave14_newbranches);line_pct_gate 53.0 -> 55.0,expected_min_cases 2200 ->
  2400;未改 core-pr/core/core-plus/core-plus-v2 任何字段。
- tests/brep/test_cov_wave14_newbranches.cpp(新增,13 用例):默认 ctest 即执行的
  W74/W75/W76 默认/回退分支语义断言(延长段 tag 编码契约、CB2 空图/切图默认回退、
  W76 UV 重试门控需双 env、DIAG 惰性、共面 stitch 惰性、W74 env 在 region 通道关闭时
  逐值惰性),含 ScopedEnv RAII 与报告快照逐字段比较。
- tests/brep/test_measure_planar_spanned.cpp + tests/brep/CMakeLists.txt:仅在
  -DVDE_ENABLE_COVERAGE=ON 构建定义 VDE_COVERAGE_BUILD,跳过 W61/W66/W72 性能 sanity
  的绝对微秒上界断言(gcov 插桩 + 并行负载下不具可比性,W54 同类先例);数值/位级/
  几何语义断言与覆盖统计不变,普通构建性能门禁语义不变。
- tools/coverage/baseline.json:--update-baseline 写入 core-plus-v3 实测条目
  line 60.1618%(85985/142923)、function 68.1789%(4178/6128)、
  branch 37.4396%(77859/207959)、112 targets、2925 用例;其它 4 个条目原样保留。
- .gitea/workflows/nightly.yml:core-plus-v3 常开 report-only 归档 + vars 门控
  strict-baseline 硬门禁(VDE_COV_PROFILE_V3,兼容 VDE_ENABLE_CORE_PLUS_V3),
  artifact 追加 v3 report/gate 目录。
- tools/ci/validate_workflows.py:新增规则 14(v3 门禁必须 --strict-baseline 且由
  vars opt-in 门控;nightly 必须同时有 v3 归档与门禁),新增 self-test 反例 3 个
  (60 -> 63),--strict PASS 2/2。

验证:
- python tools/vde_coverage_check.py --profile core-plus-v3 --strict-baseline -> PASS
  (rc=0,line 60.16% >= gate 55.0,tests 2925/2925 0 failed,elapsed 921.4s)。
- ctest -R "Cov|Coverage"(build-fast Release)-> 19/19 PASS,0 failed。
- python tools/vde_release.py --check -> PASS(checks=14 fail=0 warn=0)。
- 生产源码零改动:git diff 054724f7 -- src include 为空;B5 默认负载 digest
  d1c875b2322e097d 未变。
2026-11-21 11:31:08 +08:00

478 lines
14 KiB
JSON

{
"schema_version": 1,
"git": "054724f7",
"generated_at": "2026-11-21T11:09:44+08:00",
"notes": [
"Coverage baseline registry for KCP-1.0 Wave 2 / W13 (KC-A15 governance).",
"This file must contain measured data only - never hand-edit line_pct values.",
"Refresh entries with a real instrumented run:",
" python tools/vde_coverage_check.py --profile <name> --update-baseline",
"Nightly usage compares against the recorded value:",
" python tools/vde_coverage_check.py --profile core --min-line-pct baseline",
"If the requested profile has no entry, the checker warns and degrades to report-only unless --strict-baseline is passed."
],
"entries": {
"core-pr": {
"profile": "core-pr",
"build_type": "RelWithDebInfo",
"line_pct": 24.0305,
"lines_covered": 26677,
"lines_total": 111013,
"func_pct": 26.7484,
"funcs_covered": 1243,
"funcs_total": 4647,
"branch_pct": 15.0821,
"branches_covered": 24717,
"branches_total": 163883,
"targets": [
"test_brep",
"test_brep_boolean",
"test_boolean_oracle",
"test_boolean_fallback",
"test_brep_validate",
"test_analytic_ssi",
"test_analytic_trim",
"test_measure_consistency",
"test_mesh_watertight",
"test_bezier",
"test_nurbs",
"test_curve_intersect",
"test_surface_intersection",
"test_halfedge",
"test_delaunay",
"test_mesh_quality",
"test_mesh_repair",
"test_boolean_2d",
"test_exact_predicates"
],
"target_count": 19,
"expected_min_cases": 480,
"ctest_filter": null,
"git": "f67920a0",
"updated_at": "2026-11-19T23:53:16+08:00",
"tests": {
"passed": 497,
"failed": 0,
"total": 497
},
"source": "tools/vde_coverage_check.py --update-baseline"
},
"core": {
"profile": "core",
"build_type": "RelWithDebInfo",
"line_pct": 34.6312,
"lines_covered": 40702,
"lines_total": 117530,
"func_pct": 37.3593,
"funcs_covered": 1859,
"funcs_total": 4976,
"branch_pct": 22.0081,
"branches_covered": 37778,
"branches_total": 171655,
"targets": [
"test_brep",
"test_brep_boolean",
"test_boolean_oracle",
"test_boolean_fallback",
"test_brep_validate",
"test_analytic_ssi",
"test_analytic_trim",
"test_measure_consistency",
"test_mesh_watertight",
"test_bezier",
"test_nurbs",
"test_curve_intersect",
"test_surface_intersection",
"test_halfedge",
"test_delaunay",
"test_mesh_quality",
"test_mesh_repair",
"test_boolean_2d",
"test_exact_predicates",
"test_brep_modeling",
"test_boolean_robustness",
"test_brep_heal",
"test_tolerance",
"test_exact_face_trim",
"test_ssi_boolean",
"test_topo_naming",
"test_curved_boolean_baseline",
"test_geom2d",
"test_curve_robustness",
"test_nurbs_operations",
"test_surface_tools",
"test_mesh_diagnostics",
"test_mesh_robustness",
"test_display_mesh",
"test_marching_cubes",
"test_boolean_mesh",
"test_polygon_offset",
"test_point",
"test_transform",
"test_polygon",
"test_distance"
],
"target_count": 41,
"expected_min_cases": 500,
"ctest_filter": null,
"git": "834f09b6",
"updated_at": "2026-11-20T06:29:38+08:00",
"tests": {
"passed": 1247,
"failed": 5,
"total": 1252
},
"source": "tools/vde_coverage_check.py --update-baseline"
},
"core-plus": {
"profile": "core-plus",
"build_type": "RelWithDebInfo",
"line_pct": 54.0937,
"lines_covered": 67146,
"lines_total": 124129,
"func_pct": 61.1442,
"funcs_covered": 3185,
"funcs_total": 5209,
"branch_pct": 33.9355,
"branches_covered": 61668,
"branches_total": 181721,
"targets": [
"test_brep",
"test_brep_boolean",
"test_boolean_oracle",
"test_boolean_fallback",
"test_brep_validate",
"test_analytic_ssi",
"test_analytic_trim",
"test_measure_consistency",
"test_mesh_watertight",
"test_bezier",
"test_nurbs",
"test_curve_intersect",
"test_surface_intersection",
"test_halfedge",
"test_delaunay",
"test_mesh_quality",
"test_mesh_repair",
"test_boolean_2d",
"test_exact_predicates",
"test_brep_modeling",
"test_boolean_robustness",
"test_brep_heal",
"test_tolerance",
"test_exact_face_trim",
"test_ssi_boolean",
"test_topo_naming",
"test_geom2d",
"test_curve_robustness",
"test_nurbs_operations",
"test_surface_tools",
"test_mesh_diagnostics",
"test_mesh_robustness",
"test_display_mesh",
"test_marching_cubes",
"test_boolean_mesh",
"test_polygon_offset",
"test_point",
"test_transform",
"test_polygon",
"test_distance",
"test_dxf",
"test_dxf_write_entities",
"test_dwg",
"test_dwg_object",
"test_dwg_writer",
"test_industrial_formats",
"test_all_formats",
"test_format_roundtrip",
"test_format_detect",
"test_io_gltf",
"test_io_3mf",
"test_io_stl",
"test_io_ply",
"test_serializer",
"test_vde_format",
"test_vde_log",
"test_cov_foundation_serialization",
"test_cov_boolean_heal",
"test_cov_ssi"
],
"target_count": 59,
"expected_min_cases": 600,
"ctest_filter": null,
"git": "1b759734",
"updated_at": "2026-11-20T11:55:58+08:00",
"tests": {
"passed": 1817,
"failed": 0,
"total": 1817
},
"source": "tools/vde_coverage_check.py --update-baseline"
},
"core-plus-v2": {
"profile": "core-plus-v2",
"build_type": "RelWithDebInfo",
"line_pct": 54.5716,
"lines_covered": 71724,
"lines_total": 131431,
"func_pct": 63.4646,
"funcs_covered": 3627,
"funcs_total": 5715,
"branch_pct": 33.9728,
"branches_covered": 64938,
"branches_total": 191147,
"targets": [
"test_brep",
"test_brep_boolean",
"test_boolean_oracle",
"test_boolean_fallback",
"test_brep_validate",
"test_analytic_ssi",
"test_analytic_trim",
"test_measure_consistency",
"test_mesh_watertight",
"test_bezier",
"test_nurbs",
"test_curve_intersect",
"test_surface_intersection",
"test_halfedge",
"test_delaunay",
"test_mesh_quality",
"test_mesh_repair",
"test_boolean_2d",
"test_exact_predicates",
"test_brep_modeling",
"test_boolean_robustness",
"test_brep_heal",
"test_tolerance",
"test_exact_face_trim",
"test_ssi_boolean",
"test_topo_naming",
"test_geom2d",
"test_curve_robustness",
"test_nurbs_operations",
"test_surface_tools",
"test_mesh_diagnostics",
"test_mesh_robustness",
"test_display_mesh",
"test_marching_cubes",
"test_boolean_mesh",
"test_polygon_offset",
"test_point",
"test_transform",
"test_polygon",
"test_distance",
"test_dxf",
"test_dxf_write_entities",
"test_dwg",
"test_dwg_object",
"test_dwg_writer",
"test_industrial_formats",
"test_all_formats",
"test_format_roundtrip",
"test_format_detect",
"test_io_gltf",
"test_io_3mf",
"test_io_stl",
"test_io_ply",
"test_serializer",
"test_vde_format",
"test_vde_log",
"test_cov_foundation_serialization",
"test_cov_boolean_heal",
"test_cov_ssi",
"test_vde_capi",
"test_capi",
"test_capi_extended",
"test_capi_display",
"test_capi_split",
"test_capi_wireframe_tight",
"test_cov_capi_boundary",
"test_bvh",
"test_r_tree",
"test_octree",
"test_spatial_index",
"test_incremental_bvh",
"test_kd_tree",
"test_broadphase",
"test_cov_spatial_bvh",
"test_sdf_primitives",
"test_sdf_operations",
"test_sdf_tree",
"test_sdf_to_mesh",
"test_sdf_gradient",
"test_sdf_optimize",
"test_sdf_torch_bridge",
"test_cov_sdf_field",
"test_compute_backend",
"test_lbvh",
"test_gpu_consistency",
"test_gpu_bvh",
"test_cov_compute_simd",
"test_plugin_manager",
"test_plugin_integration",
"test_plugin_sdk",
"test_plugin_security",
"test_plugin_mesher",
"test_plugin_extensions",
"test_plugin_crl",
"test_plugin_abi19",
"test_cov_plugin_lifecycle",
"test_cov_wave9_ssi",
"test_cov_wave9_heal",
"test_cov_wave9_generative",
"test_cov_wave9_mesh"
],
"target_count": 100,
"expected_min_cases": 2200,
"ctest_filter": null,
"git": "f8056b1c",
"updated_at": "2026-11-20T18:15:32+08:00",
"tests": {
"passed": 2488,
"failed": 0,
"total": 2488
},
"source": "tools/vde_coverage_check.py --update-baseline"
},
"core-plus-v3": {
"profile": "core-plus-v3",
"build_type": "RelWithDebInfo",
"line_pct": 60.1618,
"lines_covered": 85985,
"lines_total": 142923,
"func_pct": 68.1789,
"funcs_covered": 4178,
"funcs_total": 6128,
"branch_pct": 37.4396,
"branches_covered": 77859,
"branches_total": 207959,
"targets": [
"test_brep",
"test_brep_boolean",
"test_boolean_oracle",
"test_boolean_fallback",
"test_brep_validate",
"test_analytic_ssi",
"test_analytic_trim",
"test_measure_consistency",
"test_mesh_watertight",
"test_bezier",
"test_nurbs",
"test_curve_intersect",
"test_surface_intersection",
"test_halfedge",
"test_delaunay",
"test_mesh_quality",
"test_mesh_repair",
"test_boolean_2d",
"test_exact_predicates",
"test_brep_modeling",
"test_boolean_robustness",
"test_brep_heal",
"test_tolerance",
"test_exact_face_trim",
"test_ssi_boolean",
"test_topo_naming",
"test_geom2d",
"test_curve_robustness",
"test_nurbs_operations",
"test_surface_tools",
"test_mesh_diagnostics",
"test_mesh_robustness",
"test_display_mesh",
"test_marching_cubes",
"test_boolean_mesh",
"test_polygon_offset",
"test_point",
"test_transform",
"test_polygon",
"test_distance",
"test_dxf",
"test_dxf_write_entities",
"test_dwg",
"test_dwg_object",
"test_dwg_writer",
"test_industrial_formats",
"test_all_formats",
"test_format_roundtrip",
"test_format_detect",
"test_io_gltf",
"test_io_3mf",
"test_io_stl",
"test_io_ply",
"test_serializer",
"test_vde_format",
"test_vde_log",
"test_cov_foundation_serialization",
"test_cov_boolean_heal",
"test_cov_ssi",
"test_vde_capi",
"test_capi",
"test_capi_extended",
"test_capi_display",
"test_capi_split",
"test_capi_wireframe_tight",
"test_cov_capi_boundary",
"test_bvh",
"test_r_tree",
"test_octree",
"test_spatial_index",
"test_incremental_bvh",
"test_kd_tree",
"test_broadphase",
"test_cov_spatial_bvh",
"test_sdf_primitives",
"test_sdf_operations",
"test_sdf_tree",
"test_sdf_to_mesh",
"test_sdf_gradient",
"test_sdf_optimize",
"test_sdf_torch_bridge",
"test_cov_sdf_field",
"test_compute_backend",
"test_lbvh",
"test_gpu_consistency",
"test_gpu_bvh",
"test_cov_compute_simd",
"test_plugin_manager",
"test_plugin_integration",
"test_plugin_sdk",
"test_plugin_security",
"test_plugin_mesher",
"test_plugin_extensions",
"test_plugin_crl",
"test_plugin_abi19",
"test_cov_plugin_lifecycle",
"test_cov_wave9_ssi",
"test_cov_wave9_heal",
"test_cov_wave9_generative",
"test_cov_wave9_mesh",
"test_b1_seam",
"test_curved_boolean_assemble",
"test_curved_boolean_domain",
"test_assembly_fuse",
"test_assembly",
"test_assembly_constraints",
"test_assembly_instance",
"test_assembly_patterns",
"test_measure",
"test_measure_planar_spanned",
"test_region_analysis",
"test_cov_wave14_newbranches"
],
"target_count": 112,
"expected_min_cases": 2400,
"ctest_filter": null,
"git": "054724f7",
"updated_at": "2026-11-21T11:09:44+08:00",
"tests": {
"passed": 2923,
"failed": 2,
"total": 2925
},
"source": "tools/vde_coverage_check.py --update-baseline"
}
}
}