From e80dbfc74b19b43922eb235ba798d60cca03beb3 Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 24 Apr 2023 14:34:39 +0200 Subject: [PATCH] ci: fix HWI jobs --- ci/test.yml | 6 ++++-- docs/ci/jobs.md | 26 +++++++++++++------------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/ci/test.yml b/ci/test.yml index 9ee413c69..a12b10acd 100644 --- a/ci/test.yml +++ b/ci/test.yml @@ -409,7 +409,8 @@ core hwi test: allow_failure: true script: - $NIX_SHELL --run "git clone https://github.com/bitcoin-core/HWI.git" - - $NIX_SHELL --arg fullDeps true --run "cd HWI && poetry install && poetry run ./test/test_trezor.py --model_t ../core/build/unix/trezor-emu-core bitcoind" + # see "python test" for explanation of _PYTHON_SYSCONFIGDATA_NAME + - $NIX_SHELL --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && cd HWI && poetry install && poetry run ./test/test_trezor.py --model_t ../core/build/unix/trezor-emu-core bitcoind" artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" paths: @@ -575,7 +576,8 @@ legacy hwi test: allow_failure: true script: - $NIX_SHELL --run "git clone https://github.com/bitcoin-core/HWI.git" - - $NIX_SHELL --arg fullDeps true --run "cd HWI && poetry install && poetry run ./test/test_trezor.py --model_1 ../legacy/firmware/trezor.elf bitcoind" + # see "python test" for explanation of _PYTHON_SYSCONFIGDATA_NAME + - $NIX_SHELL --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && cd HWI && poetry install && poetry run ./test/test_trezor.py --model_1 ../legacy/firmware/trezor.elf bitcoind" artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA" paths: diff --git a/docs/ci/jobs.md b/docs/ci/jobs.md index 884fc6860..1e5c36376 100644 --- a/docs/ci/jobs.md +++ b/docs/ci/jobs.md @@ -189,32 +189,32 @@ Persistence tests - UI. ### [core hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L404) -### [crypto test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L422) +### [crypto test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L423) -### [legacy device test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L454) +### [legacy device test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L455) Legacy device test - UI. -### [legacy asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L481) +### [legacy asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L482) -### [legacy btconly test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L493) +### [legacy btconly test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L494) -### [legacy btconly asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L513) +### [legacy btconly asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L514) -### [legacy upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L528) +### [legacy upgrade test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L529) -### [legacy upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L547) +### [legacy upgrade asan test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L548) -### [legacy hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L568) +### [legacy hwi test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L569) -### [python test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L587) +### [python test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L589) -### [python support test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L606) +### [python support test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L608) -### [storage test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L616) +### [storage test](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L618) -### [core unix memory profiler](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L640) +### [core unix memory profiler](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L642) -### [connect test core](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L664) +### [connect test core](https://github.com/trezor/trezor-firmware/blob/master/ci/test.yml#L666) --- ## TEST-HW stage - [test-hw.yml](https://github.com/trezor/trezor-firmware/blob/master/ci/test-hw.yml)