2022-03-14 19:10:10 +00:00
|
|
|
# All the tests run test cases on the freshly built emulators from the previous `BUILD` stage.
|
|
|
|
|
2020-06-07 19:49:06 +00:00
|
|
|
image: registry.gitlab.com/satoshilabs/trezor/trezor-firmware/trezor-firmware-env.nix
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2021-11-24 12:24:10 +00:00
|
|
|
# Caching
|
|
|
|
.gitlab_caching: &gitlab_caching
|
|
|
|
cache:
|
|
|
|
key: "$CI_COMMIT_REF_SLUG"
|
|
|
|
paths:
|
|
|
|
- .venv/
|
|
|
|
|
2019-08-19 12:24:32 +00:00
|
|
|
# Core
|
|
|
|
|
2022-10-20 12:26:06 +00:00
|
|
|
# Python unit tests, checking core functionality.
|
|
|
|
core unit python test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- core unix regular build
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test | ts -s"
|
2022-03-31 17:16:59 +00:00
|
|
|
|
2022-10-20 12:26:06 +00:00
|
|
|
# Rust unit tests.
|
|
|
|
core unit rust test:
|
2022-03-31 17:16:59 +00:00
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
2022-10-20 12:26:06 +00:00
|
|
|
- core unix frozen debug build
|
2022-03-31 17:16:59 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core clippy | ts -s"
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_rust | ts -s"
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2022-03-31 17:16:59 +00:00
|
|
|
core unit asan test:
|
2022-01-10 16:20:42 +00:00
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix regular asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
RUSTC_BOOTSTRAP: "1"
|
|
|
|
RUSTFLAGS: "-Z sanitizer=address"
|
2022-04-05 09:06:11 +00:00
|
|
|
ADDRESS_SANITIZER: "1"
|
2022-01-10 17:58:12 +00:00
|
|
|
LSAN_OPTIONS: "suppressions=../../asan_suppressions.txt"
|
2022-01-10 16:20:42 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test | ts -s"
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core clean build_unix | ts -s"
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_rust | ts -s"
|
2022-01-10 16:20:42 +00:00
|
|
|
|
2022-03-14 19:10:10 +00:00
|
|
|
# Device tests for Core. Running device tests and also comparing screens
|
|
|
|
# with the expected UI result.
|
|
|
|
# See artifacts for a comprehensive report of UI.
|
2022-09-11 15:27:58 +00:00
|
|
|
# See [docs/tests/ui-tests](../tests/ui-tests.md) for more info.
|
2022-02-08 12:46:18 +00:00
|
|
|
core device test:
|
2019-12-09 16:01:04 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
2022-02-08 12:46:18 +00:00
|
|
|
variables:
|
2023-03-08 10:38:52 +00:00
|
|
|
TREZOR_PROFILING: 1 # so that we get coverage data
|
2023-03-03 14:10:33 +00:00
|
|
|
MULTICORE: 4 # more could interfere with other jobs
|
2019-12-09 16:01:04 +00:00
|
|
|
script:
|
2023-03-03 14:10:33 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_ui_multicore | ts -s"
|
2020-04-16 15:47:42 +00:00
|
|
|
after_script:
|
2023-03-08 10:38:52 +00:00
|
|
|
- mv core/src/.coverage.* core # there will be more coverage files (one per core)
|
2023-01-30 13:41:09 +00:00
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
2023-01-30 13:41:09 +00:00
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
2019-12-09 16:01:04 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 16:01:04 +00:00
|
|
|
paths:
|
2020-01-06 14:59:12 +00:00
|
|
|
- ci/ui_test_records/
|
2020-03-04 12:33:34 +00:00
|
|
|
- test_ui_report
|
2020-03-03 14:50:57 +00:00
|
|
|
- tests/ui_tests/screens/
|
2020-09-29 17:53:28 +00:00
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
2023-07-14 08:31:39 +00:00
|
|
|
- tests/ui_tests/fixtures.results.json
|
2020-01-07 11:53:50 +00:00
|
|
|
- tests/junit.xml
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2019-05-27 12:17:43 +00:00
|
|
|
- core/.coverage.*
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2022-02-08 12:46:18 +00:00
|
|
|
expire_in: 1 week
|
2022-03-31 17:16:59 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
|
WIP - firmware translations
WIP - refactor and extend font generation for non-ascii characters
WIP - add czech characters mapping between UTF8 value and index
WIP - regenerate font files with czech characters
WIP - shorten czech button text, it was causing SHUTDOWN for some reason
WIP - support UTF8 characters in fonts.c
WIP - account for translation in tests
WIP - small fixes
WIP - fix last test
WIP - support UTF8 also in Rust font operations
WIP - add a script to find non-translated english strings in micropython code
WIP - add a validator script for checking missing micropython translations
WIP - translate remaining altcoins and other apps in core (fido, sdcard, TT layouts, ...)
WIP - generate czech glyphs for TT fonts
WIP - modify gen_font.py to account for negative bearing czech characters
WIP - extend translation validation scripts, move them into core/tools
WIP - translate TT layouts in Rust
WIP - fix tests
WIP - fix inverse coloring of nonprintable glyph
WIP - add build and test pipelines for Czech language
WIP - merge both JSON files together
WIP - run new isort
WIP - unify all the translation in Rust, expose to micropython
TEMP - leave en_merged.json file, so it is accessible by translators with old link
WIP - fixes
WIP - add french characters and translation via Google Translator
WIP - skip rustfmt in mako-created files
WIP - revert all the font height changes causing false-positive UI diff
WIP - fixes after rebase
WIP - fix broken translations
WIP - revert some wording changes causing UI diff
WIP - improve validation and translate scripts, translate missing strings
WIP - sort all keys alphabetically
WIP - remove any usage of translation in bootloader
WIP - add newline at the end of JSON file
WIP - fix bitcoin-only strings check
WIP - fix python support check
WIP - add some missing translations
WIP - fix SD card device test
WIP - fix pystyle
WIP - fix rust unittests
WIP - fix click tests
WIP - flag errors in french translations
WIP - add script transferring translations data into a byte blob
WIP - regenerate fr.rs
WIP - store and read language translations from flash
WIP - storing language name in storage
WIP - sending language_data in apply_settings protobuf message
WIP - separate protobuf message for translations, fixes
WIP - set up translations area for TT as well
WIP - get rid of TREZOR_LANG env variable during build
WIP - make the firmware buildable for TT
WIP - add basic device tests
WIP - set language for tests
WIP - counting with language when writing fixtures
WIP - add todos
WIP - fix CI
WIP - unify translations, make titles CAPITAL
WIP - translate missing english
WIP - skip translations messages for T1
WIP - not changing tests names for english
WIP - fix flake8
WIP - no test language setting for T1
WIP - clippy lint about complex data type
WIP - fix some english UI diff for TR
WIP - fix cstyle
WIP - minimize the usage of #[cfg(feature = "micropython")] outside translations module
WIP - minimize TT's UI diff
WIP - fix ruststyle
WIP - fix TR build
WIP - advanced Shamir text change
WIP - storing the language name as the first item in the translation data
WIP - modify and extend tests after storing language name
WIP - modify checklist sentence
WIP - add TEST_LANG into Makefile for all the emu tests
WIP - default arguments
WIP - reimplement default arguments
remove unneeded pub from get_info function
WIP - Rust handling of object attributes lookups from upy - thanks Matejcik!
WIP - generate mock interface for attribute-based translations lookups
WIP - change function calls to object attributes
WIP - symbolic link for unix/translations.c
WIP - fix and improve the reading of translations - thanks Matejcik!
WIP - add support for multiple languages in removing missing tests
WIP - fix multiple-accounts warning in tests
WIP - fix encoding of newlines in translations
WIP - fix czech tutorial text
WIP - fix czech click tests
WIP - do not translate wire error messages
WIP - add language options to click tests as well
WIP - setup czech device tests in CI
WIP - setup czech click tests in CI
WIP - record czech device tests for TR
WIP - record czech click tests for TR
WIP - record czech device tests for TT
WIP - record czech click tests for TT
WIP - pystyle
WIP - cstyle
WIP - fix Rust micropython import dependency
WIP - fix czech recordings
WIP - support french translations in tests
WIP - shorten some french words to fix the tests
WIP - fix micropython cfg compilation
WIP - record french click tests for TR
WIP - record french device tests for TR
WIP - record french device tests for TT
WIP - record french click tests for TT
WIP - fix french translations - shorten them
WIP - translate missing french words
WIP - fix click tests
WIP - add french tests into CI
WIP - pystyle
WIP - allow for czech/french tests in update script
WIP - update czech fixtures
WIP - update french fixtures
WIP - ruststyle
WIP - disallow MPU to run it on hardware
WIP - cstyle
WIP - change translations delimiter from * to \x00
WIP - change translations protobufs
WIP - remove language handling from storage
WIP - add header into JSON files
WIP - count with header in translations blob
WIP - yml style fixes
WIP - fix proto gen
WIP - verify version and data hash
WIP - fix loading test translations
feat(core): allow access to translations area in firmware
[no changelog]
WIP - fixes after rebase
WIP - increase the TT's translations area to 3 sectors
WIP - dynamically read the maximum translations size
WIP - record non-english tests from CI
WIP - loading font data from translations blob
WIP - bump translations version
WIP - include czech and french glyph data
WIP - whitelist another negative-bearing glyph
WIP - remove czech/french glyphs from common font files
WIP - fix language tests
WIP - specific fonts for specific models
WIP - revert the non-ascii font hardcoding
WIP - include missing BIG font into nonprintable logic
WIP - minor Rust code improvements
WIP - include newlines at the end of json files
WIP - move glyph Rust function to librust_fonts.h
WIP - add all fonts into translations file
WIP - move fonts into its own dir
WIP - reflect separate dir for fonts
WIP - not putting translations trezorhal into bootloader
WIP - write and read multiple fonts into translations data
WIP - silence pyright issue/notissue
WIP - delete no more used translations/*.py imports
WIP - fix bootloader builds by introducing translations feature and TRANSLATIONS flag
WIP - fix TT's bootloader Rust build
WIP - fix tests in non-english languages
WIP - not search for UTF-8 when there are no translations data
WIP - add colons to strings where missing
WIP - fix language loading in tests
WIP - fix signmessage input flow to work in all languages
WIP - create offset table for translation strings
WIP - code improvements
WIP - record foreign language fixtures + sync with main in english
WIP - do alignment check before reading u16 data
WIP - allocate blob in RAM for translations data
WIP - add TODO for blob generation
WIP - record non-english device tests
WIP - use bytes.align_to instead of messing with pointers
WIP - fixtures
WIP - remove unused import
WIP - add order.py
WIP - add order.json
WIP - take order.json into account in creating general.rs
WIP - take order.json into account in generating the blob
WIP - style
WIP - sort the language files
WIP - remove unused file
WIP - code improvements
WIP - add TODO for homescreen notification
WIP - translate plural forms
WIP - translate time intervals
WIP - sign translations with dev keys, validate signatures, improve robustness
WIP - improve tests for translations
WIP - add `trezorctl utils sign-translations` for production signing of the blob
WIP - pyright fix
WIP - changing TR progress loader offset - it was colliding with title
WIP - show indeterminate loader when loading translations data
WIP - record new and updated language tests
WIP - show the change language title/prompt in the target language
WIP - sort keys
WIP - add crowdin-cli into shell.nix
WIP - add crowdin sync script
2023-08-11 15:57:32 +00:00
|
|
|
core device test czech:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1 # so that we get coverage data
|
|
|
|
MULTICORE: 4 # more could interfere with other jobs
|
|
|
|
TEST_LANG: "cs" # czech
|
|
|
|
script:
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_ui_multicore | ts -s"
|
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage.* core # there will be more coverage files (one per core)
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
|
|
|
- tests/ui_tests/fixtures.results.json
|
|
|
|
- tests/junit.xml
|
|
|
|
- tests/trezor.log
|
|
|
|
- core/.coverage.*
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
|
|
|
|
core device test french:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1 # so that we get coverage data
|
|
|
|
MULTICORE: 4 # more could interfere with other jobs
|
|
|
|
TEST_LANG: "fr" # french
|
|
|
|
script:
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_ui_multicore | ts -s"
|
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage.* core # there will be more coverage files (one per core)
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
|
|
|
- tests/ui_tests/fixtures.results.json
|
|
|
|
- tests/junit.xml
|
|
|
|
- tests/trezor.log
|
|
|
|
- core/.coverage.*
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
|
2023-05-12 09:19:35 +00:00
|
|
|
core device R test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen R debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: "1"
|
|
|
|
TREZOR_MODEL: "R"
|
2023-06-13 08:17:33 +00:00
|
|
|
MULTICORE: 4 # more could interfere with other jobs
|
2023-05-12 09:19:35 +00:00
|
|
|
script:
|
2023-06-13 08:17:33 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_ui_multicore | ts -s"
|
2023-05-12 09:19:35 +00:00
|
|
|
after_script:
|
2023-06-13 08:17:33 +00:00
|
|
|
- mv core/src/.coverage.* core # there will be more coverage files (one per core)
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
2023-05-12 09:19:35 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
2023-07-14 08:31:39 +00:00
|
|
|
- tests/ui_tests/fixtures.results.json
|
2023-05-12 09:19:35 +00:00
|
|
|
- tests/junit.xml
|
|
|
|
- tests/trezor.log
|
2023-06-13 08:17:33 +00:00
|
|
|
- core/.coverage.*
|
2023-05-12 09:19:35 +00:00
|
|
|
when: always
|
2023-06-13 08:17:33 +00:00
|
|
|
expire_in: 1 week
|
2023-05-12 09:19:35 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
|
WIP - firmware translations
WIP - refactor and extend font generation for non-ascii characters
WIP - add czech characters mapping between UTF8 value and index
WIP - regenerate font files with czech characters
WIP - shorten czech button text, it was causing SHUTDOWN for some reason
WIP - support UTF8 characters in fonts.c
WIP - account for translation in tests
WIP - small fixes
WIP - fix last test
WIP - support UTF8 also in Rust font operations
WIP - add a script to find non-translated english strings in micropython code
WIP - add a validator script for checking missing micropython translations
WIP - translate remaining altcoins and other apps in core (fido, sdcard, TT layouts, ...)
WIP - generate czech glyphs for TT fonts
WIP - modify gen_font.py to account for negative bearing czech characters
WIP - extend translation validation scripts, move them into core/tools
WIP - translate TT layouts in Rust
WIP - fix tests
WIP - fix inverse coloring of nonprintable glyph
WIP - add build and test pipelines for Czech language
WIP - merge both JSON files together
WIP - run new isort
WIP - unify all the translation in Rust, expose to micropython
TEMP - leave en_merged.json file, so it is accessible by translators with old link
WIP - fixes
WIP - add french characters and translation via Google Translator
WIP - skip rustfmt in mako-created files
WIP - revert all the font height changes causing false-positive UI diff
WIP - fixes after rebase
WIP - fix broken translations
WIP - revert some wording changes causing UI diff
WIP - improve validation and translate scripts, translate missing strings
WIP - sort all keys alphabetically
WIP - remove any usage of translation in bootloader
WIP - add newline at the end of JSON file
WIP - fix bitcoin-only strings check
WIP - fix python support check
WIP - add some missing translations
WIP - fix SD card device test
WIP - fix pystyle
WIP - fix rust unittests
WIP - fix click tests
WIP - flag errors in french translations
WIP - add script transferring translations data into a byte blob
WIP - regenerate fr.rs
WIP - store and read language translations from flash
WIP - storing language name in storage
WIP - sending language_data in apply_settings protobuf message
WIP - separate protobuf message for translations, fixes
WIP - set up translations area for TT as well
WIP - get rid of TREZOR_LANG env variable during build
WIP - make the firmware buildable for TT
WIP - add basic device tests
WIP - set language for tests
WIP - counting with language when writing fixtures
WIP - add todos
WIP - fix CI
WIP - unify translations, make titles CAPITAL
WIP - translate missing english
WIP - skip translations messages for T1
WIP - not changing tests names for english
WIP - fix flake8
WIP - no test language setting for T1
WIP - clippy lint about complex data type
WIP - fix some english UI diff for TR
WIP - fix cstyle
WIP - minimize the usage of #[cfg(feature = "micropython")] outside translations module
WIP - minimize TT's UI diff
WIP - fix ruststyle
WIP - fix TR build
WIP - advanced Shamir text change
WIP - storing the language name as the first item in the translation data
WIP - modify and extend tests after storing language name
WIP - modify checklist sentence
WIP - add TEST_LANG into Makefile for all the emu tests
WIP - default arguments
WIP - reimplement default arguments
remove unneeded pub from get_info function
WIP - Rust handling of object attributes lookups from upy - thanks Matejcik!
WIP - generate mock interface for attribute-based translations lookups
WIP - change function calls to object attributes
WIP - symbolic link for unix/translations.c
WIP - fix and improve the reading of translations - thanks Matejcik!
WIP - add support for multiple languages in removing missing tests
WIP - fix multiple-accounts warning in tests
WIP - fix encoding of newlines in translations
WIP - fix czech tutorial text
WIP - fix czech click tests
WIP - do not translate wire error messages
WIP - add language options to click tests as well
WIP - setup czech device tests in CI
WIP - setup czech click tests in CI
WIP - record czech device tests for TR
WIP - record czech click tests for TR
WIP - record czech device tests for TT
WIP - record czech click tests for TT
WIP - pystyle
WIP - cstyle
WIP - fix Rust micropython import dependency
WIP - fix czech recordings
WIP - support french translations in tests
WIP - shorten some french words to fix the tests
WIP - fix micropython cfg compilation
WIP - record french click tests for TR
WIP - record french device tests for TR
WIP - record french device tests for TT
WIP - record french click tests for TT
WIP - fix french translations - shorten them
WIP - translate missing french words
WIP - fix click tests
WIP - add french tests into CI
WIP - pystyle
WIP - allow for czech/french tests in update script
WIP - update czech fixtures
WIP - update french fixtures
WIP - ruststyle
WIP - disallow MPU to run it on hardware
WIP - cstyle
WIP - change translations delimiter from * to \x00
WIP - change translations protobufs
WIP - remove language handling from storage
WIP - add header into JSON files
WIP - count with header in translations blob
WIP - yml style fixes
WIP - fix proto gen
WIP - verify version and data hash
WIP - fix loading test translations
feat(core): allow access to translations area in firmware
[no changelog]
WIP - fixes after rebase
WIP - increase the TT's translations area to 3 sectors
WIP - dynamically read the maximum translations size
WIP - record non-english tests from CI
WIP - loading font data from translations blob
WIP - bump translations version
WIP - include czech and french glyph data
WIP - whitelist another negative-bearing glyph
WIP - remove czech/french glyphs from common font files
WIP - fix language tests
WIP - specific fonts for specific models
WIP - revert the non-ascii font hardcoding
WIP - include missing BIG font into nonprintable logic
WIP - minor Rust code improvements
WIP - include newlines at the end of json files
WIP - move glyph Rust function to librust_fonts.h
WIP - add all fonts into translations file
WIP - move fonts into its own dir
WIP - reflect separate dir for fonts
WIP - not putting translations trezorhal into bootloader
WIP - write and read multiple fonts into translations data
WIP - silence pyright issue/notissue
WIP - delete no more used translations/*.py imports
WIP - fix bootloader builds by introducing translations feature and TRANSLATIONS flag
WIP - fix TT's bootloader Rust build
WIP - fix tests in non-english languages
WIP - not search for UTF-8 when there are no translations data
WIP - add colons to strings where missing
WIP - fix language loading in tests
WIP - fix signmessage input flow to work in all languages
WIP - create offset table for translation strings
WIP - code improvements
WIP - record foreign language fixtures + sync with main in english
WIP - do alignment check before reading u16 data
WIP - allocate blob in RAM for translations data
WIP - add TODO for blob generation
WIP - record non-english device tests
WIP - use bytes.align_to instead of messing with pointers
WIP - fixtures
WIP - remove unused import
WIP - add order.py
WIP - add order.json
WIP - take order.json into account in creating general.rs
WIP - take order.json into account in generating the blob
WIP - style
WIP - sort the language files
WIP - remove unused file
WIP - code improvements
WIP - add TODO for homescreen notification
WIP - translate plural forms
WIP - translate time intervals
WIP - sign translations with dev keys, validate signatures, improve robustness
WIP - improve tests for translations
WIP - add `trezorctl utils sign-translations` for production signing of the blob
WIP - pyright fix
WIP - changing TR progress loader offset - it was colliding with title
WIP - show indeterminate loader when loading translations data
WIP - record new and updated language tests
WIP - show the change language title/prompt in the target language
WIP - sort keys
WIP - add crowdin-cli into shell.nix
WIP - add crowdin sync script
2023-08-11 15:57:32 +00:00
|
|
|
core device R test czech:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen R debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: "1"
|
|
|
|
TREZOR_MODEL: "R"
|
|
|
|
MULTICORE: 4 # more could interfere with other jobs
|
|
|
|
TEST_LANG: "cs" # czech
|
|
|
|
script:
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_ui_multicore | ts -s"
|
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage.* core # there will be more coverage files (one per core)
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
|
|
|
- tests/ui_tests/fixtures.results.json
|
|
|
|
- tests/junit.xml
|
|
|
|
- tests/trezor.log
|
|
|
|
- core/.coverage.*
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
|
|
|
|
core device R test french:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen R debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: "1"
|
|
|
|
TREZOR_MODEL: "R"
|
|
|
|
MULTICORE: 4 # more could interfere with other jobs
|
|
|
|
TEST_LANG: "fr" # french
|
|
|
|
script:
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_ui_multicore | ts -s"
|
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage.* core # there will be more coverage files (one per core)
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
|
|
|
- tests/ui_tests/fixtures.results.json
|
|
|
|
- tests/junit.xml
|
|
|
|
- tests/trezor.log
|
|
|
|
- core/.coverage.*
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
|
2022-01-07 12:07:45 +00:00
|
|
|
core device asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
2022-06-27 09:18:37 +00:00
|
|
|
variables:
|
|
|
|
PYTEST_TIMEOUT: "600"
|
2022-01-07 12:07:45 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu | ts -s"
|
2022-01-07 12:07:45 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/trezor.log
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2022-03-14 19:10:10 +00:00
|
|
|
# Device tests excluding altcoins, only for BTC.
|
2020-02-24 11:26:03 +00:00
|
|
|
core btconly device test:
|
2019-08-22 18:18:44 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- core unix frozen btconly debug build
|
2019-08-22 18:18:44 +00:00
|
|
|
variables:
|
2020-07-27 14:59:51 +00:00
|
|
|
MICROPYTHON: "build/unix/trezor-emu-core-bitcoinonly"
|
2019-08-22 18:18:44 +00:00
|
|
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu | ts -s"
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2020-01-02 17:55:37 +00:00
|
|
|
- tests/junit.xml
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2020-01-02 17:55:37 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
2019-08-22 18:18:44 +00:00
|
|
|
|
2022-01-07 12:07:45 +00:00
|
|
|
core btconly device asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen btconly debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
MICROPYTHON: "build/unix/trezor-emu-core-bitcoinonly"
|
|
|
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
2022-06-27 09:18:37 +00:00
|
|
|
PYTEST_TIMEOUT: "600"
|
2022-01-07 12:07:45 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu | ts -s"
|
2022-01-07 12:07:45 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/trezor.log
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2022-03-14 19:10:10 +00:00
|
|
|
# Monero tests.
|
2020-02-24 11:26:03 +00:00
|
|
|
core monero test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
2020-02-11 10:17:31 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2023-03-17 20:26:03 +00:00
|
|
|
# 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"
|
2020-07-06 17:51:28 +00:00
|
|
|
- mv core/src/.coverage core/.coverage.test_emu_monero
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2021-04-09 10:17:52 +00:00
|
|
|
- core/tests/trezor_monero_tests.log
|
2020-02-11 10:17:31 +00:00
|
|
|
- core/.coverage.*
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2022-01-10 16:20:42 +00:00
|
|
|
core monero asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
|
|
|
script:
|
2023-05-05 10:32:29 +00:00
|
|
|
# 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"
|
2022-01-10 16:20:42 +00:00
|
|
|
- mv core/src/.coverage core/.coverage.test_emu_monero
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/trezor.log
|
|
|
|
- core/tests/trezor_monero_tests.log
|
|
|
|
- core/.coverage.*
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2022-03-14 19:10:10 +00:00
|
|
|
# Tests for U2F and HID.
|
2020-02-24 11:26:03 +00:00
|
|
|
core u2f test:
|
2019-09-14 12:47:30 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
2019-05-27 12:17:43 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
2019-09-14 12:47:30 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C tests/fido_tests/u2f-tests-hid | ts -s"
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_u2f | ts -s"
|
2020-07-06 17:51:28 +00:00
|
|
|
- mv core/src/.coverage core/.coverage.test_emu_u2f
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2019-05-27 12:17:43 +00:00
|
|
|
- core/.coverage.*
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-09-14 12:47:30 +00:00
|
|
|
|
2022-01-07 12:07:45 +00:00
|
|
|
core u2f asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C tests/fido_tests/u2f-tests-hid | ts -s"
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_u2f | ts -s"
|
2022-01-07 12:07:45 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/trezor.log
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2022-03-14 19:10:10 +00:00
|
|
|
# FIDO2 device tests.
|
2020-02-24 11:26:03 +00:00
|
|
|
core fido2 test:
|
2019-10-18 13:35:45 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
2019-05-27 12:17:43 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
2019-10-18 13:35:45 +00:00
|
|
|
script:
|
2020-07-27 14:59:51 +00:00
|
|
|
- pgrep trezor-emu-core || true
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_fido2 | ts -s"
|
2020-07-27 14:59:51 +00:00
|
|
|
- pgrep trezor-emu-core || true
|
2020-07-06 17:51:28 +00:00
|
|
|
- mv core/src/.coverage core/.coverage.test_emu_fido2
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2020-01-02 17:55:37 +00:00
|
|
|
- tests/junit.xml
|
2019-05-27 12:17:43 +00:00
|
|
|
- core/.coverage.*
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-02 17:55:37 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-10-18 13:35:45 +00:00
|
|
|
|
2022-01-07 12:07:45 +00:00
|
|
|
core fido2 asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
script:
|
|
|
|
- pgrep trezor-emu-core || true
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_fido2 | ts -s"
|
2022-01-07 12:07:45 +00:00
|
|
|
- pgrep trezor-emu-core || true
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/trezor.log
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2023-03-30 10:44:05 +00:00
|
|
|
# Click tests - UI.
|
2022-09-11 15:27:58 +00:00
|
|
|
# See [docs/tests/click-tests](../tests/click-tests.md) for more info.
|
2020-02-24 11:26:03 +00:00
|
|
|
core click test:
|
2019-10-25 12:03:44 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
2023-01-30 13:41:09 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
2019-10-25 12:03:44 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_click_ui | ts -s"
|
2023-01-30 13:41:09 +00:00
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage core/.coverage.test_click
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
2023-01-30 13:41:09 +00:00
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
2019-12-09 08:28:28 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2019-12-09 08:28:28 +00:00
|
|
|
paths:
|
2023-01-30 13:41:09 +00:00
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
2023-07-14 08:31:39 +00:00
|
|
|
- tests/ui_tests/fixtures.results.json
|
2020-01-16 16:17:41 +00:00
|
|
|
- tests/trezor.log
|
2020-01-02 17:55:37 +00:00
|
|
|
- tests/junit.xml
|
2023-03-08 17:45:26 +00:00
|
|
|
- core/.coverage.*
|
2020-01-02 17:55:37 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
2019-12-09 08:28:28 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-10-25 12:03:44 +00:00
|
|
|
|
WIP - firmware translations
WIP - refactor and extend font generation for non-ascii characters
WIP - add czech characters mapping between UTF8 value and index
WIP - regenerate font files with czech characters
WIP - shorten czech button text, it was causing SHUTDOWN for some reason
WIP - support UTF8 characters in fonts.c
WIP - account for translation in tests
WIP - small fixes
WIP - fix last test
WIP - support UTF8 also in Rust font operations
WIP - add a script to find non-translated english strings in micropython code
WIP - add a validator script for checking missing micropython translations
WIP - translate remaining altcoins and other apps in core (fido, sdcard, TT layouts, ...)
WIP - generate czech glyphs for TT fonts
WIP - modify gen_font.py to account for negative bearing czech characters
WIP - extend translation validation scripts, move them into core/tools
WIP - translate TT layouts in Rust
WIP - fix tests
WIP - fix inverse coloring of nonprintable glyph
WIP - add build and test pipelines for Czech language
WIP - merge both JSON files together
WIP - run new isort
WIP - unify all the translation in Rust, expose to micropython
TEMP - leave en_merged.json file, so it is accessible by translators with old link
WIP - fixes
WIP - add french characters and translation via Google Translator
WIP - skip rustfmt in mako-created files
WIP - revert all the font height changes causing false-positive UI diff
WIP - fixes after rebase
WIP - fix broken translations
WIP - revert some wording changes causing UI diff
WIP - improve validation and translate scripts, translate missing strings
WIP - sort all keys alphabetically
WIP - remove any usage of translation in bootloader
WIP - add newline at the end of JSON file
WIP - fix bitcoin-only strings check
WIP - fix python support check
WIP - add some missing translations
WIP - fix SD card device test
WIP - fix pystyle
WIP - fix rust unittests
WIP - fix click tests
WIP - flag errors in french translations
WIP - add script transferring translations data into a byte blob
WIP - regenerate fr.rs
WIP - store and read language translations from flash
WIP - storing language name in storage
WIP - sending language_data in apply_settings protobuf message
WIP - separate protobuf message for translations, fixes
WIP - set up translations area for TT as well
WIP - get rid of TREZOR_LANG env variable during build
WIP - make the firmware buildable for TT
WIP - add basic device tests
WIP - set language for tests
WIP - counting with language when writing fixtures
WIP - add todos
WIP - fix CI
WIP - unify translations, make titles CAPITAL
WIP - translate missing english
WIP - skip translations messages for T1
WIP - not changing tests names for english
WIP - fix flake8
WIP - no test language setting for T1
WIP - clippy lint about complex data type
WIP - fix some english UI diff for TR
WIP - fix cstyle
WIP - minimize the usage of #[cfg(feature = "micropython")] outside translations module
WIP - minimize TT's UI diff
WIP - fix ruststyle
WIP - fix TR build
WIP - advanced Shamir text change
WIP - storing the language name as the first item in the translation data
WIP - modify and extend tests after storing language name
WIP - modify checklist sentence
WIP - add TEST_LANG into Makefile for all the emu tests
WIP - default arguments
WIP - reimplement default arguments
remove unneeded pub from get_info function
WIP - Rust handling of object attributes lookups from upy - thanks Matejcik!
WIP - generate mock interface for attribute-based translations lookups
WIP - change function calls to object attributes
WIP - symbolic link for unix/translations.c
WIP - fix and improve the reading of translations - thanks Matejcik!
WIP - add support for multiple languages in removing missing tests
WIP - fix multiple-accounts warning in tests
WIP - fix encoding of newlines in translations
WIP - fix czech tutorial text
WIP - fix czech click tests
WIP - do not translate wire error messages
WIP - add language options to click tests as well
WIP - setup czech device tests in CI
WIP - setup czech click tests in CI
WIP - record czech device tests for TR
WIP - record czech click tests for TR
WIP - record czech device tests for TT
WIP - record czech click tests for TT
WIP - pystyle
WIP - cstyle
WIP - fix Rust micropython import dependency
WIP - fix czech recordings
WIP - support french translations in tests
WIP - shorten some french words to fix the tests
WIP - fix micropython cfg compilation
WIP - record french click tests for TR
WIP - record french device tests for TR
WIP - record french device tests for TT
WIP - record french click tests for TT
WIP - fix french translations - shorten them
WIP - translate missing french words
WIP - fix click tests
WIP - add french tests into CI
WIP - pystyle
WIP - allow for czech/french tests in update script
WIP - update czech fixtures
WIP - update french fixtures
WIP - ruststyle
WIP - disallow MPU to run it on hardware
WIP - cstyle
WIP - change translations delimiter from * to \x00
WIP - change translations protobufs
WIP - remove language handling from storage
WIP - add header into JSON files
WIP - count with header in translations blob
WIP - yml style fixes
WIP - fix proto gen
WIP - verify version and data hash
WIP - fix loading test translations
feat(core): allow access to translations area in firmware
[no changelog]
WIP - fixes after rebase
WIP - increase the TT's translations area to 3 sectors
WIP - dynamically read the maximum translations size
WIP - record non-english tests from CI
WIP - loading font data from translations blob
WIP - bump translations version
WIP - include czech and french glyph data
WIP - whitelist another negative-bearing glyph
WIP - remove czech/french glyphs from common font files
WIP - fix language tests
WIP - specific fonts for specific models
WIP - revert the non-ascii font hardcoding
WIP - include missing BIG font into nonprintable logic
WIP - minor Rust code improvements
WIP - include newlines at the end of json files
WIP - move glyph Rust function to librust_fonts.h
WIP - add all fonts into translations file
WIP - move fonts into its own dir
WIP - reflect separate dir for fonts
WIP - not putting translations trezorhal into bootloader
WIP - write and read multiple fonts into translations data
WIP - silence pyright issue/notissue
WIP - delete no more used translations/*.py imports
WIP - fix bootloader builds by introducing translations feature and TRANSLATIONS flag
WIP - fix TT's bootloader Rust build
WIP - fix tests in non-english languages
WIP - not search for UTF-8 when there are no translations data
WIP - add colons to strings where missing
WIP - fix language loading in tests
WIP - fix signmessage input flow to work in all languages
WIP - create offset table for translation strings
WIP - code improvements
WIP - record foreign language fixtures + sync with main in english
WIP - do alignment check before reading u16 data
WIP - allocate blob in RAM for translations data
WIP - add TODO for blob generation
WIP - record non-english device tests
WIP - use bytes.align_to instead of messing with pointers
WIP - fixtures
WIP - remove unused import
WIP - add order.py
WIP - add order.json
WIP - take order.json into account in creating general.rs
WIP - take order.json into account in generating the blob
WIP - style
WIP - sort the language files
WIP - remove unused file
WIP - code improvements
WIP - add TODO for homescreen notification
WIP - translate plural forms
WIP - translate time intervals
WIP - sign translations with dev keys, validate signatures, improve robustness
WIP - improve tests for translations
WIP - add `trezorctl utils sign-translations` for production signing of the blob
WIP - pyright fix
WIP - changing TR progress loader offset - it was colliding with title
WIP - show indeterminate loader when loading translations data
WIP - record new and updated language tests
WIP - show the change language title/prompt in the target language
WIP - sort keys
WIP - add crowdin-cli into shell.nix
WIP - add crowdin sync script
2023-08-11 15:57:32 +00:00
|
|
|
core click test czech:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
|
|
|
TEST_LANG: "cs" # czech
|
|
|
|
script:
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_click_ui | ts -s"
|
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage core/.coverage.test_click
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
|
|
|
- tests/ui_tests/fixtures.results.json
|
|
|
|
- tests/trezor.log
|
|
|
|
- tests/junit.xml
|
|
|
|
- core/.coverage.*
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
|
|
|
core click test french:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
|
|
|
TEST_LANG: "fr" # french
|
|
|
|
script:
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_click_ui | ts -s"
|
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage core/.coverage.test_click
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
|
|
|
- tests/ui_tests/fixtures.results.json
|
|
|
|
- tests/trezor.log
|
|
|
|
- tests/junit.xml
|
|
|
|
- core/.coverage.*
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2023-05-12 09:19:35 +00:00
|
|
|
# Click tests.
|
|
|
|
# See [docs/tests/click-tests](../tests/click-tests.md) for more info.
|
|
|
|
core click R test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen R debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run make -C core test_emu_click_ui | ts -s"
|
WIP - firmware translations
WIP - refactor and extend font generation for non-ascii characters
WIP - add czech characters mapping between UTF8 value and index
WIP - regenerate font files with czech characters
WIP - shorten czech button text, it was causing SHUTDOWN for some reason
WIP - support UTF8 characters in fonts.c
WIP - account for translation in tests
WIP - small fixes
WIP - fix last test
WIP - support UTF8 also in Rust font operations
WIP - add a script to find non-translated english strings in micropython code
WIP - add a validator script for checking missing micropython translations
WIP - translate remaining altcoins and other apps in core (fido, sdcard, TT layouts, ...)
WIP - generate czech glyphs for TT fonts
WIP - modify gen_font.py to account for negative bearing czech characters
WIP - extend translation validation scripts, move them into core/tools
WIP - translate TT layouts in Rust
WIP - fix tests
WIP - fix inverse coloring of nonprintable glyph
WIP - add build and test pipelines for Czech language
WIP - merge both JSON files together
WIP - run new isort
WIP - unify all the translation in Rust, expose to micropython
TEMP - leave en_merged.json file, so it is accessible by translators with old link
WIP - fixes
WIP - add french characters and translation via Google Translator
WIP - skip rustfmt in mako-created files
WIP - revert all the font height changes causing false-positive UI diff
WIP - fixes after rebase
WIP - fix broken translations
WIP - revert some wording changes causing UI diff
WIP - improve validation and translate scripts, translate missing strings
WIP - sort all keys alphabetically
WIP - remove any usage of translation in bootloader
WIP - add newline at the end of JSON file
WIP - fix bitcoin-only strings check
WIP - fix python support check
WIP - add some missing translations
WIP - fix SD card device test
WIP - fix pystyle
WIP - fix rust unittests
WIP - fix click tests
WIP - flag errors in french translations
WIP - add script transferring translations data into a byte blob
WIP - regenerate fr.rs
WIP - store and read language translations from flash
WIP - storing language name in storage
WIP - sending language_data in apply_settings protobuf message
WIP - separate protobuf message for translations, fixes
WIP - set up translations area for TT as well
WIP - get rid of TREZOR_LANG env variable during build
WIP - make the firmware buildable for TT
WIP - add basic device tests
WIP - set language for tests
WIP - counting with language when writing fixtures
WIP - add todos
WIP - fix CI
WIP - unify translations, make titles CAPITAL
WIP - translate missing english
WIP - skip translations messages for T1
WIP - not changing tests names for english
WIP - fix flake8
WIP - no test language setting for T1
WIP - clippy lint about complex data type
WIP - fix some english UI diff for TR
WIP - fix cstyle
WIP - minimize the usage of #[cfg(feature = "micropython")] outside translations module
WIP - minimize TT's UI diff
WIP - fix ruststyle
WIP - fix TR build
WIP - advanced Shamir text change
WIP - storing the language name as the first item in the translation data
WIP - modify and extend tests after storing language name
WIP - modify checklist sentence
WIP - add TEST_LANG into Makefile for all the emu tests
WIP - default arguments
WIP - reimplement default arguments
remove unneeded pub from get_info function
WIP - Rust handling of object attributes lookups from upy - thanks Matejcik!
WIP - generate mock interface for attribute-based translations lookups
WIP - change function calls to object attributes
WIP - symbolic link for unix/translations.c
WIP - fix and improve the reading of translations - thanks Matejcik!
WIP - add support for multiple languages in removing missing tests
WIP - fix multiple-accounts warning in tests
WIP - fix encoding of newlines in translations
WIP - fix czech tutorial text
WIP - fix czech click tests
WIP - do not translate wire error messages
WIP - add language options to click tests as well
WIP - setup czech device tests in CI
WIP - setup czech click tests in CI
WIP - record czech device tests for TR
WIP - record czech click tests for TR
WIP - record czech device tests for TT
WIP - record czech click tests for TT
WIP - pystyle
WIP - cstyle
WIP - fix Rust micropython import dependency
WIP - fix czech recordings
WIP - support french translations in tests
WIP - shorten some french words to fix the tests
WIP - fix micropython cfg compilation
WIP - record french click tests for TR
WIP - record french device tests for TR
WIP - record french device tests for TT
WIP - record french click tests for TT
WIP - fix french translations - shorten them
WIP - translate missing french words
WIP - fix click tests
WIP - add french tests into CI
WIP - pystyle
WIP - allow for czech/french tests in update script
WIP - update czech fixtures
WIP - update french fixtures
WIP - ruststyle
WIP - disallow MPU to run it on hardware
WIP - cstyle
WIP - change translations delimiter from * to \x00
WIP - change translations protobufs
WIP - remove language handling from storage
WIP - add header into JSON files
WIP - count with header in translations blob
WIP - yml style fixes
WIP - fix proto gen
WIP - verify version and data hash
WIP - fix loading test translations
feat(core): allow access to translations area in firmware
[no changelog]
WIP - fixes after rebase
WIP - increase the TT's translations area to 3 sectors
WIP - dynamically read the maximum translations size
WIP - record non-english tests from CI
WIP - loading font data from translations blob
WIP - bump translations version
WIP - include czech and french glyph data
WIP - whitelist another negative-bearing glyph
WIP - remove czech/french glyphs from common font files
WIP - fix language tests
WIP - specific fonts for specific models
WIP - revert the non-ascii font hardcoding
WIP - include missing BIG font into nonprintable logic
WIP - minor Rust code improvements
WIP - include newlines at the end of json files
WIP - move glyph Rust function to librust_fonts.h
WIP - add all fonts into translations file
WIP - move fonts into its own dir
WIP - reflect separate dir for fonts
WIP - not putting translations trezorhal into bootloader
WIP - write and read multiple fonts into translations data
WIP - silence pyright issue/notissue
WIP - delete no more used translations/*.py imports
WIP - fix bootloader builds by introducing translations feature and TRANSLATIONS flag
WIP - fix TT's bootloader Rust build
WIP - fix tests in non-english languages
WIP - not search for UTF-8 when there are no translations data
WIP - add colons to strings where missing
WIP - fix language loading in tests
WIP - fix signmessage input flow to work in all languages
WIP - create offset table for translation strings
WIP - code improvements
WIP - record foreign language fixtures + sync with main in english
WIP - do alignment check before reading u16 data
WIP - allocate blob in RAM for translations data
WIP - add TODO for blob generation
WIP - record non-english device tests
WIP - use bytes.align_to instead of messing with pointers
WIP - fixtures
WIP - remove unused import
WIP - add order.py
WIP - add order.json
WIP - take order.json into account in creating general.rs
WIP - take order.json into account in generating the blob
WIP - style
WIP - sort the language files
WIP - remove unused file
WIP - code improvements
WIP - add TODO for homescreen notification
WIP - translate plural forms
WIP - translate time intervals
WIP - sign translations with dev keys, validate signatures, improve robustness
WIP - improve tests for translations
WIP - add `trezorctl utils sign-translations` for production signing of the blob
WIP - pyright fix
WIP - changing TR progress loader offset - it was colliding with title
WIP - show indeterminate loader when loading translations data
WIP - record new and updated language tests
WIP - show the change language title/prompt in the target language
WIP - sort keys
WIP - add crowdin-cli into shell.nix
WIP - add crowdin sync script
2023-08-11 15:57:32 +00:00
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage core/.coverage.test_click
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- nix-shell --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
|
|
|
- tests/ui_tests/fixtures.results.json
|
|
|
|
- tests/trezor.log
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
|
|
|
core click R test czech:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen R debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
|
|
|
TEST_LANG: "cs" # czech
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run make -C core test_emu_click_ui | ts -s"
|
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage core/.coverage.test_click
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- nix-shell --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
|
|
|
- tests/ui_tests/fixtures.results.json
|
|
|
|
- tests/trezor.log
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
|
|
|
core click R test french:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen R debug build
|
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
|
|
|
TEST_LANG: "fr" # french
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run make -C core test_emu_click_ui | ts -s"
|
2023-05-12 09:19:35 +00:00
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage core/.coverage.test_click
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- nix-shell --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
2023-07-14 08:31:39 +00:00
|
|
|
- tests/ui_tests/fixtures.results.json
|
2023-05-12 09:19:35 +00:00
|
|
|
- tests/trezor.log
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2022-01-10 16:20:42 +00:00
|
|
|
core click asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_click | ts -s"
|
2022-01-10 16:20:42 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/trezor.log
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2022-03-14 19:10:10 +00:00
|
|
|
# Upgrade tests.
|
2022-09-11 15:27:58 +00:00
|
|
|
# See [docs/tests/upgrade-tests](../tests/upgrade-tests.md) for more info.
|
2020-02-24 11:26:03 +00:00
|
|
|
core upgrade test:
|
2019-09-09 14:03:32 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
2019-09-09 14:03:32 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_UPGRADE_TEST: "core"
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "tests/download_emulators.sh"
|
|
|
|
- $NIX_SHELL --run "poetry run pytest --junitxml=tests/junit.xml tests/upgrade_tests | ts -s"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-09-09 14:03:32 +00:00
|
|
|
|
2022-01-10 16:20:42 +00:00
|
|
|
core upgrade asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
TREZOR_UPGRADE_TEST: "core"
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "tests/download_emulators.sh"
|
|
|
|
- $NIX_SHELL --run "poetry run pytest --junitxml=tests/junit.xml tests/upgrade_tests | ts -s"
|
2022-01-10 16:20:42 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2023-03-30 10:44:05 +00:00
|
|
|
# Persistence tests - UI.
|
2020-02-24 11:26:03 +00:00
|
|
|
core persistence test:
|
2019-10-25 12:03:44 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
2023-03-30 10:44:05 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_PROFILING: 1
|
2019-10-25 12:03:44 +00:00
|
|
|
script:
|
2023-03-30 10:44:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu_persistence_ui | ts -s"
|
|
|
|
after_script:
|
|
|
|
- mv core/src/.coverage core/.coverage.test_persistence
|
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
2023-03-30 10:44:05 +00:00
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
2023-07-14 08:31:39 +00:00
|
|
|
- tests/ui_tests/fixtures.results.json
|
2023-03-30 10:44:05 +00:00
|
|
|
- tests/trezor.log
|
2020-01-02 17:55:37 +00:00
|
|
|
- tests/junit.xml
|
2023-03-30 10:44:05 +00:00
|
|
|
- core/.coverage.*
|
2020-01-02 17:55:37 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-10-25 12:03:44 +00:00
|
|
|
|
2022-01-10 16:20:42 +00:00
|
|
|
core persistence asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run pytest --junitxml=tests/junit.xml tests/persistence_tests | ts -s"
|
2022-01-10 16:20:42 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2022-01-20 15:05:06 +00:00
|
|
|
core hwi test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
2022-02-25 13:16:36 +00:00
|
|
|
allow_failure: true
|
2022-01-20 15:05:06 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "git clone https://github.com/bitcoin-core/HWI.git"
|
2023-04-24 12:34:39 +00:00
|
|
|
# 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"
|
2022-01-20 15:05:06 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- HWI/trezor-t-emulator.stdout
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
# Crypto
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
crypto test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2019-09-05 15:44:55 +00:00
|
|
|
only:
|
|
|
|
changes:
|
2020-09-25 13:50:53 +00:00
|
|
|
- .gitlab-ci.yml
|
2022-04-05 14:22:30 +00:00
|
|
|
- ci/**
|
|
|
|
- crypto/**
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- crypto build
|
2022-01-12 12:47:53 +00:00
|
|
|
variables:
|
|
|
|
ASAN_OPTIONS: "verify_asan_link_order=0"
|
2022-02-15 14:46:21 +00:00
|
|
|
CK_TIMEOUT_MULTIPLIER: 5
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2020-06-07 19:49:06 +00:00
|
|
|
- ./crypto/tests/aestst
|
|
|
|
- ./crypto/tests/test_check
|
|
|
|
- ./crypto/tests/test_openssl 1000
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "cd crypto && ITERS=10 poetry run pytest --junitxml=tests/junit.xml tests | ts -s"
|
|
|
|
- $NIX_SHELL --run "CK_TIMEOUT_MULTIPLIER=20 valgrind -q --error-exitcode=1 ./crypto/tests/test_check_noasan | ts -s"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
2022-01-12 12:47:53 +00:00
|
|
|
- crypto/tests/junit.xml
|
2020-01-02 17:55:37 +00:00
|
|
|
reports:
|
2022-01-12 12:47:53 +00:00
|
|
|
junit: crypto/tests/junit.xml
|
2020-01-02 17:55:37 +00:00
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Legacy
|
|
|
|
|
2023-03-30 10:44:05 +00:00
|
|
|
# Legacy device test - UI.
|
2022-02-09 13:34:22 +00:00
|
|
|
legacy device test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- legacy emu regular debug build
|
2019-08-19 12:24:32 +00:00
|
|
|
variables:
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C legacy test_emu_ui | ts -s"
|
2022-02-08 18:12:52 +00:00
|
|
|
after_script:
|
2023-01-30 13:41:09 +00:00
|
|
|
- mv tests/ui_tests/reports/test/ test_ui_report
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run python ci/prepare_ui_artifacts.py | ts -s"
|
2023-01-30 13:41:09 +00:00
|
|
|
- diff -u tests/ui_tests/fixtures.json tests/ui_tests/fixtures.suggestion.json
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
2022-02-08 18:12:52 +00:00
|
|
|
- ci/ui_test_records/
|
|
|
|
- test_ui_report
|
|
|
|
- tests/ui_tests/screens/
|
|
|
|
- tests/ui_tests/fixtures.suggestion.json
|
2023-07-14 08:31:39 +00:00
|
|
|
- tests/ui_tests/fixtures.results.json
|
2020-01-02 17:55:37 +00:00
|
|
|
- tests/junit.xml
|
2022-02-08 18:12:52 +00:00
|
|
|
- tests/trezor.log
|
|
|
|
when: always
|
|
|
|
expire_in: 1 week
|
2020-01-02 17:55:37 +00:00
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2022-01-07 20:51:05 +00:00
|
|
|
legacy asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- legacy emu regular debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
EMULATOR: "1"
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C legacy test_emu | ts -s"
|
2022-01-07 20:51:05 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
legacy btconly test:
|
2019-08-22 18:18:44 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- legacy emu btconly debug build
|
2019-08-22 18:18:44 +00:00
|
|
|
variables:
|
|
|
|
EMULATOR: "1"
|
|
|
|
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
|
|
|
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C legacy test_emu | ts -s"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2020-01-02 17:55:37 +00:00
|
|
|
|
2022-01-07 20:51:05 +00:00
|
|
|
legacy btconly asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- legacy emu btconly debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
EMULATOR: "1"
|
|
|
|
EMULATOR_BINARY: "firmware/trezor-bitcoinonly.elf"
|
|
|
|
TREZOR_PYTEST_SKIP_ALTCOINS: 1
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C legacy test_emu | ts -s"
|
2022-01-07 20:51:05 +00:00
|
|
|
|
2019-08-22 18:18:44 +00:00
|
|
|
|
2020-02-24 11:26:03 +00:00
|
|
|
legacy upgrade test:
|
2019-09-09 14:03:32 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-06 19:59:22 +00:00
|
|
|
needs:
|
|
|
|
- legacy emu regular debug build
|
2019-09-09 14:03:32 +00:00
|
|
|
variables:
|
|
|
|
TREZOR_UPGRADE_TEST: "legacy"
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "tests/download_emulators.sh"
|
|
|
|
- $NIX_SHELL --run "poetry run pytest --junitxml=tests/junit.xml tests/upgrade_tests | ts -s"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-09-09 14:03:32 +00:00
|
|
|
|
2022-01-10 16:20:42 +00:00
|
|
|
legacy upgrade asan test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- legacy emu regular debug asan build
|
|
|
|
only:
|
|
|
|
- schedules # nightly build
|
|
|
|
variables:
|
|
|
|
TREZOR_UPGRADE_TEST: "legacy"
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "tests/download_emulators.sh"
|
|
|
|
- $NIX_SHELL --run "poetry run pytest --junitxml=tests/junit.xml tests/upgrade_tests | ts -s"
|
2022-01-10 16:20:42 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
|
|
|
|
2022-01-20 15:05:06 +00:00
|
|
|
legacy hwi test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- legacy emu regular debug build
|
|
|
|
variables:
|
|
|
|
EMULATOR: "1"
|
2022-02-25 13:16:36 +00:00
|
|
|
allow_failure: true
|
2022-01-20 15:05:06 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "git clone https://github.com/bitcoin-core/HWI.git"
|
2023-04-24 12:34:39 +00:00
|
|
|
# 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"
|
2022-01-20 15:05:06 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- HWI/trezor-1-emulator.stdout
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
2019-08-19 12:24:32 +00:00
|
|
|
# Python
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
python test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2020-07-03 16:02:46 +00:00
|
|
|
variables:
|
|
|
|
LC_ALL: "C.UTF-8"
|
|
|
|
LANG: "C.UTF-8"
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2021-03-26 14:42:24 +00:00
|
|
|
# Workaround for nixpkgs+tox integration failure which results in:
|
|
|
|
# ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'
|
|
|
|
# The value of _PYTHON_SYSCONFIGDATA_NAME has changed between python 3.7 and 3.8 and with
|
|
|
|
# multiple versions in your environment the older pythons don't seem to work under tox.
|
|
|
|
# When the variable is unset the interpreter seems to do the right thing. Can be removed in
|
|
|
|
# july 2023 when python 3.7 is EOLed.
|
|
|
|
# See also:
|
|
|
|
# https://github.com/NixOS/nixpkgs/blob/b00c7c2d1d905eb63c81a0917f1a94b763a7843b/pkgs/development/interpreters/python/cpython/default.nix#L103
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/98915
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --arg fullDeps true --run "unset _PYTHON_SYSCONFIGDATA_NAME && cd python && poetry run tox | ts -s"
|
2019-08-19 12:24:32 +00:00
|
|
|
|
2022-05-27 14:15:21 +00:00
|
|
|
python support test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs: []
|
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make python_support_check | ts -s"
|
2022-05-27 14:15:21 +00:00
|
|
|
|
2023-06-06 04:06:10 +00:00
|
|
|
# Rust
|
|
|
|
|
|
|
|
rust test:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
|
|
|
script:
|
|
|
|
- $NIX_SHELL --run "poetry run core/emu.py --headless -q --temporary-profile --slip0014 --command cargo test --manifest-path rust/trezor-client/Cargo.toml | ts -s"
|
2019-08-19 12:24:32 +00:00
|
|
|
|
|
|
|
# Storage
|
|
|
|
|
2019-09-04 08:53:40 +00:00
|
|
|
storage test:
|
2019-08-19 12:24:32 +00:00
|
|
|
stage: test
|
2019-09-05 15:44:55 +00:00
|
|
|
only:
|
|
|
|
changes:
|
2020-09-25 13:50:53 +00:00
|
|
|
- .gitlab-ci.yml
|
2022-04-05 14:22:30 +00:00
|
|
|
- ci/**
|
|
|
|
- storage/**
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-08-17 18:37:08 +00:00
|
|
|
needs: []
|
2019-08-19 12:24:32 +00:00
|
|
|
script:
|
2022-04-05 12:15:57 +00:00
|
|
|
- unset PYTEST_TIMEOUT
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C storage/tests build | ts -s"
|
|
|
|
- $NIX_SHELL --run "poetry run make -C storage/tests tests_all | ts -s"
|
2020-01-02 17:55:37 +00:00
|
|
|
artifacts:
|
2020-04-07 08:42:45 +00:00
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
2020-01-02 17:55:37 +00:00
|
|
|
paths:
|
|
|
|
- tests/junit.xml
|
|
|
|
reports:
|
|
|
|
junit: tests/junit.xml
|
|
|
|
expire_in: 1 week
|
2020-01-03 14:26:12 +00:00
|
|
|
when: always
|
2019-10-04 13:22:39 +00:00
|
|
|
|
2020-12-04 16:26:55 +00:00
|
|
|
# Memory profiling
|
|
|
|
|
2020-10-26 19:30:55 +00:00
|
|
|
core unix memory profiler:
|
|
|
|
stage: test
|
|
|
|
when: manual
|
2021-11-24 12:24:10 +00:00
|
|
|
<<: *gitlab_caching
|
2020-10-26 19:30:55 +00:00
|
|
|
needs: []
|
|
|
|
variables:
|
|
|
|
PYOPT: "0"
|
|
|
|
TREZOR_MEMPERF: "1"
|
2020-12-07 21:53:17 +00:00
|
|
|
PYTEST_TIMEOUT: "900"
|
2020-10-26 19:30:55 +00:00
|
|
|
script:
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "poetry run make -C core build_unix_frozen | ts -s"
|
|
|
|
- $NIX_SHELL --run "poetry run make -C core test_emu | ts -s"
|
|
|
|
- $NIX_SHELL --run "mkdir core/prof/memperf-html"
|
|
|
|
- $NIX_SHELL --run "poetry run core/tools/alloc.py --alloc-data=core/src/alloc_data.txt html core/prof/memperf-html"
|
2020-10-26 19:30:55 +00:00
|
|
|
artifacts:
|
|
|
|
name: "$CI_JOB_NAME-$CI_COMMIT_SHORT_SHA"
|
|
|
|
paths:
|
|
|
|
- tests/trezor.log
|
|
|
|
- core/prof/memperf-html
|
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|
2021-12-03 16:09:00 +00:00
|
|
|
|
2022-06-07 08:39:49 +00:00
|
|
|
# Flash size profiling
|
|
|
|
|
|
|
|
# Finds out how much flash space we have left in the firmware build
|
|
|
|
# Fails if the free space is less than certain threshold
|
|
|
|
core firmware flash size checker:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
needs:
|
|
|
|
- core fw regular debug build
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run core/tools/size/checker.py /builds/satoshilabs/trezor/trezor-firmware/firmware.elf"
|
|
|
|
|
|
|
|
# Compares the current flash space with the situation in the current master
|
|
|
|
# Fails if the new binary is significantly larger than the master one
|
|
|
|
# (the threshold is defined in the script, currently 5kb).
|
|
|
|
# Allowing fir failure, not to prevent the merge.
|
|
|
|
# Also generates a report with the current situation
|
|
|
|
core firmware flash size compare master:
|
|
|
|
stage: test
|
|
|
|
<<: *gitlab_caching
|
|
|
|
allow_failure: true
|
|
|
|
needs:
|
|
|
|
- core fw regular build
|
|
|
|
script:
|
|
|
|
- nix-shell --run "poetry run core/tools/size/compare_master.py /builds/satoshilabs/trezor/trezor-firmware/firmware.elf -r firmware_elf_size_report.txt"
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- firmware_elf_size_report.txt
|
|
|
|
expire_in: 1 week
|
|
|
|
|
2021-12-03 16:09:00 +00:00
|
|
|
# Connect
|
|
|
|
|
|
|
|
connect test core:
|
2022-08-31 09:05:59 +00:00
|
|
|
image: ghcr.io/trezor/trezor-user-env
|
2021-12-03 16:09:00 +00:00
|
|
|
stage: test
|
2023-02-09 11:50:13 +00:00
|
|
|
when: manual
|
2022-08-03 15:01:10 +00:00
|
|
|
tags:
|
|
|
|
- runner-internal
|
2021-12-03 16:09:00 +00:00
|
|
|
needs:
|
|
|
|
- core unix frozen debug build
|
|
|
|
variables:
|
|
|
|
SDL_VIDEODRIVER: "dummy"
|
|
|
|
before_script:
|
|
|
|
- cp /builds/satoshilabs/trezor/trezor-firmware/core/build/unix/trezor-emu-core /trezor-user-env/src/binaries/firmware/bin/trezor-emu-core-v2.99.99
|
2022-06-30 11:47:02 +00:00
|
|
|
- chmod +x /trezor-user-env/src/binaries/firmware/bin/trezor-emu-core-v2.99.99
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "autoPatchelf /trezor-user-env/src/binaries/firmware/bin/trezor-emu-core-v2.99.99"
|
2021-12-03 16:09:00 +00:00
|
|
|
script:
|
2022-03-17 21:50:39 +00:00
|
|
|
- /trezor-user-env/run-nix.sh &
|
2023-02-14 18:17:05 +00:00
|
|
|
- $NIX_SHELL --run "tests/connect_tests/connect_tests.sh 2.99.99"
|
2021-12-03 16:09:00 +00:00
|
|
|
after_script:
|
|
|
|
- cp /trezor-user-env/logs/debugging.log trezor-user-env-debugging.log
|
2021-12-15 09:16:17 +00:00
|
|
|
- cp /trezor-user-env/logs/emulator_bridge.log tenv-emulator-bridge-debugging.log
|
2021-12-03 16:09:00 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- trezor-user-env-debugging.log
|
2021-12-15 09:16:17 +00:00
|
|
|
- tenv-emulator-bridge-debugging.log
|
2021-12-03 16:09:00 +00:00
|
|
|
expire_in: 1 week
|
|
|
|
when: always
|