mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-13 20:38:45 +00:00
ci(core): upload ui-report
results concurrently
Also, use `aws s3 cp --recursive` instead of `aws s3 sync` for UI tests' reports, which are using unique S3 paths (to avoid existence checking). [no changelog]
This commit is contained in:
parent
2253a3ec95
commit
f97f8e02e5
23
.github/actions/ui-report/action.yml
vendored
23
.github/actions/ui-report/action.yml
vendored
@ -20,7 +20,7 @@ runs:
|
|||||||
role-to-assume: arn:aws:iam::538326561891:role/gh_actions_deploy_dev_firmware_data
|
role-to-assume: arn:aws:iam::538326561891:role/gh_actions_deploy_dev_firmware_data
|
||||||
aws-region: eu-west-1
|
aws-region: eu-west-1
|
||||||
- name: Increase AWS S3 max concurrency for faster uploads
|
- name: Increase AWS S3 max concurrency for faster uploads
|
||||||
run: aws configure set default.s3.max_concurrent_requests 30
|
run: aws configure set default.s3.max_concurrent_requests 50
|
||||||
shell: sh
|
shell: sh
|
||||||
- run: |
|
- run: |
|
||||||
MODELJOB=${{ inputs.model }}-${{ inputs.lang }}-${{ github.job }}
|
MODELJOB=${{ inputs.model }}-${{ inputs.lang }}-${{ github.job }}
|
||||||
@ -39,15 +39,22 @@ runs:
|
|||||||
cp .github/actions/ui-report/failure.png $OUTDIR/status.png
|
cp .github/actions/ui-report/failure.png $OUTDIR/status.png
|
||||||
fi
|
fi
|
||||||
shell: sh
|
shell: sh
|
||||||
- name: Upload report
|
- name: Upload test results
|
||||||
run: |
|
run: |
|
||||||
aws s3 sync --only-show-errors ${{ github.run_id }} s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}
|
# Upload report
|
||||||
echo "[UI test report](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/${{ inputs.model }}-${{ inputs.lang }}-${{ github.job }}/index.html)" >> $GITHUB_STEP_SUMMARY
|
aws s3 cp --recursive --only-show-errors ${{ github.run_id }} s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }} &
|
||||||
shell: sh
|
PID1=$!
|
||||||
- name: Upload test screen recording
|
|
||||||
run: |
|
# Upload test screen recording
|
||||||
aws s3 sync --only-show-errors ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests
|
aws s3 sync --only-show-errors ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests &
|
||||||
|
PID2=$!
|
||||||
# TODO: generate directory listing / autoindex
|
# TODO: generate directory listing / autoindex
|
||||||
|
|
||||||
|
# Wait for the above sync jobs to finish (fail if one of them fails)
|
||||||
|
wait $PID1
|
||||||
|
wait $PID2
|
||||||
|
|
||||||
|
echo "[UI test report](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/${{ inputs.model }}-${{ inputs.lang }}-${{ github.job }}/index.html)" >> $GITHUB_STEP_SUMMARY
|
||||||
shell: sh
|
shell: sh
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user