Skip to content

P1-FEATURE-010: Build Report — Stage-by-Stage Build Summary #156

@DingmaomaoBJTU

Description

@DingmaomaoBJTU

Summary

Implement a comprehensive build report that summarizes the full model build pipeline stage-by-stage, including metrics, EP compatibility results, and optimization summary.

Context

Users and developers need visibility into what happened during wmk build — how long each stage took, what the graph optimizer changed, and which EP is compatible. This report also serves as an audit artifact.

From plans/release/0501_release_plan/P0_CHECKLIST.md (P1-FEATURE-010).

Current State

  • wmk build produces console output but no structured report artifact
  • No per-stage timing or graph metrics
  • No EP compatibility analysis summary in build output

Desired State

  • wmk build saves artifacts/build_report.json with:
    • Stage timing: export, analyze, optimize, quantize (ms each)
    • Graph metrics: node count before/after each stage, op type distribution
    • EP compatibility: per-EP compatibility score from static analyzer
    • Optimization summary: nodes added/removed per pass
    • Errors: any non-fatal warnings or skipped stages

Acceptance Criteria

  • artifacts/build_report.json generated on every wmk build run
  • Stage timing recorded for all pipeline stages
  • Graph metrics: node count, op count by type, model size (MB) at each stage
  • EP compatibility results included (from static analyzer output)
  • Optimization summary: net node change, passes applied
  • Human-readable summary printed to console at build completion
  • Build report format documented
  • All existing tests pass

Technical Notes

  • Report schema: define a stable JSON schema (will be public API)
  • Console summary: print a table of stages + timing + key metrics
  • Must not break existing wmk build behavior — report is additive

Related Files

  • plans/release/0501_release_plan/feature-scale.md — P1.10 Build Report
  • plans/release/0501_release_plan/P0_CHECKLIST.md — P1-FEATURE-010

Metadata

Metadata

Assignees

Labels

dev experienceDeveloper experience improvementsfeature scaleFeature scale work item

Type

No fields configured for Task.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions