mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-12 11:50:22 +03:00
chore: replace "blob download-batch" with a bash script (#23381)
`az storage blob download-batch` has been timing out over the last few days, see upstream issue https://github.com/Azure/azure-cli/issues/26567. Replacing it with a simple bash script that discovers blobs with a given prefix and then downloads one-by-one.
This commit is contained in:
parent
7ad03027fb
commit
38c89df330
16
.github/workflows/tests_primary.yml
vendored
16
.github/workflows/tests_primary.yml
vendored
@ -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'
|
||||
|
8
.github/workflows/tests_secondary.yml
vendored
8
.github/workflows/tests_secondary.yml
vendored
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user