Skip to content

Commit 477ac1c

Browse files
authored
ci: fix flaky Playwright report aggregation (#14221)
1 parent 48dc703 commit 477ac1c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/typescript_test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ env:
7070
# Define the directory where Playwright browsers will be installed.
7171
# This path is used for caching across workflows
7272
PLAYWRIGHT_BROWSERS_PATH: "ms-playwright"
73-
PLAYWRIGHT_VERSION: "1.59.1"
73+
PLAYWRIGHT_VERSION: "1.60.0"
7474
LANGFLOW_FEATURE_WXO_DEPLOYMENTS: "true"
7575

7676
jobs:
@@ -495,24 +495,25 @@ jobs:
495495
uses: actions/download-artifact@v7
496496
with:
497497
path: all-blob-reports
498-
pattern: blob-report-*
498+
pattern: blob-report-${{ runner.os }}-*
499499
merge-multiple: true
500500

501501
- name: Merge into JSON report
502502
env:
503503
PLAYWRIGHT_JSON_OUTPUT_NAME: flaky-report.json
504+
shell: bash
504505
# Pinned to the repo's Playwright version: blob format is
505506
# version-sensitive and bare npx would fetch latest.
506507
run: |
507508
if ! ls ./all-blob-reports/*.zip >/dev/null 2>&1; then
508509
echo "No blob reports downloaded; skipping flaky report."
509510
exit 0
510511
fi
511-
npx playwright@1.60.0 merge-reports --reporter json ./all-blob-reports
512+
npx playwright@"${PLAYWRIGHT_VERSION}" merge-reports --reporter json ./all-blob-reports
512513
513514
- name: Upload flaky report
514515
uses: actions/upload-artifact@v6
515516
with:
516-
name: flaky-report--attempt-${{ github.run_attempt }}
517+
name: flaky-report-${{ runner.os }}--attempt-${{ github.run_attempt }}
517518
path: flaky-report.json
518519
retention-days: 30

0 commit comments

Comments
 (0)