trezor / trezor-firmware

:lock: Trezor Firmware Monorepo

Home Page:https://trezor.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CI: coverage report sometimes fails due to mangled JSON data

mmilata opened this issue · comments

I noticed this after we switched from GitLab CI to GitHub Actions, possibly related.

example

Run nix-shell --run "poetry run make -C core coverage"
make: Entering directory '/home/runner/work/trezor-firmware/trezor-firmware/core'
./tools/coverage-report
COVERAGE_THRESHOLD set to 77%
.coverage.gw0
.coverage.gw1
.coverage.gw2
.coverage.gw3
.coverage.test_click
.coverage.test_emu_fido2
.coverage.test_emu_monero
.coverage.test_emu_u2f
.coverage.test_persistence
Creating .coverage.empty file
Combining .coverage.* files
Coverage.py warning: Couldn't read data from '/home/runner/work/trezor-firmware/trezor-firmware/core/.coverage.gw0': JSONDecodeError: Extra data: line 1 column 81181 (char 81180)
Coverage.py warning: Couldn't read data from '/home/runner/work/trezor-firmware/trezor-firmware/core/.coverage.gw1': JSONDecodeError: Extra data: line 1 column 80198 (char 80197)
Coverage.py warning: Couldn't read data from '/home/runner/work/trezor-firmware/trezor-firmware/core/.coverage.gw2': JSONDecodeError: Expecting ':' delimiter: line 1 column 25530 (char 25529)
ERROR: Code coverage is less than 77% - 70%
See core/htmlcov/index.html for details.
make: *** [Makefile:469: coverage] Error 1
make: Leaving directory '/home/runner/work/trezor-firmware/trezor-firmware/core'
Error: Process completed with exit code 2.

(this is from all-language pipeline, possibly related?)

see also: #2872