Adds a report-only weekly baseline for test feedback-loop velocity. - Add a test:velocity script that measures gate, boot smoke, and changed-only test durations and regenerates a #leads-ready report. - Track committed baseline history, slowest-file summaries, and quarantine deletion-clock counts. - Document the weekly refresh workflow in testing guidance and agent instructions. Files changed: AGENTS.md | 4 +- docs/test-velocity-baseline.md | 92 ++++++ docs/testing.md | 18 ++ package.json | 1 + scripts/__tests__/test-velocity-baseline.test.mjs | 121 ++++++++ scripts/test-velocity-baseline.mjs | 339 ++++++++++++++++++++++ scripts/test-velocity-history.json | 231 +++++++++++++++ 7 files changed, 805 insertions(+), 1 deletion(-) Fusion-Task-Id: FN-6617 Fusion-Task-Lineage: 50a07298-74ec-4481-b288-4fadb7d3d29b
232 lines
7.2 KiB
JSON
232 lines
7.2 KiB
JSON
{
|
|
"entries": [
|
|
{
|
|
"capturedAt": "2026-06-18T02:53:34.158Z",
|
|
"gateMs": 8478,
|
|
"bootSmokeMs": null,
|
|
"testMs": 38405,
|
|
"quarantineCount": 2,
|
|
"slowestTop20": [
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/shared-branch-group-lifecycle.test.ts",
|
|
"ms": 13900,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/agent-store.test.ts",
|
|
"ms": 11600,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/dashboard/src/__tests__/routes-agents.test.ts",
|
|
"ms": 11200,
|
|
"package": "@fusion/dashboard"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/mission-store.test.ts",
|
|
"ms": 10700,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/db.test.ts",
|
|
"ms": 10100,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/dashboard/src/__tests__/routes-git.test.ts",
|
|
"ms": 9400,
|
|
"package": "@fusion/dashboard"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/branch-group-automerge-precedence.test.ts",
|
|
"ms": 9000,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/merger-ai.test.ts",
|
|
"ms": 8700,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/branch-group-merge-routing.test.ts",
|
|
"ms": 8400,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/branch-group-promotion-gate.test.ts",
|
|
"ms": 8400,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/task-documents.test.ts",
|
|
"ms": 8300,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/runtimes/__tests__/in-process-runtime.test.ts",
|
|
"ms": 7800,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/cli/src/__tests__/extension.test.ts",
|
|
"ms": 7000,
|
|
"package": "@runfusion/fusion"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/run-audit.test.ts",
|
|
"ms": 6900,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/branch-group-promotion.test.ts",
|
|
"ms": 6100,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/dashboard/src/__tests__/routes-planning.test.ts",
|
|
"ms": 5600,
|
|
"package": "@fusion/dashboard"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/store-merge-queue.test.ts",
|
|
"ms": 5200,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/dashboard/app/components/__tests__/FileEditor.test.tsx",
|
|
"ms": 5100,
|
|
"package": "@fusion/dashboard"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/integration-worktree-state.test.ts",
|
|
"ms": 4900,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/self-healing-already-merged.real-git.test.ts",
|
|
"ms": 4900,
|
|
"package": "@fusion/engine"
|
|
}
|
|
],
|
|
"measurementFailures": [
|
|
{
|
|
"label": "Boot smoke (`pnpm smoke:boot`)",
|
|
"status": "exit 1 after 411ms"
|
|
}
|
|
],
|
|
"timingSnapshotCapturedAt": "2026-06-03T23:45:49.672Z"
|
|
},
|
|
{
|
|
"capturedAt": "2026-06-18T03:04:28.794Z",
|
|
"gateMs": 6177,
|
|
"bootSmokeMs": 18220,
|
|
"testMs": 7740,
|
|
"quarantineCount": 2,
|
|
"slowestTop20": [
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/shared-branch-group-lifecycle.test.ts",
|
|
"ms": 13900,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/agent-store.test.ts",
|
|
"ms": 11600,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/dashboard/src/__tests__/routes-agents.test.ts",
|
|
"ms": 11200,
|
|
"package": "@fusion/dashboard"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/mission-store.test.ts",
|
|
"ms": 10700,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/db.test.ts",
|
|
"ms": 10100,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/dashboard/src/__tests__/routes-git.test.ts",
|
|
"ms": 9400,
|
|
"package": "@fusion/dashboard"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/branch-group-automerge-precedence.test.ts",
|
|
"ms": 9000,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/merger-ai.test.ts",
|
|
"ms": 8700,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/branch-group-merge-routing.test.ts",
|
|
"ms": 8400,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/branch-group-promotion-gate.test.ts",
|
|
"ms": 8400,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/task-documents.test.ts",
|
|
"ms": 8300,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/runtimes/__tests__/in-process-runtime.test.ts",
|
|
"ms": 7800,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/cli/src/__tests__/extension.test.ts",
|
|
"ms": 7000,
|
|
"package": "@runfusion/fusion"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/run-audit.test.ts",
|
|
"ms": 6900,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/branch-group-promotion.test.ts",
|
|
"ms": 6100,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/dashboard/src/__tests__/routes-planning.test.ts",
|
|
"ms": 5600,
|
|
"package": "@fusion/dashboard"
|
|
},
|
|
{
|
|
"file": "packages/core/src/__tests__/store-merge-queue.test.ts",
|
|
"ms": 5200,
|
|
"package": "@fusion/core"
|
|
},
|
|
{
|
|
"file": "packages/dashboard/app/components/__tests__/FileEditor.test.tsx",
|
|
"ms": 5100,
|
|
"package": "@fusion/dashboard"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/reliability-interactions/integration-worktree-state.test.ts",
|
|
"ms": 4900,
|
|
"package": "@fusion/engine"
|
|
},
|
|
{
|
|
"file": "packages/engine/src/__tests__/self-healing-already-merged.real-git.test.ts",
|
|
"ms": 4900,
|
|
"package": "@fusion/engine"
|
|
}
|
|
],
|
|
"measurementFailures": [],
|
|
"timingSnapshotCapturedAt": "2026-06-03T23:45:49.672Z"
|
|
}
|
|
]
|
|
}
|