From 3789f8040b12993a598ff1796ae2b0b97fdffdbb Mon Sep 17 00:00:00 2001 From: Joshua Temple Date: Wed, 24 Jun 2026 00:33:20 -0400 Subject: [PATCH] fix(fleet): download ledger artifacts per-subdir so multi-job ledgers do not clobber Signed-off-by: Joshua Temple --- .github/workflows/fleet-reconcile.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fleet-reconcile.yaml b/.github/workflows/fleet-reconcile.yaml index c63a260a..24a715a4 100644 --- a/.github/workflows/fleet-reconcile.yaml +++ b/.github/workflows/fleet-reconcile.yaml @@ -121,10 +121,13 @@ jobs: go-version-file: go.mod cache: true - # Merge every per-job ledger artifact into one JSONL file. merge-multiple - # concatenates same-named files across artifacts; the glob captures every - # registering job's upload. Missing artifacts are tolerated (a suite that - # gated nothing, or one using the in-workspace ledger path instead). + # Download every per-job ledger artifact, each into its own subdirectory. + # Do NOT use merge-multiple: the per-job files all share the basename + # cascade-run-ledger.jsonl, so flattening them into one directory would + # overwrite each other and only one job's ledger would survive. With + # per-artifact subdirectories the assemble step's recursive find then + # concatenates one file per job. Missing artifacts are tolerated (a suite + # that gated nothing, or one using the in-workspace ledger path instead). - name: Download run-ledger artifacts id: ledger continue-on-error: true @@ -132,7 +135,6 @@ jobs: with: pattern: ${{ inputs.ledger-artifact }} path: ${{ runner.temp }}/ledger-artifacts - merge-multiple: true - name: Assemble the ledger id: assemble