From 364c6cc6c5809ec9c9e79fe11d2bae3750f499e4 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Fri, 5 May 2023 12:32:29 +0200 Subject: [PATCH] ci: fixes --- ci/test-hw.yml | 2 +- ci/test.yml | 3 ++- docs/ci/jobs.md | 48 ++++++++++++++++++++++++------------------------ 3 files changed, 27 insertions(+), 26 deletions(-) diff --git a/ci/test-hw.yml b/ci/test-hw.yml index 11ef8ff1d2..cebb27f16e 100644 --- a/ci/test-hw.yml +++ b/ci/test-hw.yml @@ -92,7 +92,7 @@ hardware core monero test: needs: - core fw regular debug build variables: - TESTOPTS: --trezor_path webusb + TESTOPTS: --trezor-path webusb script: - cd ci/hardware_tests - set -a diff --git a/ci/test.yml b/ci/test.yml index a12b10acd8..c37e1d4d86 100644 --- a/ci/test.yml +++ b/ci/test.yml @@ -171,7 +171,8 @@ core monero asan test: variables: TREZOR_PROFILING: 1 script: - - $NIX_SHELL --arg fullDeps true --run "poetry run make -C core test_emu_monero | ts -s" + # see `python test` job for _PYTHON_SYSCONFIGDATA_NAME explanation + - $NIX_SHELL --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && poetry run make -C core test_emu_monero | ts -s" - mv core/src/.coverage core/.coverage.test_emu_monero artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" diff --git a/docs/ci/jobs.md b/docs/ci/jobs.md index 1e5c363761..bf42b0c55a 100644 --- a/docs/ci/jobs.md +++ b/docs/ci/jobs.md @@ -160,61 +160,61 @@ Monero tests. ### [core monero asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L164) -### [core u2f test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L186) +### [core u2f test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L187) Tests for U2F and HID. -### [core u2f asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L205) +### [core u2f asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L206) -### [core fido2 test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L223) +### [core fido2 test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L224) FIDO2 device tests. -### [core fido2 asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L246) +### [core fido2 asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L247) -### [core click test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L266) +### [core click test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L267) Click tests - UI. See [docs/tests/click-tests](../tests/click-tests.md) for more info. -### [core click asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L295) +### [core click asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L296) -### [core upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L316) +### [core upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L317) Upgrade tests. See [docs/tests/upgrade-tests](../tests/upgrade-tests.md) for more info. -### [core upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L335) +### [core upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L336) -### [core persistence test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L357) +### [core persistence test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L358) Persistence tests - UI. -### [core persistence asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L386) +### [core persistence asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L387) -### [core hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L404) +### [core hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L405) -### [crypto test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L423) +### [crypto test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L424) -### [legacy device test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L455) +### [legacy device test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L456) Legacy device test - UI. -### [legacy asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L482) +### [legacy asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L483) -### [legacy btconly test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L494) +### [legacy btconly test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L495) -### [legacy btconly asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L514) +### [legacy btconly asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L515) -### [legacy upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L529) +### [legacy upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L530) -### [legacy upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L548) +### [legacy upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L549) -### [legacy hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L569) +### [legacy hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L570) -### [python test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L589) +### [python test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L590) -### [python support test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L608) +### [python support test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L609) -### [storage test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L618) +### [storage test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L619) -### [core unix memory profiler](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L642) +### [core unix memory profiler](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L643) -### [connect test core](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L666) +### [connect test core](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L667) --- ## TEST-HW stage - [test-hw.yml](https://github.com/trezor/trezor-firmware/blob/master/ci/test-hw.yml)