From a0efe7604ebc2f27cc37ee88f117ae619e57003f Mon Sep 17 00:00:00 2001 From: Test User Date: Tue, 21 Apr 2026 22:16:01 +0000 Subject: [PATCH] fix(job-builder): persist deliverables to workspace PVC after pipeline completes Without --output, copyDeliverables() is skipped after the workflow finishes, so the final report and all agent deliverables are lost when the emptyDir volumes are cleaned up on pod exit. Pass --output pointing to the workspace's deliverables/ subdir on the workspaces PVC so files survive beyond the pod lifecycle. Co-Authored-By: Claude Sonnet 4.6 --- apps/api/src/services/job-builder.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/api/src/services/job-builder.ts b/apps/api/src/services/job-builder.ts index 58e165c..572732c 100644 --- a/apps/api/src/services/job-builder.ts +++ b/apps/api/src/services/job-builder.ts @@ -29,7 +29,14 @@ export function buildJobSpec(params: JobParams): k8s.V1Job { // 1. Build worker command const command = ['node', 'apps/worker/dist/temporal/worker.js', params.targetUrl, repoPath]; - const args: string[] = ['--task-queue', params.taskQueue, '--workspace', params.workspace]; + const args: string[] = [ + '--task-queue', + params.taskQueue, + '--workspace', + params.workspace, + '--output', + `/app/workspaces/${params.workspace}/deliverables`, + ]; if (params.pipelineTesting) { args.push('--pipeline-testing'); }