1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-19 12:58:13 +00:00

ci: actions: don't fill logs with junk when uploading to s3

This commit is contained in:
Martin Milata 2024-05-09 15:27:57 +02:00
parent 067daa790c
commit 946e855e5d
3 changed files with 8 additions and 6 deletions

View File

@ -38,12 +38,12 @@ runs:
shell: sh shell: sh
- name: Upload report - name: Upload report
run: | run: |
aws s3 sync ${{ github.run_id }} s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }} aws s3 sync --no-progress ${{ github.run_id }} s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}
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 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
- name: Upload test screen recording - name: Upload test screen recording
run: | run: |
aws s3 sync ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests aws s3 sync --no-progress ci/ui_test_records s3://data.trezor.io/dev/firmware/ui_tests
# TODO: generate directory listing / autoindex # TODO: generate directory listing / autoindex
shell: sh shell: sh
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4

View File

@ -690,7 +690,7 @@ jobs:
fi fi
- name: Upload diff from main branch - name: Upload diff from main branch
run: | run: |
aws s3 sync master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }} aws s3 sync --no-progress master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}
continue-on-error: true continue-on-error: true
core_ui_comment: core_ui_comment:
@ -706,6 +706,7 @@ jobs:
git diff --quiet origin/main...HEAD -- tests/ui_tests/fixtures.json || echo "FIXTURES_CHANGED=$?" >> $GITHUB_OUTPUT git diff --quiet origin/main...HEAD -- tests/ui_tests/fixtures.json || echo "FIXTURES_CHANGED=$?" >> $GITHUB_OUTPUT
id: check-fixtures-changed id: check-fixtures-changed
- uses: ./.github/actions/ui-comment - uses: ./.github/actions/ui-comment
# TODO: always run if comment already exists
if: ${{ steps.check-fixtures-changed.outputs.FIXTURES_CHANGED == '1' }} if: ${{ steps.check-fixtures-changed.outputs.FIXTURES_CHANGED == '1' }}
core_upload_emu: core_upload_emu:
@ -726,7 +727,7 @@ jobs:
continue-on-error: true continue-on-error: true
- run: | - run: |
rm unix/trezor-emu-core rm unix/trezor-emu-core
aws s3 sync unix s3://data.trezor.io/dev/firmware/emu-nightly aws s3 sync --no-progress unix s3://data.trezor.io/dev/firmware/emu-nightly
# Connect # Connect
# TODO: core_connect_test # TODO: core_connect_test

View File

@ -183,7 +183,7 @@ jobs:
fi fi
- name: Upload main branch diff - name: Upload main branch diff
run: | run: |
aws s3 sync master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }} aws s3 sync --no-progress master_diff s3://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}
continue-on-error: true continue-on-error: true
legacy_ui_comment: legacy_ui_comment:
@ -199,6 +199,7 @@ jobs:
git diff --quiet origin/main...HEAD -- tests/ui_tests/fixtures.json || echo "FIXTURES_CHANGED=$?" >> $GITHUB_OUTPUT git diff --quiet origin/main...HEAD -- tests/ui_tests/fixtures.json || echo "FIXTURES_CHANGED=$?" >> $GITHUB_OUTPUT
id: check-fixtures-changed id: check-fixtures-changed
- uses: ./.github/actions/ui-comment - uses: ./.github/actions/ui-comment
# TODO: always run if comment already exists
if: ${{ steps.check-fixtures-changed.outputs.FIXTURES_CHANGED == '1' }} if: ${{ steps.check-fixtures-changed.outputs.FIXTURES_CHANGED == '1' }}
core_upload_emu: core_upload_emu:
@ -220,4 +221,4 @@ jobs:
- run: | - run: |
mkdir emulators mkdir emulators
cp trezor-emu-legacy* emulators cp trezor-emu-legacy* emulators
aws s3 sync emulators s3://data.trezor.io/dev/firmware/emu-nightly aws s3 sync --no-progress emulators s3://data.trezor.io/dev/firmware/emu-nightly