Skip to content

Commit 7a6b453

Browse files
Bill Leoutsakoscursoragent
authored andcommitted
fix(ci): detect safe E2E diagnostics directly
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4633f06 commit 7a6b453

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/test-build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,21 @@ jobs:
318318
E2E_PG_ADMIN_URL: 'postgresql://postgres:postgres@127.0.0.1:5432/postgres'
319319
run: bun run test:e2e
320320

321+
- name: Check E2E diagnostics eligibility
322+
id: e2e_diagnostics
323+
if: failure()
324+
shell: bash
325+
run: |
326+
shopt -s nullglob
327+
markers=(apps/sim/e2e/.runs/*/markers/leak-scan-complete.json)
328+
if (( ${#markers[@]} > 0 )); then
329+
echo "safe=true" >> "$GITHUB_OUTPUT"
330+
else
331+
echo "safe=false" >> "$GITHUB_OUTPUT"
332+
fi
333+
321334
- name: Upload E2E diagnostics
322-
if: failure() && hashFiles('apps/sim/e2e/.runs/**/markers/leak-scan-complete.json') != ''
335+
if: failure() && steps.e2e_diagnostics.outputs.safe == 'true'
323336
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
324337
with:
325338
name: settings-e2e-${{ github.run_id }}

0 commit comments

Comments
 (0)