mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-26 01:42:34 +00:00
ci(core+legacy): re-add main
UI diff reports
Use a single HTML file to aggregate per-model/test reports. Also, change a bit the final HTML report directory structure, to allow each jobs to upload its results concurrently. [no changelog]
This commit is contained in:
parent
23317d9390
commit
dbee0c615a
23
.github/actions/ui-report/action.yml
vendored
23
.github/actions/ui-report/action.yml
vendored
@ -24,27 +24,36 @@ runs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
- run: |
|
- run: |
|
||||||
MODELJOB=${{ inputs.model }}-${{ inputs.lang }}-${{ github.job }}
|
MODELJOB=${{ inputs.model }}-${{ inputs.lang }}-${{ github.job }}
|
||||||
OUTDIR=${{ github.run_id }}/$MODELJOB
|
OUTDIR=${{ github.run_id }}
|
||||||
mkdir -p $OUTDIR
|
mkdir -p $OUTDIR
|
||||||
nix-shell --run "poetry run python ci/prepare_ui_artifacts.py || true"
|
nix-shell --run "poetry run python ci/prepare_ui_artifacts.py || true"
|
||||||
mv tests/ui_tests/reports/test/* $OUTDIR || true
|
mv -v tests/ui_tests/reports/test/* $OUTDIR
|
||||||
mv tests/ui_tests/fixtures.*.json $OUTDIR || true
|
|
||||||
mv tests/trezor*.log $OUTDIR || true
|
# rename all model/job-speficific report files, so they won't be overwritten during upload
|
||||||
diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json || true
|
cd $OUTDIR
|
||||||
|
for F in *; do
|
||||||
|
if [ -f "$F" ]; then
|
||||||
|
mv -v $F $MODELJOB-$F
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
cd ..
|
||||||
|
|
||||||
if [ "${{ inputs.status }}" = "success" ]; then
|
if [ "${{ inputs.status }}" = "success" ]; then
|
||||||
cp .github/actions/ui-report/success.png $OUTDIR/status.png
|
cp -v .github/actions/ui-report/success.png $OUTDIR/$MODELJOB-status.png
|
||||||
else
|
else
|
||||||
cp .github/actions/ui-report/failure.png $OUTDIR/status.png
|
cp -v .github/actions/ui-report/failure.png $OUTDIR/$MODELJOB-status.png
|
||||||
fi
|
fi
|
||||||
shell: sh
|
shell: sh
|
||||||
- name: Upload test results
|
- name: Upload test results
|
||||||
run: |
|
run: |
|
||||||
# Upload report
|
# Upload report
|
||||||
|
du -sh ${{ github.run_id }}
|
||||||
|
ls -l ${{ github.run_id }}
|
||||||
aws s3 cp --recursive --only-show-errors ${{ github.run_id }} s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }} &
|
aws s3 cp --recursive --only-show-errors ${{ github.run_id }} s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }} &
|
||||||
PID1=$!
|
PID1=$!
|
||||||
|
|
||||||
# Upload test screen recording
|
# Upload test screen recording
|
||||||
|
du -sh ci/ui_test_records
|
||||||
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=$!
|
PID2=$!
|
||||||
# TODO: generate directory listing / autoindex
|
# TODO: generate directory listing / autoindex
|
||||||
|
21
.github/workflows/core.yml
vendored
21
.github/workflows/core.yml
vendored
@ -28,10 +28,11 @@ env:
|
|||||||
PULL_COMMENT: |
|
PULL_COMMENT: |
|
||||||
|core UI changes|device test|click test|persistence test|
|
|core UI changes|device test|click test|persistence test|
|
||||||
|---------------|-----------|----------|----------------|
|
|---------------|-----------|----------|----------------|
|
||||||
|T2T1 Model T |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_device_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_device_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_device_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_device_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_device_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test/master_diff.html))||
|
|T2T1 Model T |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_device_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_device_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_device_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_device_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}-T2T1-en-core_device_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_click_test-master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T2T1-en-core_persistence_test-master_diff.html))||
|
||||||
|T3B1 Safe 3 |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_device_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_device_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_device_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_device_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_device_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test/master_diff.html))||
|
|T3B1 Safe 3 |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_device_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_device_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_device_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_device_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}-T3B1-en-core_device_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_click_test-master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3B1-en-core_persistence_test-master_diff.html))||
|
||||||
|T3T1 Safe 5 |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_device_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_device_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_device_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_device_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_device_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test/master_diff.html))||
|
|T3T1 Safe 5 |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_device_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_device_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_device_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_device_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}-T3T1-en-core_device_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_click_test-master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3T1-en-core_persistence_test-master_diff.html))||
|
||||||
|T3W1 |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_device_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_device_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_device_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_device_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_device_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test/status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test/differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test/master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test/master_diff.html))||
|
|T3W1 |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_device_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_device_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_device_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_device_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}-T3W1-en-core_device_test/master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_click_test-master_diff.html)) |<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T3W1-en-core_persistence_test-master_diff.html))||
|
||||||
|
|All |[main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/all_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/all_diff.html))|
|
||||||
TREZOR_PYTEST_LOGS_DIR: ${{ github.workspace }}/tests/
|
TREZOR_PYTEST_LOGS_DIR: ${{ github.workspace }}/tests/
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -706,6 +707,18 @@ jobs:
|
|||||||
- run: sleep 1m # try avoiding github api rate limit
|
- run: sleep 1m # try avoiding github api rate limit
|
||||||
- uses: ./.github/actions/ui-comment
|
- uses: ./.github/actions/ui-comment
|
||||||
|
|
||||||
|
- name: Configure aws credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v4
|
||||||
|
with:
|
||||||
|
role-to-assume: arn:aws:iam::538326561891:role/gh_actions_deploy_dev_firmware_data
|
||||||
|
aws-region: eu-west-1
|
||||||
|
- name: Upload aggregate diff from main branch
|
||||||
|
run: |
|
||||||
|
for F in all_index.html all_diff.html
|
||||||
|
do
|
||||||
|
aws s3 cp tests/ui_tests/reporting/$F s3://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/$F
|
||||||
|
done
|
||||||
|
|
||||||
core_upload_emu:
|
core_upload_emu:
|
||||||
name: Upload emulator binaries
|
name: Upload emulator binaries
|
||||||
if: github.event_name == 'schedule'
|
if: github.event_name == 'schedule'
|
||||||
|
3
.github/workflows/legacy.yml
vendored
3
.github/workflows/legacy.yml
vendored
@ -21,8 +21,7 @@ permissions:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
PULL_COMMENT: |
|
PULL_COMMENT: |
|
||||||
|legacy UI changes|<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T1B1-en-legacy_device_test/status.png" width="20px" height="20px" /> [device test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T1B1-en-legacy_device_test/index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T1B1-en-legacy_device_test/differing_screens.html)) <img src="https://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}/status.png" width="20px" height="20px" /> [main](https://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}/)([screens](https://data.trezor.io/dev/firmware/master_diff/${{ github.run_id }}/master_diff.html))|
|
|legacy UI changes|<img src="https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T1B1-en-legacy_device_test-status.png" width="20px" height="20px" /> [test](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T1B1-en-legacy_device_test-index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T1B1-en-legacy_device_test-differing_screens.html)) [main](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T1B1-en-legacy_device_test-master_index.html)([screens](https://data.trezor.io/dev/firmware/ui_report/${{ github.run_id }}/T1B1-en-legacy_device_test-master_diff.html)) |
|
||||||
|-----------------|-----|
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
legacy_firmware:
|
legacy_firmware:
|
||||||
|
46
tests/ui_tests/reporting/all_diff.html
Normal file
46
tests/ui_tests/reporting/all_diff.html
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Master diff</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h1>T2T1</h1>
|
||||||
|
<include src="T2T1-en-core_device_test-master_diff.html"></include>
|
||||||
|
<include src="T2T1-en-core_click_test-master_diff.html"></include>
|
||||||
|
<include src="T2T1-en-core_persistence_test-master_diff.html"></include>
|
||||||
|
|
||||||
|
<h1>T3B1</h1>
|
||||||
|
<include src="T3B1-en-core_device_test-master_diff.html"></include>
|
||||||
|
<include src="T3B1-en-core_click_test-master_diff.html"></include>
|
||||||
|
<include src="T3B1-en-core_persistence_test-master_diff.html"></include>
|
||||||
|
|
||||||
|
<h1>T3T1</h1>
|
||||||
|
<include src="T3T1-en-core_device_test-master_diff.html"></include>
|
||||||
|
<include src="T3T1-en-core_click_test-master_diff.html"></include>
|
||||||
|
<include src="T3T1-en-core_persistence_test-master_diff.html"></include>
|
||||||
|
|
||||||
|
<h1>T3W1</h1>
|
||||||
|
<include src="T3W1-en-core_device_test-master_diff.html"></include>
|
||||||
|
<include src="T3W1-en-core_click_test-master_diff.html"></include>
|
||||||
|
<include src="T3W1-en-core_persistence_test-master_diff.html"></include>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(() => {
|
||||||
|
const includes = document.getElementsByTagName('include');
|
||||||
|
[].forEach.call(includes, i => {
|
||||||
|
let filePath = i.getAttribute('src');
|
||||||
|
fetch(filePath).then(file => {
|
||||||
|
file.text().then(content => {
|
||||||
|
i.insertAdjacentHTML('afterend', content);
|
||||||
|
i.remove();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
46
tests/ui_tests/reporting/all_index.html
Normal file
46
tests/ui_tests/reporting/all_index.html
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Master index</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h1>T2T1</h1>
|
||||||
|
<include src="T2T1-en-core_device_test-master_index.html"></include>
|
||||||
|
<include src="T2T1-en-core_click_test-master_index.html"></include>
|
||||||
|
<include src="T2T1-en-core_persistence_test-master_index.html"></include>
|
||||||
|
|
||||||
|
<h1>T3B1</h1>
|
||||||
|
<include src="T3B1-en-core_device_test-master_index.html"></include>
|
||||||
|
<include src="T3B1-en-core_click_test-master_index.html"></include>
|
||||||
|
<include src="T3B1-en-core_persistence_test-master_index.html"></include>
|
||||||
|
|
||||||
|
<h1>T3T1</h1>
|
||||||
|
<include src="T3T1-en-core_device_test-master_index.html"></include>
|
||||||
|
<include src="T3T1-en-core_click_test-master_index.html"></include>
|
||||||
|
<include src="T3T1-en-core_persistence_test-master_index.html"></include>
|
||||||
|
|
||||||
|
<h1>T3W1</h1>
|
||||||
|
<include src="T3W1-en-core_device_test-master_index.html"></include>
|
||||||
|
<include src="T3W1-en-core_click_test-master_index.html"></include>
|
||||||
|
<include src="T3W1-en-core_persistence_test-master_index.html"></include>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(() => {
|
||||||
|
const includes = document.getElementsByTagName('include');
|
||||||
|
[].forEach.call(includes, i => {
|
||||||
|
let filePath = i.getAttribute('src');
|
||||||
|
fetch(filePath).then(file => {
|
||||||
|
file.text().then(content => {
|
||||||
|
i.insertAdjacentHTML('afterend', content);
|
||||||
|
i.remove();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -275,12 +275,9 @@ def master_index() -> Path:
|
|||||||
doc = document(title=title)
|
doc = document(title=title)
|
||||||
|
|
||||||
with doc:
|
with doc:
|
||||||
h1(title)
|
if diff:
|
||||||
hr()
|
i("UI fixtures that have been modified:")
|
||||||
|
html.report_links(diff, TESTREPORT_PATH)
|
||||||
h2("Differs:", style="color: grey;")
|
|
||||||
i("UI fixtures that have been modified:")
|
|
||||||
html.report_links(diff, TESTREPORT_PATH)
|
|
||||||
|
|
||||||
return html.write(TESTREPORT_PATH, doc, "master_index.html")
|
return html.write(TESTREPORT_PATH, doc, "master_index.html")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user