From 0512334e866f660723a58427685bb154ac4c7cf5 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sat, 1 Aug 2026 12:13:52 -0700 Subject: [PATCH] FN-8714: fix quality runner CLI argument passthrough MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow dashboard aggregate quality commands through the pnpm script boundary. - Normalize pnpm’s leading argument separator before validating runner options - Add end-to-end aggregate and fail-fast quality-runner coverage with a deterministic fixture - Document aggregate quality-runner invocation and failure reporting Files changed: docs/testing.md | 15 ++++ packages/dashboard/scripts/__tests__/quality-runner-fixture.mjs | 18 +++++ packages/dashboard/scripts/__tests__/run-quality-tests.test.ts | 88 ++++++++++++++++++++++ packages/dashboard/scripts/run-quality-tests.mjs | 23 ++++-- 4 files changed, 139 insertions(+), 5 deletions(-) Fusion-Task-Id: FN-8714 Fusion-Task-Lineage: 48dbd434-a9e6-4283-8658-cbaa254a7dc7 Co-authored-by: Fusion (runfusion.ai) --- docs/testing.md | 15 ++++ .../__tests__/quality-runner-fixture.mjs | 18 ++++ .../__tests__/run-quality-tests.test.ts | 88 +++++++++++++++++++ .../dashboard/scripts/run-quality-tests.mjs | 23 +++-- 4 files changed, 139 insertions(+), 5 deletions(-) create mode 100644 packages/dashboard/scripts/__tests__/quality-runner-fixture.mjs diff --git a/docs/testing.md b/docs/testing.md index 9a0f531692..089aed13da 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -209,6 +209,21 @@ was SIGKILLed by heap pressure under workspace worker budgeting. The top-level `pretest` artifact bootstrap runs once before the orchestrator; lane subprocesses must not re-run `scripts/ensure-test-artifacts.mjs`. +Use the exact aggregate command below to attempt all 15 app/API lanes, including after +one or more lanes fail: + +```bash +pnpm --filter @fusion/dashboard test -- --all +``` + +pnpm forwards that invocation as `-- --all`; the quality runner deliberately removes +only the leading package-script separator and still rejects genuine unknown options. +`--no-fail-fast` is an equivalent aggregate alias. Without either alias, the default is +fail-fast for quick local feedback: remaining lanes are reported as **NOT RUN** with +**UNKNOWN** status, never as passing. Aggregate mode attempts every lane exactly once; +any failed or signal-terminated lane keeps the command nonzero and is named in the +final failure summary. It must never print an all-passed summary when any lane failed. +