1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00
Commit Graph

136 Commits

Author SHA1 Message Date
Andrew Kozlik
fc0fa726e4 ci: Allow failure of connect tests. 2022-01-10 11:14:36 +01:00
grdddj
f838e15eda chore(ci): connect tests - exporting emu/bridge logfile from tenv as artifact 2021-12-17 13:53:26 +01:00
grdddj
3ed92a72bb feat(ci): running connect tests against current branch 2021-12-10 14:18:21 +01:00
vdovhanych
3419961797 ci: introduce gitlab cache for vnev 2021-11-26 16:30:05 +01:00
Martin Milata
52f719ad81 ci: add core unit test t1
[no changelog]
2021-11-24 15:36:34 +01:00
Martin Milata
81e66cb024 style(core/rust): enable clippy lints
[no changelog]
2021-09-23 14:22:40 +02:00
Martin Milata
a7a7570496 ci(core): enable rust unit tests
[no changelog]
2021-09-16 14:57:06 +02:00
vdovhanych
6b3e743373 ci: add duration timestamps on all test jobs 2021-06-09 10:00:24 +02:00
matejcik
bb96cdc4e6 ci: include monero logs in artifacts 2021-05-06 13:14:21 +02:00
Martin Milata
88cdb72aec ci: bump nixpkgs version to latest 2021-04-06 22:06:12 +02:00
Martin Milata
73c600d3f5 ci: also run regular tt tests on hw
Break off hardware test tasks into separate file.
2021-02-05 12:58:21 +01:00
Martin Milata
ceccf1951a ci: all hw configuration in one place 2021-02-05 12:58:21 +01:00
Martin Milata
41bf9201b5 ci: do not rely on TREZOR_PATH, use switch ports instead
As the connected Trezors can be left in various weird states, trezorctl
list may not always return what is expected or even fail. If it failed
TREZOR_PATH was set to empty string which means random device got
selected.

For now let's avoid using incorrect device by powering down the other
usb port.

Fix log lines ordering.
2021-02-05 12:58:21 +01:00
Martin Milata
0a75e02392 ci: skip some tests that cause alloc failure
Also increase PYTEST_TIMEOUT so that test_lots_of_inputs has enough time
to pass.
2021-02-05 12:58:21 +01:00
Martin Milata
dedca1bb13 ci: ffmpeg tweaks in hardware tests
Running ffmpeg in a subshell and killing it in exit trap handler should
ensure video availability even when bootstrap or pytest fail.
2021-02-05 12:58:21 +01:00
Tomas Susanka
708a85a916 ci: run btconly firmware on TT in HW tests 2021-02-05 12:58:21 +01:00
Tomas Susanka
61531fbd4a ci: introduce hardware tests for TT 2021-02-05 12:58:21 +01:00
Martin Milata
a0fccca041 ci(core): increase PYTEST_TIMEOUT for memory profiling
test_lots_of_inputs times out, still less than 1200 needed on actual
hardware
2020-12-08 18:07:50 +01:00
Martin Milata
c89a8b7bd5 ci(core): add memory profiler job 2020-11-02 14:14:00 +01:00
Martin Milata
9ed25a718a ci: handle full dependencies in shell.nix
Handling of full dependencies (multiple python versions, Monero tests)
was moved from Dockerfile to shell.nix.

The Python packages are installed from the pinned nixpkgs revision and
do not depend on channel state at the time of docker build anymore.

The Monero test binary is now downloaded using fetchurl which fails the
build if checksum doesn't match.
2020-10-15 15:59:20 +02:00
Pavol Rusnak
4fdb62c2e2 chore(python): replace pipenv with poetry 2020-10-07 16:21:00 +02:00
Pavol Rusnak
98ea241e97
ci: use alternative list syntax for needs 2020-10-06 21:59:22 +02:00
Tomas Susanka
99e0faafb6 test(core): print fixtures suggestion after the test 2020-10-06 21:17:28 +02:00
matejcik
1f5c08c9a2 ci: add .gitlab-ci.yml as explicit trigger whenever ci/** is a trigger 2020-09-29 11:30:40 +02:00
Tomas Susanka
c7b6d98cfc tests/upgrade-tests: modify paths in release jobs and add job for MacOS 2020-08-27 21:04:22 +02:00
Tomas Susanka
db020c7a47 ci: run HW tests for secfix branches 2020-08-24 13:30:57 +02:00
Tomas Susanka
13c11e756e ci: replace 'dependends' with 'needs'
https://docs.gitlab.com/ee/ci/yaml/#needs
2020-08-18 16:55:31 +02:00
Pavol Rusnak
c3892b75bd
ci: test python on Pipfile.lock/poetry.lock 2020-08-08 19:19:15 +02:00
Pavol Rusnak
063aba910d core: rename emulator to trezor-emu-core 2020-07-30 15:27:34 +02:00
Tomas Susanka
698b632acb ci: add btconly debug build and run hardware tests for it 2020-07-15 18:07:21 +02:00
Pavol Rusnak
8d94b13d3a
ci/test: fix coverage by moving the files to correct subdir 2020-07-06 19:52:18 +02:00
Pavol Rusnak
25a2e690fe
ci/test: set C.UTF-8 locale for Python tests 2020-07-03 18:02:46 +02:00
Tomas Susanka
2b4de8e270
ci: use nix docker image 2020-07-03 17:33:59 +02:00
Tomas Susanka
39f5b065d3 tests/hardware: add sleep to update_firmware and always publish artifacts 2020-06-12 06:04:47 +00:00
Tomas Susanka
742b23e382 ci/fido2: check if another emu is not running 2020-05-06 14:36:11 +00:00
Tomas Susanka
1634baa1e5 ci: remove 'only changes' 2020-04-20 20:14:24 +02:00
Tomas Susanka
1be5e577ee ci: move report files 'mv' to after_script
Otherwise it does not get moved to the right place if the test suite
fails.
2020-04-16 16:09:18 +00:00
Tomas Susanka
6901cb7cdf ci: simplify regular expressions for release and tags 2020-04-10 11:23:07 +02:00
Tomas Susanka
2b031990f8 ci: run hardware tests nightly and for releases 2020-04-10 11:23:07 +02:00
Marek Mahut
4264e87319 ci: add hardware tests for T1
This enables to run device tests against an actual device connected to
our CI. It uses https://github.com/mmahut/tpmb to enter bootloader and
then it uploads a debug firmware to the device. The debug mode is the
used to "click" the buttons but we might improve this and actually use
the hardware buttons instead.
2020-04-10 11:23:07 +02:00
Tomas Susanka
17392f94b8 ci: set artifacts' name using the job name and commit hash 2020-04-07 10:42:45 +02:00
Tomas Susanka
e3b674a42e ci: move ui reports to the root to simplify artifacts browsing
I wanted to use a symlink but that does not seem to work on GitLab https://gitlab.com/gitlab-org/gitlab-runner/issues/4241.
2020-03-04 14:37:39 +01:00
Tomas Susanka
89929c7a8c tests/ui: create report what differs from master 2020-03-04 13:41:32 +01:00
Tomas Susanka
c418e628ac ci: omit unix/emu label in test jobs 2020-02-24 11:47:06 +00:00
matejcik
37ab510622 ci: remove sleeps for coverage, restore Monero
with the new emulator runner, this should be more stable

This reverts commit 1480f5a25c.
2020-02-11 11:19:56 +01:00
Tomas Susanka
f4c38af825 ci: use 'extends' instead of yaml anchors
We might refactor the ci folder a bit more using this but I believe it
is fine for now.

Should solve #835.
2020-02-10 16:12:46 +00:00
Tomas Susanka
1480f5a25c ci: remove coverage from monero test
It fails randomly and we do not use it at the moment anyway.
2020-02-06 12:37:30 +00:00
Tomas Susanka
e9c5e47ab4 ci: add Pipfile.lock to 'only_changes' 2020-01-29 09:09:32 +00:00
matejcik
04fe99af8e ci: turn mypy check into a part of style-check 2020-01-28 16:32:28 +01:00
matejcik
06909aef7d ci: no dependencies for python test 2020-01-28 16:24:58 +01:00
matejcik
e2f71a1acc ci: use frozen debug builds for emulator tests 2020-01-23 18:43:20 +01:00
matejcik
6cf48bf485 ci: use explicit trezor.log location 2020-01-23 18:43:20 +01:00
matejcik
32b269ad43 ci: fix path for core-bitcoinonly test 2020-01-23 18:43:20 +01:00
Pavol Rusnak
9a884a5dc5
ci/tests: disable test_LongEcho in HIDTest, remove retry 2020-01-23 12:26:43 +00:00
Tomas Susanka
7c41b40dff
tests: introduce UI tests for core with diffs (#784)
tests: introduce UI tests for core with diffs
2020-01-10 20:39:31 +01:00
Milan Rossa
33b7e378c2
core/ci: add coverage target, introduce posttest stage 2020-01-09 15:26:40 +01:00
Tomas Susanka
1103a14c48 tests/ui: move reports and add index.html 2020-01-09 14:25:45 +00:00
Tomas Susanka
96ec85686e tests/ui: success html file 2020-01-07 14:43:23 +00:00
Tomas Susanka
68425fbb8c ci: add junit to ui tests 2020-01-07 12:38:12 +00:00
Tomas Susanka
362dbce606 ci: rename tmp folder to ui_test_records 2020-01-06 14:59:12 +00:00
Tomas Susanka
fe690a6b6b tests/ui: embed images as base64 to diff.html 2020-01-03 15:07:46 +00:00
Tomas Susanka
3dfbe7aa98 ci: upload ui tests fixtures 2020-01-03 15:07:46 +00:00
Tomas Susanka
51ef963738 tests: introduce UI tests for core 2020-01-03 14:28:27 +00:00
Tomas Susanka
bc0c10bf3e ci: always upload test.yml artifacts
To have the emulator log and junit always available.
2020-01-03 14:26:21 +00:00
Tomas Susanka
a28f29708f ci: add junit for a nice tests overview 2020-01-03 12:44:12 +00:00
Tomas Susanka
b6e2c2d14b ci/tests: add core emulator logs as artifacts 2019-12-09 12:17:12 +00:00
Pavol Rusnak
13af405158
ci/test: remove retry attribute for "core unix monero test"
Hopefully we won't need this anymore once we use monero 0.15
for testing.
2019-11-13 00:30:41 +01:00
Pavol Rusnak
8aeec95bae
ci: include full links to issues 2019-10-26 11:28:56 +02:00
Tomas Susanka
c1f7239c2d ci: add click and persistence tests 2019-10-25 12:04:14 +00:00
Tomas Susanka
0811733185 ci: run mypy without limitation 2019-10-22 14:36:25 +00:00
Tomas Susanka
b530e7c105 ci: add fido2 tests to ci 2019-10-18 16:54:00 +02:00
Tomas Susanka
0b1b9a2f79 ci: add mypy
closes #489
2019-10-16 16:06:09 +02:00
Tomas Susanka
737ebeec1c ci: add 'retry' to flaky tests (Monero and U2F) 2019-10-04 09:37:49 +02:00
Pavol Rusnak
c5bae693e3
ci: build u2f test suite 2019-09-14 14:59:11 +02:00
Pavol Rusnak
650db2a5c0
ci: add u2f tests to CI 2019-09-14 14:47:45 +02:00
matejcik
0fc5e545d3 ci: update download_emulators path 2019-09-12 15:42:40 +02:00
matejcik
8814837a9e ci: split "test upgrade" for core and legacy (fixes #501) 2019-09-10 13:48:51 +02:00
matejcik
f5f78c0a99 ci: also run python test when common changes 2019-09-10 13:48:51 +02:00
Tomas Susanka
55f52e2d70
ci: reorder titles of Jobs for a better overview 2019-09-08 13:03:47 +02:00
Pavol Rusnak
e3df251f84
ci: enable only:changes to limit the number of required tasks 2019-09-07 12:10:24 +02:00
Pavol Rusnak
e04555e3e5
ci: add "regular" to regular builds 2019-09-02 13:45:59 +02:00
Pavol Rusnak
db86092319
crypto: fix valgrind issue with ed25519-donna, clean local variables 2019-08-30 17:21:15 +02:00
Pavol Rusnak
82fdf7e03d
ci: cleanup Dockerfile 2019-08-27 21:31:06 +02:00
Tomas Susanka
077735f57b ci: introduce upgrade tests
closes #126
2019-08-26 16:02:06 +02:00
Pavol Rusnak
b1f435e178
ci: test BITCOIN_ONLY firmware 2019-08-23 13:52:14 +02:00
Tomas Susanka
b5c909417e ci: split jobs based on stage not project 2019-08-19 14:47:12 +02:00