-
-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix status screen for UI tests #4245
Open
obrusvit
wants to merge
43
commits into
matejcik/global-layout-only3
Choose a base branch
from
obrusvit/fix-status-screen-for-ui-tests
base: matejcik/global-layout-only3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix status screen for UI tests #4245
obrusvit
wants to merge
43
commits into
matejcik/global-layout-only3
from
obrusvit/fix-status-screen-for-ui-tests
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[no changelog]
It is being moved into a custom handler for the debug app.
otherwise if _handle_single_message raises an exception (which is fortunately not something that should generally happen), the finally-block would fail on "referenced before assignment"
* RequestPaint message is sent at construction time to force calculation of number of pages * given that Attach corresponds to "start the layout" message, Child now responds to Attach the same way it responds to RequestPaint, by force-repainting everything.
This doesn't actually advance the progress while device erase is ongoing, but at least the user sees a loader.
to prevent "unexpected response to Initialize" errors
The global layout related changes were wrong for T1 where debuglink behavior is significantly different; in particular, it is not always possible to communicate over debuglink. This change reverts to the old behavior for T1B1 and keeps the new one only for core-based models.
This was necessary for hooking display.refresh() with the old UI toolkit. With the new one, we explicitly refresh the display after every paint, so implicit after-step refresh seems no longer necessary.
same behavior as on Trezor One
* improve sync_responses to work on uninitialized instance * sync responses at construction time
Otherwise a test can hang if the result is not returned. This is not even covered by pytest-timeout because if a test fails, the call to task.kill() happens during teardown, and pytest-timeout doesn't cover that.
In certain cases a DebugLinkState response can get stalled and debuglink will not read it -- i.e., a situation analogous to wirelink de-sync. There doesn't seem to be a good way to force-sync debuglink the same way wirelink does it, but we can detect a wrong response to a DebugLinkGetState and skip it.
instead, download it to a temp location, as the Prophecy (and authors of urlretrieve) foretold
to make it easier to run cargo separately, and support rust-analyzer without tweaking its config
[no changelog]
|
|
matejcik
force-pushed
the
matejcik/global-layout-only3
branch
from
October 9, 2024 11:52
f84d33e
to
5d9d97e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Targeting GFL branch as this can go after.
To clarify: setting the timeout to 0 is not necessary but speeds up the tests.