From 63948b8e2bb21f928e62dededb1dc1e76e92d54c Mon Sep 17 00:00:00 2001 From: Joris Gallot Date: Fri, 14 Aug 2026 17:58:21 +0200 Subject: [PATCH] feat(reporter,cli): upload video and screenshot attachments without a trace --- packages/cli/README.md | 3 + packages/cli/src/kinora.ts | 19 ++++++ packages/cli/src/upload.ts | 13 +++-- packages/cli/test/upload.test.ts | 40 +++++++++++++ packages/core/src/lib/ingest-client.test.ts | 45 +++++++++++++++ packages/core/src/lib/ingest-client.ts | 22 +++++++ packages/reporter/README.md | 17 +++++- packages/reporter/src/index.ts | 21 ++++--- packages/reporter/test/index.test.ts | 31 +++++++++- packages/server/src/public-api/index.ts | 21 ++++++- packages/server/src/reports/queries.ts | 21 ++++--- packages/server/test/artifacts.test.ts | 64 ++++++++++++++++++++- packages/web/src/pages/RunPage.vue | 12 +++- 13 files changed, 302 insertions(+), 27 deletions(-) create mode 100644 packages/core/src/lib/ingest-client.test.ts diff --git a/packages/cli/README.md b/packages/cli/README.md index 832179f..5a868d0 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -19,6 +19,9 @@ npx @kinora/cli upload results.json --project web-app --token Create a project API token in the kinora dashboard (Settings → Workspace). Auth can also come from the environment (`KINORA_TOKEN`, `KINORA_URL`). Self-hosting? Point at your server with `--url` / `KINORA_URL`. +Only traces are uploaded by default. Running without tracing? Upload the videos and screenshots +on their own with `--upload-attachments trace,video,screenshot`. + Bulk-import a backlog of historical reports with `kinora import `. ## Documentation diff --git a/packages/cli/src/kinora.ts b/packages/cli/src/kinora.ts index a51e774..7251d43 100644 --- a/packages/cli/src/kinora.ts +++ b/packages/cli/src/kinora.ts @@ -1,4 +1,5 @@ #!/usr/bin/env node +import type { AttachmentKind } from '@kinora/core' import { existsSync, readFileSync } from 'node:fs' import { readFile } from 'node:fs/promises' import process from 'node:process' @@ -33,8 +34,24 @@ Options: --pr-label