Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: replace "blob download-batch" with a bash script (#23381)

Yury Semikhatsky38c89df33094
diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml
index 9e3881dd0d..2f2a127dc3 100644
--- a/.github/workflows/tests_primary.yml
+++ b/.github/workflows/tests_primary.yml
@@ -84,7 +84,13 @@ jobs:
- run: npm run build
- name: Download Blob Reports from Azure Blob Storage
run: |
- az storage blob download-batch -d . -s '$web' --pattern 'run-${{ github.run_id }}-${{ github.sha }}-test_linux/*.jsonl' --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}"
+ run_dir='run-${{ github.run_id }}-${{ github.sha }}-test_linux'
+ mkdir -p $run_dir
+ LIST=$(az storage blob list -c '$web' --prefix $run_dir --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}")
+ for name in $(echo $LIST | jq --raw-output '.[].name | select(test(".jsonl$"))');
+ do
+ az storage blob download -c '$web' --name $name -f $name --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}"
+ done
- name: Merge into HTML Report
run: |
npx playwright merge-reports --reporter html --attachments missing 'run-${{ github.run_id }}-${{ github.sha }}-test_linux'
@@ -207,7 +213,13 @@ jobs:
- run: npm run build
- name: Download Blob Reports from Azure Blob Storage
run: |
- az storage blob download-batch -d . -s '$web' --pattern 'run-${{ github.run_id }}-${{ github.sha }}-test_test_runner/*.jsonl' --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}"
+ run_dir='run-${{ github.run_id }}-${{ github.sha }}-test_test_runner'
+ mkdir -p $run_dir
+ LIST=$(az storage blob list -c '$web' --prefix $run_dir --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}")
+ for name in $(echo $LIST | jq --raw-output '.[].name | select(test(".jsonl$"))');
+ do
+ az storage blob download -c '$web' --name $name -f $name --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}"
+ done
- name: Merge into HTML Report
run: |
npx playwright merge-reports --reporter html --attachments missing 'run-${{ github.run_id }}-${{ github.sha }}-test_test_runner'
diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.yml
index 956ea6a9a8..a59737abe9 100644
--- a/.github/workflows/tests_secondary.yml
+++ b/.github/workflows/tests_secondary.yml
@@ -231,7 +231,13 @@ jobs:
- run: npm run build
- name: Download Blob Reports from Azure Blob Storage
run: |
- az storage blob download-batch -d . -s '$web' --pattern 'run-${{ github.run_id }}-${{ github.sha }}-tracing_linux/*.jsonl' --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}"
+ run_dir='run-${{ github.run_id }}-${{ github.sha }}-tracing_linux'
+ mkdir -p $run_dir
+ LIST=$(az storage blob list -c '$web' --prefix $run_dir --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}")
+ for name in $(echo $LIST | jq --raw-output '.[].name | select(test(".jsonl$"))');
+ do
+ az storage blob download -c '$web' --name $name -f $name --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}"
+ done
- name: Merge into HTML Report
run: |
npx playwright merge-reports --reporter html --attachments missing 'run-${{ github.run_id }}-${{ github.sha }}-tracing_linux'